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 business search, place details, every review, photos, contacts and routes as JSON, without a Google Cloud billing account, via APISH. 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

11 days ago

Last modified

Categories

Features

Limited permissions

Share

Get public Google Maps data as clean, consistent JSON: google Maps autocomplete, google Maps bulk business search, business emails and social profiles, google Maps place details, google Maps directions, google Maps distance matrix and more. 17 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 {"lat":40.758,"lng":-73.9855,"q":"restaurants"}. 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/autocompleteGoogle Maps autocompleteq1
/google-maps/v1/bulk-searchGoogle Maps bulk business searchqueries1
/google-maps/v1/contactsBusiness emails and social profiles—1
/google-maps/v1/detailsGoogle Maps place details—1
/google-maps/v1/directionsGoogle Maps directionsorigin, destination1
/google-maps/v1/distance-matrixGoogle Maps distance matrixorigins, destinations1
/google-maps/v1/listGoogle Maps public listid1
/google-maps/v1/nearbyGoogle Maps places near a pointlat, lng1
/google-maps/v1/photoGoogle Maps photo detailsbusiness_id, photo_id1
/google-maps/v1/photosGoogle Maps place photos—1
/google-maps/v1/placeOne Google Maps place—1
/google-maps/v1/postsGoogle Maps business postsbusiness_id1
/google-maps/v1/reverse-geocodeGoogle Maps reverse geocodinglat, lng1
/google-maps/v1/reviewGoogle Maps review detailsbusiness_id1
/google-maps/v1/reviewsGoogle Maps place reviews—1
/google-maps/v1/searchGoogle Maps place searchq1
/google-maps/v1/street-viewGoogle Street View panorama—1

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 autocomplete

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

Google Maps search suggestions for what a user has typed: places (name, address, coordinates, place_id, feature_id, cid, kgmid) and query suggestions, in the order the search box shows them. lat/lng (or location=lat,lng) and zoom bias the suggestions to an area like the map viewport.

Parameters:

  • q (required): What the user typed.
  • lat: Latitude to bias around.
  • lng: Longitude to bias around.
  • zoom: Map zoom 3-21 (default 14).
  • hl: Language, e.g. en.
  • gl: Country, e.g. us.
  • query: Same as q.
  • coordinates: lat,lng to bias the suggestions, same as location.
  • language: Language (same as hl, default en).
  • region: Country (same as gl, default us).

Example parameters: {"q":"zilker"}

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

Several business searches in one call: up to 20 queries separated by \|, each answered like /google-maps/v1/search (up to 20 businesses per query) under results. A query that fails carries error and no places. Billed per query.

Parameters:

  • queries (required): The searches, separated by \| (up to 20).
  • limit: Businesses per query (default 20, max 20).
  • lat: Centre every search on this point (with lng).
  • lng: Longitude of the centre point.
  • zoom: With lat/lng, the map zoom 3-21 (default 14).
  • subtypes: Keep only businesses with one of these categories (comma-separated, as in subtypes), e.g. Plumber,Drainage service.
  • verified: true: only businesses claimed by their owner; false: only unclaimed ones.
  • business_status: Keep only these statuses (comma-separated): OPEN, CLOSED_TEMPORARILY, CLOSED.
  • extract_emails_and_contacts: true: also read the business website (home page and its contact page) for emails_and_contacts: emails, phone numbers and Facebook, Instagram, LinkedIn, X, YouTube, TikTok, GitHub, Yelp, Pinterest, Snapchat, Threads and WhatsApp links. Costs extra credits per business.
  • fields: Keep only these fields of each business, review or photo (comma-separated), e.g. name,phone_number,rating.
  • language: Language (same as hl, default en).
  • region: Country (same as gl, default us).
  • hl: Language (default en).
  • gl: Country (default us).

Example parameters: {"queries":"plumbers in Brooklyn NY|dentists in Austin TX"}

Business emails and social profiles

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

Emails, phone numbers and social profiles (Facebook, Instagram, LinkedIn, X, YouTube, TikTok, GitHub, Yelp, Pinterest, Snapchat, Threads, WhatsApp) found on a business website: its home page and the contact or about page it links to. Pass up to 20 business_id values (the website listed on Google is read) or a website URL. pages_checked lists the pages read; an empty list means the website did not answer. Billed per business.

Parameters:

  • business_id: The business: its business_id (0x…:0x…), place_id (ChI…) or cid, up to 20, comma-separated.
  • website: A website URL to read instead of a business.
  • language: Language (default en).
  • region: Country the website is read from (default us).

Example parameters: {"business_id":"0x89c2598f7ff4aa09:0x313547e757cb8cea"}

Google Maps place details

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

