Get Your API Key
Sign in at hasdata.com, go to your account settings, and copy your API key. All requests must include your key in thex-api-key header.
Request Cost and API Credits
Each request to the Google Hotels API consumes API Credits from your account balance.- Cost per request: 10 API Credits
- Credits are deducted only for successful requests.
- Your total available credits depend on your active plan.
Make Your First Request
API Parameters
| Parameter | Default Value | Required | Description |
|---|---|---|---|
q | Hotels in New York | Yes | The search query for Google Hotels (e.g., a city, neighborhood, or hotel name). |
checkInDate | 2026-08-15 | Yes | The check-in date in ‘yyyy-MM-dd’ format. |
checkOutDate | 2026-08-20 | Yes | The check-out date in ‘yyyy-MM-dd’ format. |
gl | - | No | The two-letter country code for the country you want to limit the search to. |
hl | - | No | The two-letter language code for the language you want to use for the search. |
currency | - | No | Parameter defines the currency of the returned prices |
adults | - | No | Number of adult guests (1-6). |
children | - | No | Number of child guests (1-5). Total guests (adults + children) cannot exceed 6. |
childrenAges | - | No | Comma-separated list of children ages (e.g., 5,8,12). Must match the number of children. |
sortBy | - | No | Sort hotel results. Options: - lowestPrice — lowest price- highestRating — highest rating- mostReviewed — most reviewed |
minPrice | - | No | Minimum price per night, in the selected currency. |
maxPrice | - | No | Maximum price per night, in the selected currency. |
propertyType[] | - | No | List of property types to filter by (e.g., hotelResort,hotelMotel).Values prefixed hotel* apply when searching hotels (the default mode). Values prefixed rental* apply when vacationRentals=true.The two sets are disjoint because Google Hotels exposes different property-type catalogs for each mode — pass values matching the mode you’re querying. |
amenity[] | - | No | List of amenities to filter by (e.g., hotelFreeWifi,hotelPool).Values prefixed hotel* apply when searching hotels (the default mode). Values prefixed rental* apply when vacationRentals=true.The two sets are disjoint because Google Hotels exposes different amenity catalogs for each mode — pass values matching the mode you’re querying. |
rating | - | No | Filter by minimum overall guest rating. Options: - threePointFivePlus — 3.5 stars or higher- fourPlus — 4.0 stars or higher- fourPointFivePlus — 4.5 stars or higher |
brands | - | No | Comma-separated list of brand IDs to filter by. Brand IDs are returned in the response under brands for the same query. |
hotelClass | - | No | Comma-separated list of hotel star classes to include (e.g., 2,3,4,5). |
freeCancellation | - | No | Show only properties offering free cancellation. |
specialOffers | - | No | Show only properties with special offers. |
ecoCertified | - | No | Show only eco-certified properties. |
vacationRentals | - | No | Search vacation rentals instead of hotels. |
bedrooms | - | No | Minimum number of bedrooms (vacation rentals only). |
bathrooms | - | No | Minimum number of bathrooms (vacation rentals only). |
nextPageToken | - | No | Token to fetch the next page of hotel results. Returned in the pagination field of a previous response. |
propertyToken | - | No | Token used to retrieve details for a specific property. Returned in each property in the results. |