Google Maps API by APISH avatar

Google Maps API by APISH

Pricing

$4.00 / 1,000 credits

Go to Apify Store
Google Maps API by APISH

Google Maps API by APISH

Google Maps data as clean JSON via APISH: Google Maps place details, Google Maps directions, Google Maps places near a point and 4 more endpoints. Pay per credit; failed calls are free.

Pricing

$4.00 / 1,000 credits

Rating

0.0

(0)

Developer

APISH

APISH

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Categories

Share

Get public Google Maps data as clean, consistent JSON: google Maps place details, google Maps directions, google Maps places near a point, google Maps place photos, one Google Maps place, google Maps place reviews and more. 7 endpoints, one response shape, numbers parsed, absolute URLs.

How to use

  1. Pick an Endpoint. Each option shows what it returns and its price in credits.
  2. Enter its Parameters as JSON, for example {"origin":"40.7580,-73.9855","destination":"JFK Airport"}. All parameters are listed below.
  3. Run. Each call becomes one row in the dataset. Use Batch to run the same endpoint for many inputs and Pages per input to follow pagination.

Pricing

Pay per event: you pay per APISH credit the call used. The price of each endpoint is in the table below. Calls that fail on our side (server errors, timeouts, blocks) are free.

Endpoints

EndpointReturnsRequired parametersCredits
/google-maps/v1/detailsGoogle Maps place details—1
/google-maps/v1/directionsGoogle Maps directionsorigin, destination1
/google-maps/v1/nearbyGoogle Maps places near a pointlat, lng1
/google-maps/v1/photosGoogle Maps place photos—1
/google-maps/v1/placeOne Google Maps place—1
/google-maps/v1/reviewsGoogle Maps place reviews—1
/google-maps/v1/searchGoogle Maps place searchq1

Output

Each dataset row has endpoint, params, status, credits_used and the endpoint's data. Add "raw": 1 to the parameters to also get the site's original record, or "fields": "a,b.c" to return only the fields you need.

Endpoint details

Google Maps place details

Endpoint /google-maps/v1/details · 1 credit per successful call.

Everything the place panel shows: contact details, address parts, plus code, opening hours and open status, descriptions, rating with its 1-5 star histogram, review topics, the About tab (accessibility, amenities, payments, parking…), popular times when Google has them, owner, links (menu, order, reservations), labels, a photo sample and the first reviews. Identify the place by feature_id, cid, a Maps url, or place_id with q. Every response includes credits_used: the credits this call cost.

Parameters:

  • feature_id: The place's Google data id (0x…:0x…), from search results (feature_id) or a Maps URL (!1s0x…).
  • cid: The place's CID (the number in ?cid= Maps links), instead of feature_id.
  • url: A Google Maps place URL, instead of feature_id.
  • place_id: Google place id (ChI…), alone (resolved through its Maps page) or with q (the place name and city).
  • q: With place_id, or alone: the place name and city to look up.
  • hl: Language (default en).
  • gl: Country (default us).

Google Maps directions

Endpoint /google-maps/v1/directions · 1 credit per successful call.

Routes between two points for a travel mode: distance, duration (typical and in current traffic), warnings (tolls, ferries) and turn-by-turn steps. Points are lat,lng or a place name (resolved with a Maps search). Every response includes credits_used: the credits this call cost.

Parameters:

  • origin (required): Start: lat,lng or a place name.
  • destination (required): End: lat,lng or a place name.
  • mode: driving (default), walking, cycling or transit.
  • hl: Language (default en).
  • gl: Country (default us).

Example parameters: {"origin":"40.7580,-73.9855","destination":"JFK Airport"}

Google Maps places near a point

Endpoint /google-maps/v1/nearby · 1 credit per successful call.

Places around lat,lng (or location=lat,lng), optionally of a kind (q, e.g. restaurants, pharmacies). zoom sets the search radius (15 by default: a neighbourhood; 13 a city district; 17 a few blocks). Each place carries distance_m from the point. Every response includes credits_used: the credits this call cost.

Parameters:

  • lat (required): Latitude of the point.
  • lng (required): Longitude of the point.
  • q: What to look for (default: any place).
  • zoom: Map zoom 3-21 (default 15); lower is a wider area.
  • page: Page number (20 places per page).
  • limit: Places per page (max 20).
  • hl: Language (default en).
  • gl: Country (default us).

Example parameters: {"lat":"30.2672","lng":"-97.7431"}

Google Maps place photos

Endpoint /google-maps/v1/photos · 1 credit per successful call.

The photos the place panel carries: the cover photos and every photo attached to its reviews, as full-size URLs (=s0; replace with =w800-h600 for a thumbnail) with dimensions and captions, plus the place's total photo count. Identify the place as for details. Every response includes credits_used: the credits this call cost.

Parameters:

  • feature_id: The place's Google data id (0x…:0x…), from search results (feature_id) or a Maps URL (!1s0x…).
  • cid: The place's CID (the number in ?cid= Maps links), instead of feature_id.
  • url: A Google Maps place URL, instead of feature_id.
  • place_id: Google place id (ChI…), alone (resolved through its Maps page) or with q (the place name and city).
  • q: With place_id, or alone: the place name and city to look up.
  • hl: Language (default en).
  • gl: Country (default us).
  • limit: Photos to return (max 200).

One Google Maps place

Endpoint /google-maps/v1/place · 1 credit per successful call.

Pass q or a Google Maps place URL. place_id selects a match inside that search.

Parameters:

  • q
  • url: A Google Maps place URL (instead of q).
  • place_id: Google place id to pick among the matches.

Google Maps place reviews

Endpoint /google-maps/v1/reviews · 1 credit per successful call.

The reviews the place panel carries (typically 5-10, the ones Google ranks most relevant; sort=newest\|highest\|lowest gives the first five for that order instead) with rating, text, date, author profile, photos, the guided answers (parking, seating, vegetarian options…) and the owner reply, plus the 1-5 star histogram and the review topics with mention counts. Identify the place as for details. Every response includes credits_used: the credits this call cost.

Parameters:

  • feature_id: The place's Google data id (0x…:0x…), from search results (feature_id) or a Maps URL (!1s0x…).
  • cid: The place's CID (the number in ?cid= Maps links), instead of feature_id.
  • url: A Google Maps place URL, instead of feature_id.
  • place_id: Google place id (ChI…), alone (resolved through its Maps page) or with q (the place name and city).
  • q: With place_id, or alone: the place name and city to look up.
  • hl: Language (default en).
  • gl: Country (default us).
  • limit: Reviews to return (max 50).
  • sort — one of relevant, newest, highest, lowest: relevant, newest, highest or lowest: the five reviews Google shows first for that order (from the Reviews tab's own call). Without sort: the reviews the place panel embeds (most relevant).

Endpoint /google-maps/v1/search · 1 credit per successful call.

Each page is the next 20 Google results. next_page is null on the last page.

Parameters:

  • q (required)
  • lat: Centre the search on this point (with lng), like the map viewport.
  • lng: Longitude of the centre point.
  • zoom: With lat/lng, the map zoom 3-21 (default 14); lower is a wider area.
  • page: Page number. Pass next_page from the previous response; next_page is null on the last page.
  • limit: Places per page (max 20).

Example parameters: {"q":"coffee near times square"}

Support

Questions, bugs or a missing field? Open an issue in this Actor's Issues tab and we will reply there.

Public data only: nothing behind a login. You are responsible for how you use the data you collect.