API Hop

Documentation

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
Default limit: 2
GET /v1/google-maps/reviews
Default limit: 2
GET /v1/google-maps/photos
Default limit: 2
GET /v1/google-maps/photos/meta
Default limit: 2
GET /v1/google-maps/posts
Default limit: 2
GET /v1/google-maps/directions
Default limit: 2
GET /v1/google-maps/autocomplete
Default limit: 2
GET /v1/google-maps/contributor/reviews
Default limit: 2
GET /v1/google-maps/local
Default limit: 2
GET /v1/google-maps/local/services
Default limit: 2
GET /v1/google-maps/events
Default limit: 2

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.

http
Authorization: Bearer YOUR_API_KEY

Request parameters

Search Google Maps places

GET https://api.apihop.ai/v1/google-maps/search

FieldTypeConstraintsExample
querystringSearch querycoffee shop
typestringMode; search, place-
place_idstringPlace IDChIJP8p2kJC1RIYR2qrGoXZtZCk
data_cidstringDecimal place CID2982629209513831130
latitudenumberLatitude; min: -90; max: 9030.2672
longitudenumberLongitude; min: -180; max: 180-97.7431
locationstringNamed originAustin, TX
zoomnumberViewport zoom; min: 3; max: 3013.1
mnumberViewport height in meters; min: 1; max: 15028132-
startintegerResult offset; min: 0; max: 90071992547409910
glstringCountry hintus
hlstringInterface languageen-US
nearbybooleanNearby bias-
zero_tracebooleanDisable response artifact archival-
min_priceintegerMinimum price; min: 0; max: 9007199254740991-
max_priceintegerMaximum price; min: 0; max: 9007199254740991-
min_ratingnumberPreferred minimum rating; 2, 2.5, 3, 3.5, 4, 4.5-
open_statestringOpen state; now, 24h-
open_on_daystringLocal weekday; mon, tue, wed, thu, fri, sat, sun-
open_at_hourintegerLocal hour; min: 0; max: 23-

Place reviews

GET https://api.apihop.ai/v1/google-maps/reviews

FieldTypeConstraintsExample
countrystringTwo-letter country code.; ^[A-Za-z]{2}$us
languagestringProvider-supported language code.en
devicestringSource device presentation.; desktop, mobile, tablet-
zero_tracebooleanDo not archive upstream response artifacts; billing metadata is retained.-
no_cachebooleanCompatibility flag; both values fetch fresh data and use normal billing.-
idstringGoogle place ID or hexadecimal data ID; decimal CIDs and contributor IDs are unsupported.; required-
next_page_tokenstringOpaque continuation token; expires after one hour. Keep account, parameters, device and limit unchanged.; maxLength: 24576-
limitintegerMaximum returned items; the source may return fewer.; ≥ 1; ≤ 20-
sort_bystringReview sort order.; relevance, newest, rating_high, rating_low, qualityScore, newestFirst, ratingHigh, ratingLow-
querystringReview text filter; exclusive with topic_id.; maxLength: 500-
topic_idstringSource 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 body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • id: Google place_id OR hexadecimal data_id; NOT decimal CID, contributor ID
  • query XOR topic_id (optional)
  • next_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic pagination
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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

FieldTypeConstraintsExample
countrystringTwo-letter country code.; ^[A-Za-z]{2}$us
languagestringProvider-supported language code.en
devicestringSource device presentation.; desktop, mobile, tablet-
zero_tracebooleanDo not archive upstream response artifacts; billing metadata is retained.-
no_cachebooleanCompatibility flag; both values fetch fresh data and use normal billing.-
idstringSource identifier returned by the corresponding Google Maps result.; required-
next_page_tokenstringOpaque continuation token; expires after one hour. Keep account, parameters, device and limit unchanged.; maxLength: 24576-
limitintegerMaximum returned items; the source may return fewer.; ≥ 1; ≤ 100-
category_idstringGallery 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 body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • id: Google Maps place identifier; category_id: copy from this place gallery
  • next_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic pagination
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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

FieldTypeConstraintsExample
countrystringTwo-letter country code.; ^[A-Za-z]{2}$us
languagestringProvider-supported language code.en
zero_tracebooleanDo not archive upstream response artifacts; billing metadata is retained.-
no_cachebooleanCompatibility flag; both values fetch fresh data and use normal billing.-
idstringPhoto 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 body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • id: copy photo ID from GET https://api.apihop.ai/v1/google-maps/photos results; NOT place data_id
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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

