Google Business Reviews
Read and reply to reviews on a connected Google Business Profile location. Both endpoints call the Google Business Profile API in real-time and refresh the stored access token automatically. Connect the Google account via OAuth first (the same connection used for Google Business posting — no extra permission is required).
List Reviews
- Method:
GET - Endpoint:
/api/uploadposts/google-business/reviews - Authentication: API Key —
Authorization: Apikey <YOUR_API_KEY>
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
user | string | Yes | The profile username that owns the connected Google Business account. |
location_id | string | No | Location to read: locations/222222222, the bare id, or a full accounts/.../locations/.... Defaults to the account's selected location. A bare id is sent under the Google account that owns the location. |
pageSize (or page_size) | integer | No | Reviews per page. Google's maximum is 50. |
pageToken (or page_token) | string | No | Pagination cursor from a previous response (nextPageToken). |
orderBy (or order_by) | string | No | updateTime desc (default, newest first), rating (lowest first) or rating desc (highest first). newest, lowest and highest are accepted as shortcuts. |
Example Request
curl 'https://api.upload-post.com/api/uploadposts/google-business/reviews?user=my-profile&pageSize=20' \
-H 'Authorization: Apikey YOUR_API_KEY'
Successful Response (200 OK)
{
"success": true,
"reviews": [
{
"name": "accounts/123456789/locations/222222222/reviews/AbcDef",
"reviewer": { "displayName": "Jane Doe" },
"starRating": "FIVE",
"comment": "Great service!",
"createTime": "2026-07-01T10:00:00Z",
"updateTime": "2026-07-01T10:00:00Z",
"reviewReply": { "comment": "Thanks Jane!", "updateTime": "2026-07-02T09:00:00Z" }
}
],
"averageRating": 4.7,
"totalReviewCount": 128,
"nextPageToken": "..."
}
| Field | Description |
|---|---|
reviews | Array of reviews. Each review's name is the full resource path used to reply. |
averageRating | Average star rating for the location. |
totalReviewCount | Total number of reviews for the location. |
nextPageToken | Present when more reviews are available; pass it as pageToken. |
Reply to a Review
Creates the owner reply to a review, or updates it if one already exists.
- Method:
PUT(also acceptsPOST) - Endpoint:
/api/uploadposts/google-business/reviews/reply - Authentication: API Key —
Authorization: Apikey <YOUR_API_KEY>
Body Parameters (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
user | String | Yes | The profile username that owns the connected Google Business account. |
comment | String | Yes | The public reply text. At most 4096 bytes in UTF-8 (accented letters take 2 bytes and emoji 4, so the limit in characters can be lower). Blank text is refused. |
review_name | String | No* | Full review resource path from List Reviews (accounts/.../locations/.../reviews/{id}). |
review_id | String | No* | Review ID. Requires location_id to build the resource path. |
location_id | String | No | Location for the review when using review_id. |
* Provide either review_name (preferred) or review_id + location_id.
Example Request
curl -X PUT https://api.upload-post.com/api/uploadposts/google-business/reviews/reply \
-H 'Authorization: Apikey YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"user": "my-profile",
"review_name": "accounts/123456789/locations/222222222/reviews/AbcDef",
"comment": "Thank you for the kind words — see you again soon!"
}'
Successful Response (200 OK)
{
"success": true,
"review_name": "accounts/123456789/locations/222222222/reviews/AbcDef",
"reply": {
"comment": "Thank you for the kind words — see you again soon!",
"updateTime": "2026-07-18T12:00:00Z",
"reviewReplyState": "PENDING"
},
"reviewReplyState": "PENDING"
}
Sending a reply again replaces the previous one (Google keeps a single owner reply per review), so this endpoint also edits a reply.
| Field | Description |
|---|---|
reply | The reply as Google returns it. |
reviewReplyState | Google moderates replies: PENDING, APPROVED or REJECTED. Present when Google sends it. |
policyViolation | Only when the reply was REJECTED: the policy Google applied (for example OFFENSIVE). The reply is not public; a warnings entry says so. |
verified_after_timeout | true when Google did not answer in time and Upload-Post confirmed, by reading the review back, that the reply was published. |
If Google does not answer
A reply speaks for the business, so Upload-Post never resends it blindly. If Google does not answer (or fails with a 5xx), Upload-Post reads the review once: if your reply is there, you get 200 with verified_after_timeout: true. Otherwise you get 504 reply_outcome_unknown (or Google's 5xx status with outcome_unknown: true): check the review with Get a Review before sending it again. If the request never reached Google, the answer is 502 google_unreachable and it is safe to send it again.
Reply errors
| Status | error_code | Meaning |
|---|---|---|
| 400 | invalid_json | The body is not a valid JSON object. |
| 400 | missing_comment | comment is missing or blank. |
| 400 | invalid_comment | comment is not a string. |
| 400 | REPLY_TOO_LONG | comment is over 4096 bytes in UTF-8 (bytes and max_bytes say by how much). |
| 400 | invalid_review_name | review_name / review_id / location_id is not a valid Google resource path. |
| 404 | review_not_found | The review does not exist or was deleted. |
| 504 | reply_outcome_unknown | Google did not confirm the reply; see above. |
Notes:
- Reviews and replies use the Google Business Profile v4 API. Only verified locations can receive replies.
- Reviews cannot be deleted via the API, and star ratings cannot be changed — you can only reply.
- Token refresh is handled automatically; connect the Google account via OAuth first.
Delete a Review Reply
- Method:
DELETE - Endpoint:
/api/uploadposts/google-business/reviews/reply
Same body identifiers as Reply to a Review (user + review_name, or review_id + location_id), in the JSON body or the query string.
{ "success": true, "review_name": "accounts/123456789/locations/222222222/reviews/AbcDef" }
Get a Review
Reads one review with its reply. Use it to check a reply's moderation state or the outcome of a reply that timed out.
- Method:
GET - Endpoint:
/api/uploadposts/google-business/reviews/get
| Parameter | Required | Description |
|---|---|---|
user | Yes | Profile username with the Google Business connection. |
review_name | No* | Full review path, accounts/.../locations/.../reviews/{id}. |
review_id + location_id | No* | The review id and its location (bare id, locations/{id} or full path). |
curl 'https://api.upload-post.com/api/uploadposts/google-business/reviews/get?user=my-profile&review_name=accounts/123456789/locations/222222222/reviews/AbcDef' \
-H 'Authorization: Apikey YOUR_API_KEY'
{
"success": true,
"review_name": "accounts/123456789/locations/222222222/reviews/AbcDef",
"review": {
"name": "accounts/123456789/locations/222222222/reviews/AbcDef",
"starRating": "FIVE",
"comment": "Great service!",
"reviewer": { "displayName": "Jane Doe", "isAnonymous": false },
"reviewReply": { "comment": "Thanks Jane!", "reviewReplyState": "APPROVED" }
},
"reviewReplyState": "APPROVED"
}
404 review_not_found when the review does not exist or was deleted. This endpoint counts towards a daily limit of reads per account (429 daily_limit_reached, with scope, daily_limit and retry_after_seconds); listing reviews, the batch and replies never do.
Batch Get Reviews
- Method:
GETorPOST - Endpoint:
/api/uploadposts/google-business/reviews/batch
Fetches reviews for multiple locations in one call (locations:batchGetReviews).
| Parameter | Description |
|---|---|
user | Profile username. |
location_ids | Comma-separated list or JSON array of locations (bare ids, locations/{id} or full paths). Defaults to the account's selected location. |
pageSize (or page_size) | 1–50. |
pageToken (or page_token) | Cursor from nextPageToken. |
orderBy (or order_by) | updateTime desc, rating or rating desc (shortcuts newest, lowest, highest). |
ignoreRatingOnlyReviews | true to skip reviews without text (Google marks this option as deprecated). |
The answer has locations (the full paths used), locationReviews (each item carries its location and the review) and nextPageToken.
Locations of several Google accounts (an agency) are fetched with one call per account, so pageSize applies to each account and nextPageToken (starting with up1:) carries every account's cursor: pass it back unchanged to get the next page. A pageToken that Google itself returned (without up1:) is sent to Google as is, in a single call, as before.
Errors
Errors have success: false, a human-readable error and a stable error_code (also in code). Errors returned by Google keep Google's HTTP status (for example 409, 412, 500 or 503 come back as they are) and carry its details in google_error (for example errorDetails with the offending field). Codes: 401 google_business_reconnect_required, 403 google_business_permission_denied (for example a location that is not verified: Google only serves reviews of verified locations), 404, 429 google_rate_limited (with retry_after_seconds when known), 400 google_validation_error and google_api_error for Google's 5xx.
Review ids are used exactly as Google returns them; only characters that cannot be part of a URL path segment (/, ?, #, %, spaces, control characters) are refused with 400 invalid_review_name. Account and location ids are numbers.
Known Google limitation: from the second page onwards Google may skip some reviews of large locations. If a count does not add up, read the list again later.