The Google Hotels API for hotel prices and ratings
This API is in beta, so run a small pilot before you build a full pipeline on it. Send a query and two dates to get hotel prices.
Google Hotels API at a glance
This API returns Google Hotels listings as JSON. Send a POST request with a query and two dates. Then read each property from the hotels array.
- Endpoint
POST /v1/data/google/hotels- Authentication
- API key as
Authorization: Bearer wh_… - Stage
- Beta
- Output
- A hotels array with title, rating, review count, nightly price, currency, property token, detail link and amenities
- Required input
- A query plus check_in_date and check_out_date in YYYY-MM-DD format
- Guests
- 1 to 30 adults and 0 to 10 children, with an age for every child
- Results per request
- 1 to 200 with num_results. The default is 20.
- Credit weight
- 1. See the pricing page for current rates.
One request, structured JSON.
This request searches hotels in Mumbai for two adults. The response below is a trimmed docs example. Copy the request and swap in your own dates.
curl -X POST "https://api.datablue.dev/v1/data/google/hotels" \
-H "Authorization: Bearer wh_..." \
-H "Content-Type: application/json" \
-d '{
"query": "hotels in Mumbai",
"check_in_date": "2026-08-15",
"check_out_date": "2026-08-17",
"adults": 2,
"country": "in",
"language": "en",
"currency": "INR",
"num_results": 5
}'{
"success": true,
"source": "google_hotels",
"query": "hotels in Mumbai",
"currency": "INR",
"check_in_date": "2026-08-15",
"check_out_date": "2026-08-17",
"adults": 2,
"total_results": 5,
"classification": "http_success",
"hotels": [
{
"position": 1,
"title": "Hotel Sahara Star",
"rating": 4.4,
"reviews": 18432,
"price": "INR 9,900",
"price_value": 9900,
"currency": "INR",
"property_token": "CgI...",
"detail_url": "https://www.google.com/travel/hotels/entity/CgI...",
"amenities": ["Free Wi-Fi", "Pool", "Airport shuttle"]
}
],
"ads": [
{
"position": 1,
"title": "The Taj Mahal Palace, Mumbai",
"source": "Booking partner",
"price": "INR 22,400"
}
]
}What a hotel returns.
Each property arrives as one object with named fields.
Name and rank
Every row has a title and a position, which lets you keep the order that Google showed. Store the position whenever the order matters to you.
Nightly price
You get a display string and a numeric price_value for every property, which makes sorting and comparing straightforward. Sort on the number rather than the string.
Rating and reviews
Each property carries a star rating and a review count, so weigh the two together before you trust either.
Property token
The property_token identifies one hotel in Google Hotels. Send it back later to fetch that hotel’s detail.
Links and images
Rows include a detail_url that opens the Google Hotels page for that property, plus a thumbnail link when one is available. Open the link to verify any result by eye.
Amenities
An amenities list names features such as Free Wi-Fi. Treat every optional field as possibly missing.
Ad offers
Sponsored offers arrive in a separate ads array. Read them apart from the hotels list.
Parse status
The classification field reports how each call went. Check it whenever a hotels list comes back empty.
Options that shape your search.
Three fields are required, and the rest are optional filters. Add them when you want tighter results.
Query and dates
Set query to what you would type into Google Hotels. Write both dates as YYYY-MM-DD, with check_out_date after check_in_date.
Guests
Set adults from 1 to 30 and children from 0 to 10, then pass children_ages whenever children is above 0. Give one age from 1 to 17 for each child.
Price and rating filters
Use min_price and max_price to set a nightly range, then set rating to 7 for 3.5 stars and up. Use 8 for 4.0 stars and 9 for 4.5 stars.
Sorting
Set sort_by to 3 for lowest price, to 8 for highest rating or to 13 for most reviewed.
Property filters
Pass hotel_class as star classes such as 4 and 5. Property types and amenities take Google filter codes, so look them up before you filter. Set free_cancellation or special_offers to true to filter.
Vacation rentals
Set vacation_rentals to true to search rentals instead of hotels. Then use bedrooms and bathrooms for minimum room counts.
Paging and detail
Pass cursor or next_page_token to read the next page, and pass a property_token to get one property in detail.
Locale and timeout
Set currency and country to match your market. Keep timeout_ms between 1000 and 120000 milliseconds.
What teams build with it.
Stay prices change often, so most uses are repeat jobs.
Rate monitoring
Run one query each morning and store price_value by property, then alert your revenue team when a rival drops its rate. Chart the history to see where rates settle.
Travel comparison tools
Show nightly prices and ratings beside your own inventory, and link out through the detail_url on each row.
Destination research
Compare average nightly prices across cities for the same dates. Use hotel_class to keep the comparison fair.
Event pricing studies
Query one city across a festival week and an ordinary week to see how far the nightly price moves. Compare the two sets of prices side by side.
Why use an API instead of scraping Hotels yourself.
Google Hotels builds results from data embedded in the page. A hand-built scraper must decode that data, then keep up if the layout ever changes.
DataBlue does the fetching and parsing for you, so one request returns hotels already split into named fields. The classification field flags a call that came back empty.
The API is in beta, so run a small pilot against your own queries before you commit a pipeline to it. Widen your searches one step at a time. Check each field against the sample first.
Your first hotel search in a minute.
Sign up, grab a key and run one request.
Create an account
Sign up to get your API key.
Send a search
POST a query and two dates to /v1/data/google/hotels. Add a Bearer key in the Authorization header. Add guests and a currency to match your market.
Read the hotels
Loop over hotels in the response and read each field. Check classification before you trust an empty list.
Google Hotels API questions.
Short answers about data and billing before you start.
It turns a Google Hotels search into structured JSON. Each property returns as one object in a hotels array.
Still have a question?Ask us anything
Send a POST request to /v1/data/google/hotels with a query and two dates, using your API key as a Bearer token.
Rows carry a title, a rating and a nightly price. Each row has a review count and a property token. Optional fields appear only when Google shows them.
Set currency to a code such as USD or EUR. Add country and language to adjust Google’s localisation too.
Set num_results between 1 and 200 to choose the count. The default is 20 hotels per request.
Pass the cursor from one response into your next request. Responses include it when more results are available.
It does when you set vacation_rentals to true. Narrow rentals further with bedrooms and bathrooms.
This API is in beta today, and fields could still change as we improve it. Build against the documented fields, then read the changelog before each upgrade you ship to production.
This API has a credit weight of 1. Check the pricing page for current rates.
Run a Google Hotels search in a minute.
Create an account to get your key. Then paste the example request into your terminal.
Start free
