Google Search Hotels Search API
Scrape Google Search Hotels Search data with one API call. Returns hotels for a query from Google Travel: name, star rating, review score, coordinates, images, and nightly price. Dates default to next-day / one-night / two-visitors when omitted. Each hotel_identifier can be passed to GET /v1/google/hotels/info for full detail.
Last updated October 2026Maintained by the SocialCrawl team
Returns hotels matching a query from Google Travel: name, star rating, review score, coordinates, images, nightly price, and a hotel_identifier.
Use it to find candidate hotels for a place or keyword, then pass a hotel_identifier to hotels/info for the full record.
Searching 69 platforms in parallel
What can you do with the Hotels Search API?
The Hotels Search endpoint gives you structured Google Search data with computed fields in a single request. No scraping infrastructure to build or maintain.
Example Request
# GET /v1/google/hotels/search: 1 credit per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
# --max-time 60: the API's own time limit for this endpoint.
# --retry 3: retries timeouts, 429 and 5xx, honoring Retry-After.
# -o response.json keeps only the final attempt's body.
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
IDEMPOTENCY_KEY=$(od -An -N16 -tx1 /dev/urandom | tr -d ' \n')
curl -sS --max-time 60 --retry 3 -o response.json \
-H "x-api-key: YOUR_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
"https://www.socialcrawl.dev/v1/google/hotels/search?keyword=hotels+in+New+York" && cat response.json# GET /v1/google/hotels/search: 1 credit per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
import os
import random
import time
import uuid
import requests
API_KEY = os.environ.get("SOCIALCRAWL_API_KEY", "YOUR_API_KEY")
TIMEOUT_S = 60 # the API's own time limit for this endpoint.
MAX_RETRIES = 3
URL = "https://www.socialcrawl.dev/v1/google/hotels/search"
def backoff(attempt):
# Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
return 2 ** attempt * (0.5 + random.random() / 2)
def socialcrawl(params):
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
idempotency_key = str(uuid.uuid4())
for attempt in range(MAX_RETRIES + 1):
try:
res = requests.get(
URL,
params=params,
headers={"x-api-key": API_KEY, "Idempotency-Key": idempotency_key},
timeout=TIMEOUT_S,
)
body = res.json()
except (requests.RequestException, ValueError):
# A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
if attempt == MAX_RETRIES:
raise
time.sleep(backoff(attempt))
continue
if body["success"]:
return body
error = body["error"]
# Branch on error["type"], never on the message text.
if error["type"] == "RESOURCE_NOT_FOUND":
return None # refunded: nothing to read
retry_after = res.headers.get("Retry-After")
# SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
permanent = error["type"] == "SERVICE_UNAVAILABLE" and retry_after is None
if not error.get("retryable") or permanent or attempt == MAX_RETRIES:
raise RuntimeError(f"{error['type']}: {error['message']} (request_id {body['request_id']})")
# Retry-After (seconds) wins; otherwise back off.
time.sleep(float(retry_after) if retry_after else backoff(attempt))
params = {
"keyword": "hotels in New York",
}
body = socialcrawl(params)
if body is not None:
print(body["data"])// GET /v1/google/hotels/search: 1 credit per call. Cache hits are free and failed calls are refunded.
// Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
const API_KEY = process.env.SOCIALCRAWL_API_KEY ?? "YOUR_API_KEY";
const TIMEOUT_MS = 60_000; // the API's own time limit for this endpoint.
const MAX_RETRIES = 3;
type Page = { next_cursor: string | null; has_more: boolean };
type SocialCrawlResponse =
| { success: true; data: any; pagination?: Page; credits_used: number; request_id: string }
| { success: false; error: { type: string; message: string; retryable: boolean }; request_id: string };
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
// Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
const backoffMs = (attempt: number) => 2 ** attempt * 1000 * (0.5 + Math.random() / 2);
async function socialcrawl(url: URL) {
// One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
const idempotencyKey = crypto.randomUUID();
for (let attempt = 0; ; attempt++) {
let res: Response;
let body: SocialCrawlResponse;
try {
res = await fetch(url, {
headers: {
"x-api-key": API_KEY,
"Idempotency-Key": idempotencyKey,
},
signal: AbortSignal.timeout(TIMEOUT_MS),
});
body = (await res.json()) as SocialCrawlResponse;
} catch (error) {
// A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
if (attempt >= MAX_RETRIES) throw error;
await sleep(backoffMs(attempt));
continue;
}
if (body.success) return body;
// Branch on error.type, never on the message text.
if (body.error.type === "RESOURCE_NOT_FOUND") return null; // refunded: nothing to read
const retryAfter = res.headers.get("Retry-After");
// SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
const permanent = body.error.type === "SERVICE_UNAVAILABLE" && retryAfter === null;
if (!body.error.retryable || permanent || attempt >= MAX_RETRIES) {
throw new Error(`${body.error.type}: ${body.error.message} (request_id ${body.request_id})`);
}
// Retry-After (seconds) wins; otherwise back off.
await sleep(retryAfter ? Number(retryAfter) * 1000 : backoffMs(attempt));
}
}
const url = new URL("https://www.socialcrawl.dev/v1/google/hotels/search");
url.searchParams.set("keyword", "hotels in New York");
const body = await socialcrawl(url);
if (body) console.log(body.data);Parameters
| Parameter | Required | Description |
|---|---|---|
| keyword | Yes | Hotel search query (e.g. 'hotels in New York'). |
| location_name | No | Geographic context as 'City,Region,Country'. |
| language_name | No | Result language (default 'English'). |
| check_in | No | Check-in date (YYYY-MM-DD). Defaults to the next day. |
| check_out | No | Check-out date (YYYY-MM-DD). Defaults to one night. |
What does the Google Search Hotels Search API return?
Every response follows one unified schema. Here is a real, unmodified response body, so you can see the exact fields you get back before spending a credit.
Example response
{
"success": true,
"platform": "google",
"endpoint": "/v1/google/hotels/search",
"data": {
"items": [
{
"place": {
"id": "ChoIxPKIzoX4zIfLARoNL2cvMTFwd2g1N2c1NRAB",
"name": "31 Street Broadway Hotel",
"url": null,
"category": "Hotel",
"rating": {
"value": 2.6,
"max": 5
},
"reviews_count": 439,
"price_level": null,
"address": null,
"phone": null,
"latitude": 40.747211,
"longitude": -73.9878074,
"verified": null,
"description": null,
"image_urls": [
"https://lh3.googleusercontent.com/gps-cs-s/AHRPTWmOW8SBhbFljBfsPnlLfB4Quy-xJqqBv_T8HONDh3vkHu3lGiOCGZecVO6EQH0TqK1WsJ5HrwY8JSuC9E6JQtf1xFzN86tYFQ4imBM7pbfr8xiKUi6ZSY0a_019tbahriNXgDuDLlTB6do=s287-w287-h192-n-k-no-v1",
"https://lh3.googleusercontent.com/gps-cs-s/AHRPTWmrwcoHgKzq2j-6yxz6gtnstCH1XAYmoxkwETqGBj5NEeckpGWo9GXpaxKwK7a5nfUkCBDzkFyYhcYh41R9aA1p381haWZXvMXqtBGF1g-gBdgycjgdGQq3iE2rSLLMlPsYf_q3MdCYh5o=s287-w287-h192-n-k-no-v1"
],
"hotel": {
"stars": 3,
"stars_description": null,
"check_in_time": null,
"check_out_time": null,
"amenities": null,
"review_topics": null,
"prices": null
}
}
},
{
"place": {
"id": "ChkIkPCX3P7fgYq2ARoML2cvMTF5OXpjcWdzEAE",
"name": "Hotel Executive Suites",
"url": null,
"category": "Hotel",
"rating": {
"value": 3.4,
"max": 5
},
"reviews_count": 1347,
"price_level": null,
"address": null,
"phone": null,
"latitude": 40.5906024,
"longitude": -74.2388923,
"verified": null,
"description": null,
"image_urls": [
"https://lh5.googleusercontent.com/proxy/_IGCGNLsJDrnAYuCJx5XiSbRU0TOnECDZzC063xyBF7oMrjcVldSqUrhd2lEn0AkNuySLE0ze3Bx6bof8PH-Udnxd5JwdfgbQcOl20-HmuaoBirAVydxbTU2tkhlPsfxFI8iRMoKH3y0HV1dlM9amOXckcU3uU33wmndakFapQ=s287-w287-h192-n-k-no-v1",
"https://lh3.googleusercontent.com/gps-cs-s/AHRPTWnsjwqAuNgWyA6yOHXyYI19o11j1OgFNlmYhVl1hMdGMv4DAZ_-W-ZoX3G0-nwwBuq5FAhCxV0imGYsSEPm9gJT6yDkLul2ooSVv9xzfP7mlWZHfmiWdC6vpeqOnAcqDBQfU44N=s287-w287-h192-n-k-no-v1"
],
"hotel": {
"stars": 3,
"stars_description": null,
"check_in_time": null,
"check_out_time": null,
"amenities": null,
"review_topics": null,
"prices": null
}
}
}
],
"total": 20,
"dropped": 0
},
"credits_used": 1,
"credits_remaining": 9999,
"request_id": "req_example000000",
"cached": false,
"pagination": {
"next_cursor": null,
"has_more": false,
"page_size": 20
},
"redacted": true
}Live sample illustrating the unified response shape. Field values reflect the record you query.
How does the Google Search Hotels Search API work?
Send a GET request with your API key and get back clean, structured JSON in our unified schema. Supported computed fields are populated when the source provides the required inputs.
Method
GET
Response
JSON
How do you scrape social media data in seconds?
The fastest social media scraping API for developers. Scrape profiles, posts, comments, and analytics from 69 platforms covering 10B+ monthly active users.
One schema, every platform
Query 69 platforms with identical response structures. Write your integration once.
Computed fields, not just scraped
When an endpoint supports these metrics and the source provides the required inputs, the normalized record includes engagement_rate, estimated_reach, content_category, and language. Ready to use.
See your data before you code
Visual Data Explorer. Paste any URL, get rich result cards, sortable tables, CSV export.
import requests
response = requests.get(
'https://www.socialcrawl.dev/v1/tiktok/profile',
params={'handle': 'charlidamelio'},
headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json(){
"success": true,
"platform": "tiktok",
"data": {
"author": {
"username": "charlidamelio",
"followers": 152400000
},
"engagement": {
"likes": 12400000000,
"engagement_rate": 0.087
},
"metadata": {
"language": "en",
"content_category": "lifestyle"
}
}
}Have a question? We got answers
Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.
Contact usHow do I search Google Hotels with an API?
What does each hotel result include?
Is this a Google Places or Travel API alternative?
How do I get full detail on one hotel?
How much does the Google Hotels API cost?
Ask AI about SocialCrawl
Ready to scrape Google Search Hotels Search data?
Get your API key and start pulling Google Search data in under 60 seconds.
