Google Hotels listing API
One hotel from Google Hotels by its hotel_id: class, rating, category ratings, lead rate, check-in and check-out times, description and website.
GET /v1/google/hotels/infoBeta2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/google/hotels/info?hotel_identifier=ChcI7cXzlLvj7PteGgsvZy8xdG5ncjYzcxAB",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "hotel": { "name": "414 Hotel New York Times Square", "data_id": "0x89c25853d5430087:0x5ef7b31bb29ce2ed", "hotel_id": "ChcI7cXzlLvj7PteGgsvZy8xdG5ncjYzcxAB", "coordinates": { "lat": 40.761192099999995, "lng": -73.99181759999999 }, "hotel_class": "2-star hotel", "stars": 2, "rating": 3.9, "reviews_count": 465, "rate_per_night": "$78", "rate_per_night_with_taxes": "$90", "extracted_rate": 78, "currency": "USD", "check_in_date": "2026-11-30", "check_out_date": "2026-12-01", "check_in_time": "4:00 PM", "check_out_time": "11:00 AM", "description": "Boutique lodging boasting polished quarters, an inner garden & a communal kitchenette.", "website": "https://414hotel.com/", "thumbnail": "https://lh3.googleusercontent.com/grass-proxy/AIM7gW0A8WH3Vkcfnqw4GhuI9t26KgBFipbF_fmWdgayWYSmQzP9Yuwfdb__RVj-pUyxUCS5in…", "category_ratings": [ { "category": 4, "rating": "4.9" }, { "category": 1, "rating": "4.8" }, "… 3 more" ], "link": "https://www.google.com/travel/hotels/entity/ChcI7cXzlLvj7PteGgsvZy8xdG5ncjYzcxAB" }}Parameters
| Name | Type | Description |
|---|---|---|
hotel_identifierquery · required | string | Example: ChcI7cXzlLvj7PteGgsvZy8xdG5ncjYzcxAB. |
languagequery | string | Interface language code (Google’s hl), default en. Example: de. |
countryquery | string | Two-letter country (Google’s gl), default us. Example: gb. |
currencyquery | string |
Status codes
| Status | Meaning |
|---|---|
200 | The hotel. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No Google Maps place matches that reference. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Google is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Where do I get hotel_identifier?
From hotel_id in google_hotels_search.
Google is a trademark of Google LLC. We are not affiliated with or endorsed by Google.