Everything the place panel shows, for up to 20 businesses per call (business_id, comma-separated: business ids, place ids or CIDs): contact details, address parts, plus code, opening hours and open status, descriptions, rating with its 1-5 star histogram (reviews_per_rating), review topics, the About tab (accessibility, amenities, payments, parking…), popular times when Google has them, owner, verified status, business status, links (menu, order, reservations, booking), departments, labels, a photo sample and the first reviews. extract_share_link=true adds the short maps.app.goo.gl link; extract_emails_and_contacts=true adds the emails and social profiles found on the business website. Results are in businesses (and the first in place); ids that were not found are listed in errors. The older single-place ids (feature_id, cid, a Maps url, place_id with q) still work.

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).
  • business_id: The business: its business_id (0x…:0x…), place_id (ChI…) or cid, up to 20, comma-separated (billed per business). Instead of feature_id.
  • extract_emails_and_contacts: true: also read the business website (home page and its contact page) for emails_and_contacts: emails, phone numbers and Facebook, Instagram, LinkedIn, X, YouTube, TikTok, GitHub, Yelp, Pinterest, Snapchat, Threads and WhatsApp links. Costs extra credits per business.
  • extract_share_link: true: add share_link, the place's short maps.app.goo.gl link.
  • fields: Keep only these fields of each business, review or photo (comma-separated), e.g. name,phone_number,rating.
  • language: Language (same as hl, default en).
  • region: Country (same as gl, default us).

Example parameters: {"feature_id":"0x8644ca6bc309e81b:0x1f1a903bbb66839","business_id":"0x89c2598f7ff4aa09:0x313547e757cb8cea"}

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).

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 distance matrix

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

Travel distance and time between every origin and every destination (up to 10 pairs), from Google Maps directions: for each pair the fastest route's distance, duration, typical duration and route summary, with a status (ok, no_route, not_found). Also returns each origin and destination as Google resolved it (name, address, coordinates, ids).

Parameters:

  • origins (required): Origins separated by |: coordinates (lat,lng) or place names and addresses.
  • destinations (required): Destinations separated by |, same forms as origins.
  • mode — one of driving, walking, cycling, transit: Travel mode: driving (default), walking, cycling or transit.
  • hl: Language of the answer (default en).
  • gl: Country code for the region (default us).

Example parameters: {"origins":"Times Square, New York|40.6892,-74.0445","destinations":"JFK Airport|Brooklyn Bridge"}

Google Maps public list

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

A public saved list on Google Maps: title, description, owner, number of places, created and updated time, and each place with its name, the owner's note, coordinates, feature id and cid, when it was added, and a Google Maps link. Up to 500 places per call. Returns 404 for a list that does not exist or is not public.

Parameters:

  • id (required): The list id (the part after /placelists/list/ or !2s in a list link), or a shared list link (maps.app.goo.gl links work).
  • limit: Places to return (default and max 500).
  • hl: Language (default en).

Example parameters: {"id":"a73Lcr495M9jjjl-_wrTXA"}

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 area (15 by default: a neighbourhood; 13 a city district; 17 a few blocks); radius (metres) keeps only places within that distance, nearest first. Each place carries distance_m from the point and the full business record. Each business carries business_id (= google_id, the 0x…:0x… feature id), place_id, google_mid, cid, name, phone_number (E.164), full_address with street_address, district, city, zipcode, state, country, latitude/longitude, timezone, rating, review_count, opening_status, working_hours, website, verified (claimed by its owner), owner_id/owner_name/owner_link, business_status (OPEN, CLOSED_TEMPORARILY, CLOSED), type and subtypes (categories), place_link, reviews_link, booking_link, reservations_link, order_link, menu_link, action_links, photos_sample, photo_count, summary, about_details, price_level, departments, next to the original fields. Filter by min_rating (places rated at least this) and open_now (places open at the time of the call); like the other filters, they apply to the places fetched for limit.

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 to return (default 20, max 200; each 20 is one more page).
  • hl: Language (default en).
  • gl: Country (default us).
  • radius: Only places within this many metres (10-100000), nearest first; sets the zoom to fit.
  • subtypes: Keep only businesses with one of these categories (comma-separated, as in subtypes), e.g. Plumber,Drainage service.
  • verified: true: only businesses claimed by their owner; false: only unclaimed ones.
  • business_status: Keep only these statuses (comma-separated): OPEN, CLOSED_TEMPORARILY, CLOSED.
  • extract_emails_and_contacts: true: also read the business website (home page and its contact page) for emails_and_contacts: emails, phone numbers and Facebook, Instagram, LinkedIn, X, YouTube, TikTok, GitHub, Yelp, Pinterest, Snapchat, Threads and WhatsApp links. Costs extra credits per business.
  • fields: Keep only these fields of each business, review or photo (comma-separated), e.g. name,phone_number,rating.
  • language: Language (same as hl, default en).
  • region: Country (same as gl, default us).
  • min_rating: Only places rated at least this (1-5, e.g. 4.5).
  • open_now — one of true, false: true: only places open now.

