API Hop Docs
Google Maps endpoint reference
Search local businesses and places on Google Maps. Place reviews · Place photos · Photo metadata · Business posts · Directions · Place suggestions · Contributor reviews · Local search · Local services · Events.
Concurrency limit
AI and Data each share an account-wide pool of concurrent slots: 5 AI / 2 Data by default, adjusted by your subscription. Endpoint overrides still cannot exceed the category pool. Reaching either limit returns HTTP 429. Asynchronous tasks occupy a slot until execution ends.
GET /v1/google-maps/search GET /v1/google-maps/reviews GET /v1/google-maps/photos GET /v1/google-maps/photos/meta GET /v1/google-maps/posts GET /v1/google-maps/directions GET /v1/google-maps/autocomplete GET /v1/google-maps/contributor/reviews GET /v1/google-maps/local GET /v1/google-maps/local/services GET /v1/google-maps/events Search local businesses and places on Google Maps. Place reviews · Place photos · Photo metadata · Business posts · Directions · Place suggestions · Contributor reviews · Local search · Local services · Events.
- Search Google Maps places:
GET https://api.apihop.ai/v1/google-maps/search - Place reviews:
GET https://api.apihop.ai/v1/google-maps/reviews - Place photos:
GET https://api.apihop.ai/v1/google-maps/photos - Photo metadata:
GET https://api.apihop.ai/v1/google-maps/photos/meta - Business posts:
GET https://api.apihop.ai/v1/google-maps/posts - Directions:
GET https://api.apihop.ai/v1/google-maps/directions - Place suggestions:
GET https://api.apihop.ai/v1/google-maps/autocomplete - Contributor reviews:
GET https://api.apihop.ai/v1/google-maps/contributor/reviews - Local search:
GET https://api.apihop.ai/v1/google-maps/local - Local services:
GET https://api.apihop.ai/v1/google-maps/local/services - Events:
GET https://api.apihop.ai/v1/google-maps/events
Authentication and billing
The default price is $0.0003 (300 credits) per successful request. Use your API Hop API key. Availability depends on active gateways and key permissions. Check the current catalog and your account for the price per successful request; account-specific pricing takes precedence. Successful empty results are billable. Failed requests release the credit reservation. Requests time out after 60 seconds, with no automatic retry or pagination. Settlement failures never repeat the upstream request.
Authorization: Bearer YOUR_API_KEYRequest parameters
Search Google Maps places
GET https://api.apihop.ai/v1/google-maps/search
| Field | Type | Constraints | Example |
|---|---|---|---|
query | string | Search query | coffee shop |
type | string | Mode; search, place | - |
place_id | string | Place ID | ChIJP8p2kJC1RIYR2qrGoXZtZCk |
data_cid | string | Decimal place CID | 2982629209513831130 |
latitude | number | Latitude; min: -90; max: 90 | 30.2672 |
longitude | number | Longitude; min: -180; max: 180 | -97.7431 |
location | string | Named origin | Austin, TX |
zoom | number | Viewport zoom; min: 3; max: 30 | 13.1 |
m | number | Viewport height in meters; min: 1; max: 15028132 | - |
start | integer | Result offset; min: 0; max: 9007199254740991 | 0 |
gl | string | Country hint | us |
hl | string | Interface language | en-US |
nearby | boolean | Nearby bias | - |
zero_trace | boolean | Disable response artifact archival | - |
min_price | integer | Minimum price; min: 0; max: 9007199254740991 | - |
max_price | integer | Maximum price; min: 0; max: 9007199254740991 | - |
min_rating | number | Preferred minimum rating; 2, 2.5, 3, 3.5, 4, 4.5 | - |
open_state | string | Open state; now, 24h | - |
open_on_day | string | Local weekday; mon, tue, wed, thu, fri, sat, sun | - |
open_at_hour | integer | Local hour; min: 0; max: 23 | - |
Place reviews
GET https://api.apihop.ai/v1/google-maps/reviews
| Field | Type | Constraints | Example |
|---|---|---|---|
country | string | Two-letter country code.; ^[A-Za-z]{2}$ | us |
language | string | Provider-supported language code. | en |
device | string | Source device presentation.; desktop, mobile, tablet | - |
zero_trace | boolean | Do not archive upstream response artifacts; billing metadata is retained. | - |
no_cache | boolean | Compatibility flag; both values fetch fresh data and use normal billing. | - |
id | string | Google place ID or hexadecimal data ID; decimal CIDs and contributor IDs are unsupported.; required | - |
next_page_token | string | Opaque continuation token; expires after one hour. Keep account, parameters, device and limit unchanged.; maxLength: 24576 | - |
limit | integer | Maximum returned items; the source may return fewer.; ≥ 1; ≤ 20 | - |
sort_by | string | Review sort order.; relevance, newest, rating_high, rating_low, qualityScore, newestFirst, ratingHigh, ratingLow | - |
query | string | Review text filter; exclusive with topic_id.; maxLength: 500 | - |
topic_id | string | Source topic ID; exclusive with query.; maxLength: 131; ^(?:[A-Za-z0-9_-]{1,128}|/[mg]/[A-Za-z0-9_-]{1,128})$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: Google place_id OR hexadecimal data_id; NOT decimal CID, contributor IDquery XOR topic_id (optional)next_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/reviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=ChIJM8w7rqS1RIYRhEz2-KuoqzE" \
--data-urlencode "limit=10"Place photos
GET https://api.apihop.ai/v1/google-maps/photos
| Field | Type | Constraints | Example |
|---|---|---|---|
country | string | Two-letter country code.; ^[A-Za-z]{2}$ | us |
language | string | Provider-supported language code. | en |
device | string | Source device presentation.; desktop, mobile, tablet | - |
zero_trace | boolean | Do not archive upstream response artifacts; billing metadata is retained. | - |
no_cache | boolean | Compatibility flag; both values fetch fresh data and use normal billing. | - |
id | string | Source identifier returned by the corresponding Google Maps result.; required | - |
next_page_token | string | Opaque continuation token; expires after one hour. Keep account, parameters, device and limit unchanged.; maxLength: 24576 | - |
limit | integer | Maximum returned items; the source may return fewer.; ≥ 1; ≤ 100 | - |
category_id | string | Gallery category ID returned for this place.; maxLength: 1024; ^[A-Za-z0-9_-]+={0,2}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: Google Maps place identifier; category_id: copy from this place gallerynext_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/photos" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=0x8644b5a4ae3bcc33:0x31aba8abf8f64c84" \
--data-urlencode "limit=10"Photo metadata
GET https://api.apihop.ai/v1/google-maps/photos/meta
| Field | Type | Constraints | Example |
|---|---|---|---|
country | string | Two-letter country code.; ^[A-Za-z]{2}$ | us |
language | string | Provider-supported language code. | en |
zero_trace | boolean | Do not archive upstream response artifacts; billing metadata is retained. | - |
no_cache | boolean | Compatibility flag; both values fetch fresh data and use normal billing. | - |
id | string | Photo ID copied from photos results[].id; do not use the place data_id.; required; maxLength: 255; ^[A-Za-z0-9_-]{20,255}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: copy photo ID from GET https://api.apihop.ai/v1/google-maps/photos results; NOT place data_idno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/photos/meta" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=AF1QipPFfVtTCFKV9n-uOBqTTOHuRemFBg0PWN7xdVxp"Business posts
GET https://api.apihop.ai/v1/google-maps/posts
| Field | Type | Constraints | Example |
|---|---|---|---|
country | string | Two-letter country code.; ^[A-Za-z]{2}$ | us |
language | string | Provider-supported language code. | en |
device | string | Source device presentation.; desktop, mobile, tablet | - |
zero_trace | boolean | Do not archive upstream response artifacts; billing metadata is retained. | - |
no_cache | boolean | Compatibility flag; both values fetch fresh data and use normal billing. | - |
id | string | Source identifier returned by the corresponding Google Maps result.; required | - |
next_page_token | string | Opaque continuation token; expires after one hour. Keep account, parameters, device and limit unchanged.; maxLength: 24576 | - |
limit | integer | Maximum returned items; the source may return fewer.; ≥ 1; ≤ 100 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: Google Maps place identifiernext_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/posts" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=0x8644b5a4ae3bcc33:0x31aba8abf8f64c84" \
--data-urlencode "limit=10"Directions
GET https://api.apihop.ai/v1/google-maps/directions
| Field | Type | Constraints | Example |
|---|---|---|---|
country | string | Two-letter country code.; ^[A-Za-z]{2}$ | us |
language | string | Provider-supported language code. | en |
device | string | Source device presentation.; desktop, mobile, tablet | - |
zero_trace | boolean | Do not archive upstream response artifacts; billing metadata is retained. | - |
no_cache | boolean | Compatibility flag; both values fetch fresh data and use normal billing. | - |
origin | string | Starting address; use exactly one of origin, start_data_id, start_coords. | - |
destination | string | Destination address; use exactly one of destination, end_data_id, end_coords. | - |
start_data_id | string | Starting hexadecimal Maps data ID.; maxLength: 37; ^0x[0-9a-fA-F]{1,16}:0x[0-9a-fA-F]{1,16}$ | - |
end_data_id | string | Destination hexadecimal Maps data ID.; maxLength: 37; ^0x[0-9a-fA-F]{1,16}:0x[0-9a-fA-F]{1,16}$ | - |
start_coords | string | Starting latitude,longitude.; maxLength: 80 | - |
end_coords | string | Destination latitude,longitude.; maxLength: 80 | - |
travel_mode | string | Transport mode.; driving, walking, bicycling, transit, two-wheeler, best, flight | - |
distance_unit | integer | Kilometers (0) or miles (1).; ≥ 0; ≤ 1 | - |
avoid | string | Comma-separated road types to avoid. | - |
prefer | string | Comma-separated transit modes; requires travel_mode=transit. | - |
route | integer | Transit routing: fewer transfers (2), less walking (3), wheelchair accessible (4).; ≥ 2; ≤ 4 | - |
time | string | depart_at:timestamp, arrive_by:timestamp, or transit-only last_available.; maxLength: 40 | - |
limit | integer | Maximum returned items; the source may return fewer.; ≥ 1; ≤ 100 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseorigin XOR start_data_id XOR start_coords (required)destination XOR end_data_id XOR end_coords (required)start_coords, end_coords: latitude,longitude; latitude: -90..90; longitude: -180..180prefer, route => travel_mode=transit; time=last_available => travel_mode=transittime: depart_at:Unix_seconds OR arrive_by:Unix_seconds OR last_availabledistance_unit: 0=km, 1=mi; route: 2=fewer transfers, 3=less walking, 4=wheelchair accessibleno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/directions" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "origin=Austin, TX" \
--data-urlencode "destination=Dallas, TX" \
--data-urlencode "travel_mode=driving"Place suggestions
GET https://api.apihop.ai/v1/google-maps/autocomplete
| Field | Type | Constraints | Example |
|---|---|---|---|
country | string | Two-letter country code.; ^[A-Za-z]{2}$ | us |
language | string | Provider-supported language code. | en |
device | string | Source device presentation.; desktop, mobile, tablet | - |
zero_trace | boolean | Do not archive upstream response artifacts; billing metadata is retained. | - |
no_cache | boolean | Compatibility flag; both values fetch fresh data and use normal billing. | - |
query | string | Search query, at most 8192 UTF-8 bytes.; required | - |
latitude | number | Latitude; requires longitude.; ≥ -90; ≤ 90 | - |
longitude | number | Longitude; requires latitude.; ≥ -180; ≤ 180 | - |
limit | integer | Maximum returned items; the source may return fewer.; ≥ 1; ≤ 100 | - |
ll | string | Viewport @latitude,longitude,zoomz (3-21) or @latitude,longitude,heightm.; maxLength: 120 | - |
cp | integer | Cursor position in query, in UTF-16 code units.; ≥ 0 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiselatitude AND longitude (optional)cp <= query.length (UTF-16)ll: @latitude,longitude,zoomz (3..21) OR @latitude,longitude,heightm (>0)no_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee in Austin" \
--data-urlencode "limit=5"Contributor reviews
GET https://api.apihop.ai/v1/google-maps/contributor/reviews
| Field | Type | Constraints | Example |
|---|---|---|---|
country | string | Two-letter country code.; ^[A-Za-z]{2}$ | us |
language | string | Provider-supported language code. | en |
device | string | Source device presentation.; desktop, mobile, tablet | - |
zero_trace | boolean | Do not archive upstream response artifacts; billing metadata is retained. | - |
no_cache | boolean | Compatibility flag; both values fetch fresh data and use normal billing. | - |
id | string | Numeric contributor ID from a Google Maps contributor profile URL.; required; ^[0-9]+$ | - |
next_page_token | string | Opaque continuation token; expires after one hour. Keep account, parameters, device and limit unchanged.; maxLength: 24576 | - |
page | integer | Page within the first 200 reviews; page after 1 cannot be combined with a token.; ≥ 1; ≤ 200 | - |
limit | integer | Maximum returned items; the source may return fewer.; ≥ 1; ≤ 50 | - |
sort_by | string | Newest reviews only.; newest | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: numeric Google Maps contributor profile ID(page - 1) * limit < 200; page default: 1; limit default: 20page > 1 => NOT next_page_tokennext_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/contributor/reviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=112967280418127956987" \
--data-urlencode "limit=20"Local search
GET https://api.apihop.ai/v1/google-maps/local
| Field | Type | Constraints | Example |
|---|---|---|---|
country | string | Two-letter country code.; ^[A-Za-z]{2}$ | us |
language | string | Provider-supported language code. | en |
device | string | Source device presentation.; desktop, mobile, tablet | - |
zero_trace | boolean | Do not archive upstream response artifacts; billing metadata is retained. | - |
no_cache | boolean | Compatibility flag; both values fetch fresh data and use normal billing. | - |
query | string | Search query, at most 8192 UTF-8 bytes.; required | - |
location | string | Named location; exclusive with coordinates or uule. | - |
latitude | number | Latitude; requires longitude.; ≥ -90; ≤ 90 | - |
longitude | number | Longitude; requires latitude.; ≥ -180; ≤ 180 | - |
uule | string | Encoded Google location; exclusive with location or coordinates.; maxLength: 4096 | - |
google_domain | string | Google country domain, such as google.com or google.co.uk. | - |
start | integer | Result offset, starting at zero.; ≥ 0; ≤ 1000 | - |
tbs | string | Native Google comma-separated key:value filters.; maxLength: 512 | - |
ludocid | string | Google place customer identifier (CID).; ^[0-9]{1,20}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise(latitude AND longitude) XOR location XOR uule (optional)tbs: comma-separated key:value filters; ludocid: Google place CIDno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/local" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee shop" \
--data-urlencode "location=Austin, TX"Local services
GET https://api.apihop.ai/v1/google-maps/local/services
| Field | Type | Constraints | Example |
|---|---|---|---|
country | string | Two-letter country code.; ^[A-Za-z]{2}$ | us |
language | string | Provider-supported language code. | en |
device | string | Source device presentation.; desktop, mobile, tablet | - |
zero_trace | boolean | Do not archive upstream response artifacts; billing metadata is retained. | - |
no_cache | boolean | Compatibility flag; both values fetch fresh data and use normal billing. | - |
query | string | Search query, at most 8192 UTF-8 bytes.; required | - |
location | string | Named location; exclusive with coordinates or uule. | - |
limit | integer | Maximum returned items; the source may return fewer.; ≥ 1; ≤ 20 | - |
data_cid | string | Nonzero unsigned 64-bit geographic CID; exclusive with location. | - |
job_type | string | Native service selection, for example restore_power.; maxLength: 100; ^[a-z][a-z0-9_]{0,99}$ | - |
cid | string | Provider identifier; supply cid, bid and pid together.; ^[0-9]{1,20}$ | - |
bid | string | Provider identifier; supply cid, bid and pid together.; ^[0-9]{1,20}$ | - |
pid | string | Provider identifier; supply cid, bid and pid together.; ^[0-9]{1,20}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwisedata_cid: geographic city/district CID, string 1..18446744073709551615; NOT locationcid AND bid AND pid (optional group); query selects the service categoryno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/local/services" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=plumber" \
--data-urlencode "location=Austin, TX" \
--data-urlencode "limit=5"Events
GET https://api.apihop.ai/v1/google-maps/events
| Field | Type | Constraints | Example |
|---|---|---|---|
country | string | Two-letter country code.; ^[A-Za-z]{2}$ | us |
language | string | Provider-supported language code. | en |
device | string | Source device presentation.; desktop, mobile, tablet | - |
zero_trace | boolean | Do not archive upstream response artifacts; billing metadata is retained. | - |
no_cache | boolean | Compatibility flag; both values fetch fresh data and use normal billing. | - |
query | string | Search query, at most 8192 UTF-8 bytes.; required | - |
location | string | Named location; exclusive with coordinates or uule. | - |
latitude | number | Latitude; requires longitude.; ≥ -90; ≤ 90 | - |
longitude | number | Longitude; requires latitude.; ≥ -180; ≤ 180 | - |
uule | string | Encoded Google location; exclusive with location or coordinates.; maxLength: 4096 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise(latitude AND longitude) XOR location XOR uule (optional)no_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/events" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=events in Austin" \
--data-urlencode "location=Austin, TX"Validation rules
Send query parameters only, with no request body. Unknown, repeated, empty or control-character values are rejected. Search requires query. A place_id or data_cid selects place lookup, and the two IDs are mutually exclusive; type must match the selected mode. Keep data_cid as a decimal string (1–18446744073709551615). Place lookup rejects the search-only filters below. latitude and longitude must be supplied together and cannot be combined with location. m requires an origin and excludes zoom. nearby requires an origin even when false. min_price cannot exceed max_price. open_state excludes open_on_day and open_at_hour; open_at_hour requires open_on_day. Zero is a valid midnight hour. gl is a two-letter country code; hl accepts a two- or three-letter language with an optional two- to four-letter suffix. No defaults are injected. Each string accepts at most 8192 characters. start is an offset, typically 0, 20, 40; pages contain up to 20 results.
search: query; type = search (optional)place: place_id XOR data_cid; type = place (optional); data_cid: 1..18446744073709551615 (string)place: NOT latitude, longitude, location, zoom, m, start, nearby, min_price, max_price, min_rating, open_state, open_on_day, open_at_hourorigin (optional): (latitude AND longitude) XOR location; m => (coordinates OR location) AND NOT zoom; nearby => coordinates OR locationmin_price <= max_price; open_at_hour => open_on_day; open_state => NOT open_on_day AND NOT open_at_hourgl: /^[a-z]{2}$/i; hl: /^[a-z]{2,3}(?:-[a-z]{2,4})?$/i; string.length <= 8192
Examples
curl --get "https://api.apihop.ai/v1/google-maps/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee shop" \
--data-urlencode "latitude=30.2672" \
--data-urlencode "longitude=-97.7431" \
--data-urlencode "start=0"curl --get "https://api.apihop.ai/v1/google-maps/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "data_cid=2982629209513831130" \
--data-urlencode "hl=en"Responses and errors
The native JSON response and numeric precision are preserved. The example below illustrates an empty successful result, not a live call. HTTP 400 means invalid input; 401 authentication required; 402 insufficient credit; 403 unavailable or unauthorized; 405 unsupported method; 429 rate limit; 5xx service or upstream failure. Keep X-Request-Id for diagnosis.
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"search_parameters": {
"q": "coffee shop",
"type": "maps",
"engine": "google_maps"
},
"has_next_page": false,
"results": []
}
}
}