FieldTypeConstraintsExample
countrystringTwo-letter country code.; ^[A-Za-z]{2}$us
languagestringProvider-supported language code.en
devicestringSource device presentation.; desktop, mobile, tablet-
zero_tracebooleanDo not archive upstream response artifacts; billing metadata is retained.-
no_cachebooleanCompatibility flag; both values fetch fresh data and use normal billing.-
idstringSource identifier returned by the corresponding Google Maps result.; required-
next_page_tokenstringOpaque continuation token; expires after one hour. Keep account, parameters, device and limit unchanged.; maxLength: 24576-
limitintegerMaximum returned items; the source may return fewer.; ≥ 1; ≤ 100-
  • GET query only; unknown, repeated, empty, control-character values rejected; no request body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • id: Google Maps place identifier
  • next_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic pagination
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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

FieldTypeConstraintsExample
countrystringTwo-letter country code.; ^[A-Za-z]{2}$us
languagestringProvider-supported language code.en
devicestringSource device presentation.; desktop, mobile, tablet-
zero_tracebooleanDo not archive upstream response artifacts; billing metadata is retained.-
no_cachebooleanCompatibility flag; both values fetch fresh data and use normal billing.-
originstringStarting address; use exactly one of origin, start_data_id, start_coords.-
destinationstringDestination address; use exactly one of destination, end_data_id, end_coords.-
start_data_idstringStarting hexadecimal Maps data ID.; maxLength: 37; ^0x[0-9a-fA-F]{1,16}:0x[0-9a-fA-F]{1,16}$-
end_data_idstringDestination hexadecimal Maps data ID.; maxLength: 37; ^0x[0-9a-fA-F]{1,16}:0x[0-9a-fA-F]{1,16}$-
start_coordsstringStarting latitude,longitude.; maxLength: 80-
end_coordsstringDestination latitude,longitude.; maxLength: 80-
travel_modestringTransport mode.; driving, walking, bicycling, transit, two-wheeler, best, flight-
distance_unitintegerKilometers (0) or miles (1).; ≥ 0; ≤ 1-
avoidstringComma-separated road types to avoid.-
preferstringComma-separated transit modes; requires travel_mode=transit.-
routeintegerTransit routing: fewer transfers (2), less walking (3), wheelchair accessible (4).; ≥ 2; ≤ 4-
timestringdepart_at:timestamp, arrive_by:timestamp, or transit-only last_available.; maxLength: 40-
limitintegerMaximum returned items; the source may return fewer.; ≥ 1; ≤ 100-
  • GET query only; unknown, repeated, empty, control-character values rejected; no request body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • origin 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..180
  • prefer, route => travel_mode=transit; time=last_available => travel_mode=transit
  • time: depart_at:Unix_seconds OR arrive_by:Unix_seconds OR last_available
  • distance_unit: 0=km, 1=mi; route: 2=fewer transfers, 3=less walking, 4=wheelchair accessible
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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

FieldTypeConstraintsExample
countrystringTwo-letter country code.; ^[A-Za-z]{2}$us
languagestringProvider-supported language code.en
devicestringSource device presentation.; desktop, mobile, tablet-
zero_tracebooleanDo not archive upstream response artifacts; billing metadata is retained.-
no_cachebooleanCompatibility flag; both values fetch fresh data and use normal billing.-
querystringSearch query, at most 8192 UTF-8 bytes.; required-
latitudenumberLatitude; requires longitude.; ≥ -90; ≤ 90-
longitudenumberLongitude; requires latitude.; ≥ -180; ≤ 180-
limitintegerMaximum returned items; the source may return fewer.; ≥ 1; ≤ 100-
llstringViewport @latitude,longitude,zoomz (3-21) or @latitude,longitude,heightm.; maxLength: 120-
cpintegerCursor position in query, in UTF-16 code units.; ≥ 0-
  • GET query only; unknown, repeated, empty, control-character values rejected; no request body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • latitude 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
bash
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

FieldTypeConstraintsExample
countrystringTwo-letter country code.; ^[A-Za-z]{2}$us
languagestringProvider-supported language code.en
devicestringSource device presentation.; desktop, mobile, tablet-
zero_tracebooleanDo not archive upstream response artifacts; billing metadata is retained.-
no_cachebooleanCompatibility flag; both values fetch fresh data and use normal billing.-
idstringNumeric contributor ID from a Google Maps contributor profile URL.; required; ^[0-9]+$-
next_page_tokenstringOpaque continuation token; expires after one hour. Keep account, parameters, device and limit unchanged.; maxLength: 24576-
pageintegerPage within the first 200 reviews; page after 1 cannot be combined with a token.; ≥ 1; ≤ 200-
limitintegerMaximum returned items; the source may return fewer.; ≥ 1; ≤ 50-
sort_bystringNewest reviews only.; newest-
  • GET query only; unknown, repeated, empty, control-character values rejected; no request body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • id: numeric Google Maps contributor profile ID
  • (page - 1) * limit < 200; page default: 1; limit default: 20
  • page > 1 => NOT next_page_token
  • next_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic pagination
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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"