Example parameters: {"lat":40.758,"lng":-73.9855,"q":"restaurants"}

Google Maps photo details

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

Details of up to 20 photos of a place (photo_id, comma-separated, from /photos or photos_sample): who uploaded it (owner_name, owner_id, owner_link, owner_photo_url), whether the business owner did, date, size, location, caption and full-size URL. Unknown ids are listed in not_found. Billed per photo.

Parameters:

  • business_id (required): The business: business_id (0x…:0x…), place_id or cid.
  • photo_id (required): Photo ids, comma-separated (up to 20).
  • fields: Keep only these fields of each business, review or photo (comma-separated), e.g. name,phone_number,rating.
  • language: Language (same as hl, default en).
  • region: Country (same as gl, default us).

Example parameters: {"business_id":"0x89c2598f7ff4aa09:0x313547e757cb8cea","photo_id":"CIHM0ogKEICAgIDCx92MtgE"}

Google Maps place photos

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

The place's whole photo and video gallery, paged like the Maps gallery: each item has photo_id, photo_url, photo_url_large (=s0), size, location, date (photo_datetime_utc), type (photo or video), video_urls for videos and whether the owner uploaded it. Up to 200 per call (limit); pass next_cursor back as cursor (null on the last page). is_video=true keeps only videos. The first page also keeps the older photos list (cover photos and review photos). Identify the place by business_id or as for details.

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).
  • business_id: The business: its business_id (0x…:0x…), place_id (ChI…) or cid, instead of feature_id.
  • cursor: Value of next_cursor from the previous page.
  • is_video: true: only videos.
  • fields: Keep only these fields of each business, review or photo (comma-separated), e.g. name,phone_number,rating.
  • language: Language (same as hl, default en).
  • region: Country (same as gl, default us).

Example parameters: {"feature_id":"0x8644ca6bc309e81b:0x1f1a903bbb66839","business_id":"0x89c2598f7ff4aa09:0x313547e757cb8cea"}

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.

Example parameters: {"q":"Eiffel Tower"}

Google Maps business posts

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

The business's "From the owner" updates, newest first: post_id, text, created_at (and expires_at), date_label, images and media, call_to_action (type BOOK / ORDER / LEARN_MORE …, label, url), event_or_offer when the post carries one, permalink and the author (the business). Google lists a business's latest 10 updates on its page, so that is what is returned; next_cursor is always null. Businesses that do not post return count 0.

Parameters:

  • business_id (required): The business: business_id (0x…:0x…), place_id or cid.
  • language: Language (default en).
  • region: Country (default us).

Example parameters: {"business_id":"0x89c258f07d5da561:0x61f6aa300ba8339d"}

Google Maps reverse geocoding

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

