Skip to main content
POST
/
api
/
google
/
hotels
/
reviews
/google/hotels/reviews
curl --request POST \
  --url https://api.anysite.io/api/google/hotels/reviews \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "feature_id": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "@type": "@google_hotel_review",
    "source": "<string>",
    "rating": 123,
    "rating_max": 123,
    "text": "<string>",
    "relative_date": "<string>",
    "author": {
      "name": "<string>",
      "@type": "@google_hotel_review_author",
      "profile_url": "<string>",
      "image": "<string>"
    },
    "source_url": "<string>",
    "owner_reply": "<string>",
    "owner_reply_date": "<string>",
    "highlights": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
feature_id
string
required

Hotel feature ID in hex form '0x..:0x..'

Minimum string length: 1
Example:

"0x89c28aad4f6a9ce5:0xa4793816b9bcb218"

count
integer
required

Max number of reviews

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
@type
string
default:@google_hotel_review
source
string | null
rating
number | null
rating_max
number | null
text
string | null
relative_date
string | null
author
GoogleHotelReviewAuthor · object
source_url
string | null
owner_reply
string | null
owner_reply_date
string | null
highlights
string[]