GET https://api.apihop.ai/v1/google-maps/local

FieldTypeConstraintsExample
countrystringTwo-letter country code.; ^[A-Za-z]{2}$us
languagestringProvider-supported language code.en
devicestringSource device presentation.; desktop, mobile, tablet-
zero_tracebooleanDo not archive upstream response artifacts; billing metadata is retained.-
no_cachebooleanCompatibility flag; both values fetch fresh data and use normal billing.-
querystringSearch query, at most 8192 UTF-8 bytes.; required-
locationstringNamed location; exclusive with coordinates or uule.-
latitudenumberLatitude; requires longitude.; ≥ -90; ≤ 90-
longitudenumberLongitude; requires latitude.; ≥ -180; ≤ 180-
uulestringEncoded Google location; exclusive with location or coordinates.; maxLength: 4096-
google_domainstringGoogle country domain, such as google.com or google.co.uk.-
startintegerResult offset, starting at zero.; ≥ 0; ≤ 1000-
tbsstringNative Google comma-separated key:value filters.; maxLength: 512-
ludocidstringGoogle place customer identifier (CID).; ^[0-9]{1,20}$-
  • GET query only; unknown, repeated, empty, control-character values rejected; no request body
  • query: 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 CID
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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

FieldTypeConstraintsExample
countrystringTwo-letter country code.; ^[A-Za-z]{2}$us
languagestringProvider-supported language code.en
devicestringSource device presentation.; desktop, mobile, tablet-
zero_tracebooleanDo not archive upstream response artifacts; billing metadata is retained.-
no_cachebooleanCompatibility flag; both values fetch fresh data and use normal billing.-
querystringSearch query, at most 8192 UTF-8 bytes.; required-
locationstringNamed location; exclusive with coordinates or uule.-
limitintegerMaximum returned items; the source may return fewer.; ≥ 1; ≤ 20-
data_cidstringNonzero unsigned 64-bit geographic CID; exclusive with location.-
job_typestringNative service selection, for example restore_power.; maxLength: 100; ^[a-z][a-z0-9_]{0,99}$-
cidstringProvider identifier; supply cid, bid and pid together.; ^[0-9]{1,20}$-
bidstringProvider identifier; supply cid, bid and pid together.; ^[0-9]{1,20}$-
pidstringProvider identifier; supply cid, bid and pid together.; ^[0-9]{1,20}$-
  • GET query only; unknown, repeated, empty, control-character values rejected; no request body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • data_cid: geographic city/district CID, string 1..18446744073709551615; NOT location
  • cid AND bid AND pid (optional group); query selects the service category
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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

FieldTypeConstraintsExample
countrystringTwo-letter country code.; ^[A-Za-z]{2}$us
languagestringProvider-supported language code.en
devicestringSource device presentation.; desktop, mobile, tablet-
zero_tracebooleanDo not archive upstream response artifacts; billing metadata is retained.-
no_cachebooleanCompatibility flag; both values fetch fresh data and use normal billing.-
querystringSearch query, at most 8192 UTF-8 bytes.; required-
locationstringNamed location; exclusive with coordinates or uule.-
latitudenumberLatitude; requires longitude.; ≥ -90; ≤ 90-
longitudenumberLongitude; requires latitude.; ≥ -180; ≤ 180-
uulestringEncoded Google location; exclusive with location or coordinates.; maxLength: 4096-
  • GET query only; unknown, repeated, empty, control-character values rejected; no request body
  • query: 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
bash
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_hour
  • origin (optional): (latitude AND longitude) XOR location; m => (coordinates OR location) AND NOT zoom; nearby => coordinates OR location
  • min_price <= max_price; open_at_hour => open_on_day; open_state => NOT open_on_day AND NOT open_at_hour
  • gl: /^[a-z]{2}$/i; hl: /^[a-z]{2,3}(?:-[a-z]{2,4})?$/i; string.length <= 8192

Examples

bash
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"
bash
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.

json
{
  "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": []
    }
  }
}