What is at a point (Maps' "What's here"): the address or place at lat,lng, with its business_id, place_id, address parts (street_address, city, zipcode, state, country…), full_address, coordinates, distance_m from the point, the plus code and, for a business, its business fields. count is 0 where Google has no address (open water).

Parameters:

  • lat (required): Latitude.
  • lng (required): Longitude.
  • coordinates: lat,lng in one value, instead of lat and lng.
  • zoom: Map zoom 3-21 the point is picked at (default 14; higher picks a closer address).
  • language: Language (same as hl, default en).
  • region: Country (same as gl, default us).

Example parameters: {"lat":40.722272,"lng":-73.987373}

Google Maps review details

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

One review of a place, found by its author (review_author_id, the number in the author's /maps/contrib/ link and author_id in reviews) or its review_id: rating, full text, date, photos, guided answers, owner reply and the author's profile. The place's most recent and most relevant few hundred reviews are searched; 404 when it is not among them.

Parameters:

  • business_id (required): The business: business_id (0x…:0x…), place_id or cid.
  • review_author_id: The author's id (author_id).
  • review_id: The review's id (review_id), instead of the author.
  • language: Language (same as hl, default en).
  • region: Country (same as gl, default us).

Example parameters: {"business_id":"0x89e842aadd2011e9:0x989987c8c0ed68cb","review_author_id":"101300625704588791433"}

Google Maps place reviews

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

All of a place's Google reviews, paginated: rating, text, date, author profile, photos, the owner's reply and the guided answers (parking, seating, vegetarian options…), in Google's four sort orders. Each review also carries the other API's names (review_id, review_text, review_rating, review_datetime_utc, author_id, author_name, author_link, author_photo_url, owner_response_text…). Up to 100 reviews per call (limit); pass next_cursor back as cursor for the next page (next_cursor is null on the last page). query keeps the reviews that mention every word (a few hundred reviews are searched per call; pass next_cursor to search further). The first page also carries the 1-5 star histogram and the review topics with mention counts. Filter by star rating with rating (e.g. 1,2 for the negative reviews); rating and query scan up to several pages of reviews to fill limit.

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 (default 10, max 100).
  • cursor: Value of next_cursor from the previous page (same place and sort).
  • sort — one of relevant, newest, highest, lowest: relevant (default), newest, highest or lowest.
  • business_id: The business: its business_id (0x…:0x…), place_id (ChI…) or cid, instead of feature_id.
  • sort_by — one of most_relevant, newest, highest_ranking, lowest_ranking: Same as sort, with these names: most_relevant, newest, highest_ranking, lowest_ranking.
  • query: Only reviews that mention every word of this text, e.g. pastrami.
  • fields: Keep only these fields of each business, review or photo (comma-separated), e.g. name,phone_number,rating.
  • language: Language (same as hl, default en).
  • region: Country (same as gl, default us).
  • rating: Only reviews with these star ratings, comma separated (e.g. 1,2 or 5).

Example parameters: {"feature_id":"0x8644ca6bc309e81b:0x1f1a903bbb66839","limit":20,"sort":"newest","business_id":"0x89c2598f7ff4aa09:0x313547e757cb8cea"}

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

Google Maps business search, as the Maps list shows it, with every field of the place card. Each page is the next 20 results; limit up to 200 loads several pages in one call (billed per 20). Centre the search with lat/lng and zoom, or search an area: a bounding box (bbox or ne+sw) or a circle (radius with lat/lng). Filters: subtypes, verified, business_status. Each business carries business_id (= google_id, the 0x…:0x… feature id), place_id, google_mid, cid, name, phone_number (E.164), full_address with street_address, district, city, zipcode, state, country, latitude/longitude, timezone, rating, review_count, opening_status, working_hours, website, verified (claimed by its owner), owner_id/owner_name/owner_link, business_status (OPEN, CLOSED_TEMPORARILY, CLOSED), type and subtypes (categories), place_link, reviews_link, booking_link, reservations_link, order_link, menu_link, action_links, photos_sample, photo_count, summary, about_details, price_level, departments, next to the original fields. Pass next_page back as page; next_page is null on the last page (Maps lists end after about 10 pages). Filter by min_rating (places rated at least this) and open_now (places open at the time of the call); like the other filters, they apply to the places fetched for limit.

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 to return (default 20, max 200; each 20 is one more page).
  • bbox: Search inside a bounding box: south,west,north,east (degrees). Results outside the box are dropped.
  • ne: With sw, the box's north-east corner lat,lng (instead of bbox).
  • sw: With ne, the box's south-west corner lat,lng.
  • radius: With lat/lng: only places within this many metres (10-100000); sets the zoom to fit.
  • query: Same as q.
  • subtypes: Keep only businesses with one of these categories (comma-separated, as in subtypes), e.g. Plumber,Drainage service.
  • verified: true: only businesses claimed by their owner; false: only unclaimed ones.
  • business_status: Keep only these statuses (comma-separated): OPEN, CLOSED_TEMPORARILY, CLOSED.
  • extract_emails_and_contacts: true: also read the business website (home page and its contact page) for emails_and_contacts: emails, phone numbers and Facebook, Instagram, LinkedIn, X, YouTube, TikTok, GitHub, Yelp, Pinterest, Snapchat, Threads and WhatsApp links. Costs extra credits per business.
  • fields: Keep only these fields of each business, review or photo (comma-separated), e.g. name,phone_number,rating.
  • language: Language (same as hl, default en).
  • region: Country (same as gl, default us).
  • min_rating: Only places rated at least this (1-5, e.g. 4.5).
  • open_now — one of true, false: true: only places open now.

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

Google Street View panorama

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

The Street View panorama nearest a point: panorama id, its exact position, camera heading, pitch and roll, capture month, street address, full image size, copyright or uploader, the neighbouring panoramas you can move to (with headings), older captures of the same spot (time travel), a thumbnail image link and a Google Maps link that opens it. Returns 404 when there is no imagery within the radius.

Parameters:

  • lat: Latitude of the point (or use location).
  • lng: Longitude of the point.
  • location: The point as lat,lng, instead of lat and lng.
  • radius: Search radius in metres (default 50, up to 10000).
  • source — one of google, any: google (default) for Google's own imagery, any to also include photo spheres people uploaded.
  • hl: Language of street names (default en).

Example parameters: {"lat":40.758,"lng":-73.9855}

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.