← Back to marketplace

Google Maps

Fast JSON API for Google Maps - place search by text or category with rating, reviews count, address, phone, opening hours and hotel prices, autocomplete, place details, review highlights and top reviews, photos, and directions by car, bike, on foot or transit.

data
by Mark87 endpoints100% uptime90ms avg

Includes 100 free calls per month

After the free quota, standard per-request pricing applies via x402 (USDC on Base).

Endpoints

GET/v1/directions
$0.0010/req

Returns the routes Google Maps suggests between two places by car, bicycle, on foot or by public transport: for each route its distance, duration (and the duration in today's traffic by car), the road it takes, the departure and arrival time and frequency of a public transport route, and its legs with turn-by-turn steps.

Request schema

originstringrequired

Where the route starts: an address, a place name or coordinates as "latitude,longitude".

destinationstringrequired

Where the route ends: an address, a place name or coordinates as "latitude,longitude".

travel_modestring

Optional travel mode (defaults to "driving"). Use the /general/travel-modes endpoint to list valid values.

languagestring

Optional language of the instructions (defaults to "en").

countrystring

Optional two-letter country code the route is asked from, which sets the units of the distances (defaults to "us").

Response schema

originobject
destinationobject
travel_modestring
routesarray
GET/v1/general/travel-modes
$0.0010/req

Lists the values accepted by the "travel_mode" parameter of the directions.

Request schema

{
  "type": "object",
  "properties": {}
}

Response schema

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "label": {
        "type": "string"
      }
    }
  }
}
GET/v1/place/details
$0.0010/req

Returns everything the Google Maps page of a place shows: its ids (place id, feature id, CID, Knowledge Graph id), name, categories, description, address, coordinates, timezone, rating with the distribution of stars, number of reviews, website, phone, menu and online order links, owner, opening hours for the week with holiday notes and today's status, attributes (accessibility, service options, amenities, payments…), the most relevant reviews with their author, rating, text, photos and details, review highlights, photos, and for a hotel its class and the price per night from every booking site.

Request schema

place_idstringrequired

Place id (e.g. "ChIJifIePKtZwokRVZ-UdRGkZzs"), feature id (e.g. "0x89c259ab3c1ef289:0x3b67a41175949f55") or CID (e.g. "4280570365733019477") of the place. Use the /search/places endpoint to find them.

languagestring

Optional language of the texts (defaults to "en").

countrystring

Optional two-letter country code the place is viewed from (defaults to "us").

Response schema

place_idstring
feature_idstring
cidstring
kg_idstring
namestring
categoriesarray
descriptionstring
addressstring
full_addressstring
neighborhoodstring
localitystring
country_codestring
latitudenumber
longitudenumber
ratingnumber
reviews_countinteger
websitestring
phonestring
phone_internationalstring
timezonestring
open_statusstring
opening_hoursarray
thumbnailstring
hotelnull
google_maps_urlstring
address_linesarray
ownerobject
menu_urlstring
order_online_urlstring
attributesarray
rating_distributionobject
review_highlightsarray
reviewsarray
photos_countinteger
photosarray
GET/v1/place/photos
$0.0010/req

Returns the number of photos of a place and the photos Google Maps shows on its page (photos, videos and Street View), each with its full size and thumbnail link, size and where it was taken.

Request schema

place_idstringrequired

Place id, feature id or CID of the place. Use the /search/places endpoint to find them.

languagestring

Optional language of the texts (defaults to "en").

countrystring

Optional two-letter country code the place is viewed from (defaults to "us").

Response schema

place_idstring
namestring
photos_countinteger
photosarray
GET/v1/place/reviews
$0.0010/req

Returns the rating of a place, the number of reviews, the distribution of stars, the review highlights and the most relevant reviews Google Maps shows for it, each with its author, rating, text, language, date, photos and the details the reviewer gave (meal type, price per person, food, service and atmosphere ratings…).

Request schema

place_idstringrequired

Place id, feature id or CID of the place. Use the /search/places endpoint to find them.

languagestring

Optional language of the texts (defaults to "en").

countrystring

Optional two-letter country code the place is viewed from (defaults to "us").

Response schema

place_idstring
namestring
ratingnumber
reviews_countinteger
rating_distributionobject
review_highlightsarray
reviewsarray
GET/v1/search/autocomplete
$0.0010/req

Suggests places and searches for a text as it is typed, as the Google Maps search box does. A place suggestion has its place id, feature id and coordinates; a search suggestion is a text to pass to /search/places.

Request schema

querystringrequired

The text typed so far (e.g. "empire sta").

latitudestring

Optional latitude of the point to suggest places around, in decimal degrees (needs "longitude").

longitudestring

Optional longitude of the point to suggest places around, in decimal degrees (needs "latitude").

zoomstring

Optional zoom level of the map around the point, from 3 to 21 (defaults to 13).

languagestring

Optional language of the suggestions (defaults to "en").

countrystring

Optional two-letter country code the search is made from (defaults to "us").

Response schema

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "type": {
        "type": "string"
      },
      "text": {
        "type": "string"
      },
      "main_text": {
        "type": "string"
      },
      "secondary_text": {
        "type": [
          "string",
          "null"
        ]
      },
      "place_id": {
        "type": [
          "string",
          "null"
        ]
      },
      "feature_id": {
        "type": [
          "string",
          "null"
        ]
      },
      "latitude": {
        "type": [
          "number",
          "null"
        ]
      },
      "longitude": {
        "type": [
          "number",
          "null"
        ]
      }
    }
  }
}
GET/v1/search/places
$0.0010/req

Searches places on Google Maps the way its search box does: businesses, points of interest and addresses, by name, category or a free text such as "pizza in new york". Give a point (latitude and longitude) to search around it, as when the map is open there; without one the whole world is searched. Each place has its ids, name, categories, address, coordinates, rating, number of reviews, website, phone, opening hours with today's status and a photo, plus the class and price per night of a hotel. 20 places a page.

Request schema

querystringrequired

What to search for: a business, a category or an address (e.g. "pizza in new york", "coffee", "Eiffel Tower").

latitudestring

Optional latitude of the point to search around, in decimal degrees (needs "longitude").

longitudestring

Optional longitude of the point to search around, in decimal degrees (needs "latitude").

zoomstring

Optional zoom level of the map around the point, from 3 (a continent) to 21 (a building) (defaults to 13, a city district).

pagestring

Optional page number, 1 to 10 (defaults to 1).

languagestring

Optional language of the results (defaults to "en").

countrystring

Optional two-letter country code the search is made from, which ranks the results (defaults to "us").

Response schema

pageinteger
has_moreboolean
placesarray

Quick start

Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.

# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call this service
npx @apihubio/cli call -X GET "https://proxy.apihub.io/googlemaps/v1/directions" \
  -d '{"origin":"Times Square, New York","destination":"Brooklyn Bridge","travel_mode":"driving","language":"en","country":"us"}'

Or call the proxy directly (curl / any HTTP client):

curl https://proxy.apihub.io/googlemaps/v1/directions \
  -H "Authorization: Bearer ahk_your_key"

# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)

Pricing calculator

Estimate your monthly cost for Google Maps.

GET /v1/directions$0.0010/req
-
GET /v1/general/travel-modes$0.0010/req
-
GET /v1/place/details$0.0010/req
-
GET /v1/place/photos$0.0010/req
-
GET /v1/place/reviews$0.0010/req
-
GET /v1/search/autocomplete$0.0010/req
-
GET /v1/search/places$0.0010/req
-