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.
Includes 100 free calls per month
After the free quota, standard per-request pricing applies via x402 (USDC on Base).
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
Where the route starts: an address, a place name or coordinates as "latitude,longitude".
Where the route ends: an address, a place name or coordinates as "latitude,longitude".
Optional travel mode (defaults to "driving"). Use the /general/travel-modes endpoint to list valid values.
Optional language of the instructions (defaults to "en").
Optional two-letter country code the route is asked from, which sets the units of the distances (defaults to "us").
Response schema
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"
}
}
}
}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 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.
Optional language of the texts (defaults to "en").
Optional two-letter country code the place is viewed from (defaults to "us").
Response schema
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 id, feature id or CID of the place. Use the /search/places endpoint to find them.
Optional language of the texts (defaults to "en").
Optional two-letter country code the place is viewed from (defaults to "us").
Response schema
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 id, feature id or CID of the place. Use the /search/places endpoint to find them.
Optional language of the texts (defaults to "en").
Optional two-letter country code the place is viewed from (defaults to "us").
Response schema
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
The text typed so far (e.g. "empire sta").
Optional latitude of the point to suggest places around, in decimal degrees (needs "longitude").
Optional longitude of the point to suggest places around, in decimal degrees (needs "latitude").
Optional zoom level of the map around the point, from 3 to 21 (defaults to 13).
Optional language of the suggestions (defaults to "en").
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"
]
}
}
}
}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
What to search for: a business, a category or an address (e.g. "pizza in new york", "coffee", "Eiffel Tower").
Optional latitude of the point to search around, in decimal degrees (needs "longitude").
Optional longitude of the point to search around, in decimal degrees (needs "latitude").
Optional zoom level of the map around the point, from 3 (a continent) to 21 (a building) (defaults to 13, a city district).
Optional page number, 1 to 10 (defaults to 1).
Optional language of the results (defaults to "en").
Optional two-letter country code the search is made from, which ranks the results (defaults to "us").
Response schema
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)Estimate your monthly cost for Google Maps.