curl --request POST \
--url https://api.scrapeunblocker.com/travel/google-hotels \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/travel/google-hotels"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/travel/google-hotels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Scrape Google Hotels search results (prices, ratings, amenities)
Runs a Google Hotels search for q and returns the properties as JSON: name, type (hotel / vacation_rental), propertyToken, price for the stay (perNight, perNightWithTaxes, total, totalWithTaxes, taxes, Google’s display string), deal, rating, reviews, ratingsBreakdown, reviewTopics, hotelClass, stars, amenities, description, website, latitude/longitude, nearbyPlaces, thumbnail, images and mapsUrl, plus the page’s sponsored ads. A query naming one hotel returns just that hotel (matchedProperty). Set the stay with check_in/check_out, the party with adults and children (ages), and currency, hl (language) and gl (market). applied echoes the dates, currency and place Google actually used. Collect up to max_results across pages (each Google page is billed as one request, see pagesFetched); nextPageToken continues the list. Pass a propertyToken to /travel/google-hotels-property for every booking site’s price.
curl --request POST \
--url https://api.scrapeunblocker.com/travel/google-hotels \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/travel/google-hotels"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/travel/google-hotels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your ScrapeUnblocker API key. Apply on every request.
Query Parameters
What to search, as on Google Hotels: a place ('hotels in Paris', 'Lisbon'), an area or landmark, or a hotel name.
Check-in date, YYYY-MM-DD. Leave check_in and check_out empty for Google's default stay.
Check-out date, YYYY-MM-DD (stays of up to 30 nights).
Number of adults (1-10).
Ages of the children, comma-separated, e.g. '7,10' (up to 6).
Price currency, ISO 4217 (USD, EUR, GBP, ...).
Language of names, amenities and price formats, e.g. 'en', 'de', 'fr'.
Market (2-letter country). Google localizes the booking sites to it.
nextPageToken of a previous response, to continue where it stopped.
Properties to collect (1-100). Google serves about 20 per page; each page is billed as one request.
Response
JSON with a properties array, ads, paging and the search Google applied.

