GET

Google Reviews Paginated API

Get up to 10 pages of Google Maps reviews for a data_id in one request.

Copy for your AI agent

Paste into Claude, ChatGPT, Cursor or Copilot — endpoint, parameters, response fields and a curl example in Markdown.

Overview

This endpoint walks the pages of the Google Reviews endpoint for you and returns them as one list. Each page holds up to 10 reviews, so pages=10 returns about 100 reviews. The review objects, sorting and language are the same as on the Google Reviews endpoint.

Authentication

Send your StayAPI key in the X-API-Key header. Each successful request uses one credit, whatever the number of pages, and returns JSON; failures use RFC 7807 Problem Details.

Endpoint URL

GET https://api.stayapi.com/v1/google_reviews/reviews-paginated

Parameters

Parameter Type Required Description
data_id string Required Google Maps data_id for the place (e.g., 0x80c8c430cb5147bd:0x82f2c7c5d9d10d84): two hexadecimal numbers, each starting with 0x, joined by a colon. Get it from Search & Review or Google Maps Search. Anything else returns 400.
pages integer Optional Number of pages to fetch, 1 to 10. Default: 1. Each page returns up to 10 reviews.
sort_by string Optional Sort order: most_relevant (default), newest, highest_rating, lowest_rating.
hl string Optional Language code for reviews (e.g., en, es, fr). Default: en.

Response fields

Field Type Description
data_id string The data_id you sent.
place_name, place_address string or null Name and address of the place.
total_reviews integer Total number of reviews for the place on Google.
average_rating number or null Overall rating of the place (1-5).
reviews array Reviews from every fetched page, in order. Same review object as the Google Reviews endpoint (rating, text, date, iso_date, iso_date_source, photos, reviewer, likes, owner_response).
total_fetched_reviews integer Number of reviews in this response.
pages_requested integer The pages value you sent.
pages_fetched integer Pages actually returned. Lower than pages_requested when the place has no more reviews or a later page was unavailable.
has_more boolean true when more reviews are available after the last fetched page.
next_page_token string or null Opaque token (starts with gt:) for the next page. Pass it unchanged to the Google Reviews endpoint with the same data_id, sort_by and hl. null when there are no further pages.
search_metadata object Request timestamp (datetime).

Some places, for example a harbour or a park, have only their first 5 reviews available; they return one page with has_more: false. Exact likes, reviewer.reviews_count and reviewer.local_guide are filled for up to 5 reviews on the first page only, as on the Google Reviews endpoint.

More than 10 pages

While has_more is true, continue with GET /v1/google_reviews/reviews: send the same data_id, sort_by and hl plus the returned next_page_token, one page per request. See Google Reviews pagination.

Error Handling

Code Type Description
400 INVALID_PARAMETERS Malformed data_id (see the format above).
404 NO_RESULTS No reviews found for the provided data_id.
422 VALIDATION_ERROR Missing data_id, pages outside 1-10, or an unknown sort_by.
500 INTERNAL_ERROR Server error. Please try again later.
502 UPSTREAM_ERROR Error fetching the first page from Google.
503 SERVICE_UNAVAILABLE Google reviews are temporarily unavailable. Retry after the Retry-After header.
504 UPSTREAM_TIMEOUT, GATEWAY_TIMEOUT Google did not answer in time. Retry the request.

Related Endpoints

Browse documentation