Lists the Google reviews of one of your business locations with star rating, text, reviewer and your reply (and its moderation state), plus the average rating.
curl -X POST "https://api.primaryapi.com/v1/run/google-business.reviews" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"accountId":"2345678901","locationId":"9876543210"}'{
"output": {
"found": true,
"data": {
"averageRating": 4.6,
"totalReviewCount": 128,
"nextCursor": null,
"reviews": [
{
"name": "accounts/2345678901/locations/98765…",
"rating": 5,
"starRating": "FIVE",
"comment": "Best flat white in the city.", …
}, …
], …
}
},
"credits": 1
}Input and output
6 fields
2345678901.9876543210.6 fields
Good to know
Runs as your connected Google account. Needs the Google Business Profile capability.
Pass the accountId the location was listed under. Its locationId (google-business.locations).
Works only for verified locations.
Up to 50 reviews per page.
A location without reviews is a miss. An unknown one location_not_found.
Reply with google-business.reply_to_review.
The same key and credits work for every API.