APIs / Search engines / Google Maps

1 credit per call11 endpoints28 datapointsChecked working 6 Dec 2026

Google Maps API

Google Maps API for places, business details, reviews, popular times, photos and directions as JSON. 12 endpoints, from 1 credit per successful call.

Google Maps
GET/v1/google-maps/simple-search?query=restaurants+in+new+york
{
  "items": [
    {
      "name": "Altair Restaurant NYC",
      "review_count": 1225,
      "rating": 4.8,
      "website": "https://www.altairnyc.com/",
      "domain": "altairnyc.com",
      "latitude": 40.7556565,
      "longitude": -73.9936282,
      "business_id": "0x89c2591598891521:0x4ebcde18610e64",
      "subtypes": [
        "New American restaurant",
        "Restaurant"
      ],
      "district": "Manhattan",
      "full_address": "351 W 38th St, New York, NY 10018, United States",
      "timezone": "America/New_York",
      "owner_id": "107444272980109255975",
      "owner_name": "Altair Restaurant NYC (Owner)",
      "owner_link": "https://maps.google.com/maps/contrib/107444272980109255975",
      "order_link": "https://www.google.com/maps/reserve/v/dine/c/x4b2hrHtPNo?source=pa&opi=79508299&hl=en-DK&gei=SL3Yaqu_H4THwPAPp-aPwQE&ahbb=1&sourceurl=https://www.google.com/search?tbm%3Dmap%26hl%3Den%26pb%3D!4m8!1m3!1d5000!2d11.9373824!3d57.67168!2m3!1f0!2…",
      "google_mid": "/g/11l1ncyn3_",
      "phone_numbers": [
        "+1 929-561-6131"
      ],
      "place_id": "ChIJIRWJmBVZwokRZA5hGN68TgA=",
      "photos_sample": [
        {
          "photo_id": "CIABIhBYc3BDxCaQc_uFKXR3OdWZ",
          "photo_url": "https://lh3.googleusercontent.com/grass-cs/AABkmLclIWNWEpHAS_ZfLzHbhgdk-n-vOqv2qRY9cg2EiOVnCBtZi80Si0nxJWS1y-q7erapIjJZ1lJeeR51ptN57lu8jInPLk371gnTlvHosWLJAHxRBUNaa0wp5Sus3H7K-Nm4ESp4yEDtLWrk=w86-h114-k-no",
          "photo_url_large": "https://lh5.googleusercontent.com/p/CIABIhBYc3BDxCaQc_uFKXR3OdWZ?w3024-h3024-k-no",
          "latitude": 40.75565649230674,
          "longitude": -73.99362817600482,
          "type": "photo"
        }
      ],
      "neighborhood": "Manhattan",
      "street_address_alt": "351 W 38th St",
      "street_address_full": "351 W 38th St",
      "city": "New York",
      "zip_code": "10018",
      "state": "New York",
      "country_code": "US",
      "attributes": {
        "accessibility": {
          "Wheelchair-accessible entrance": true,
          "Wheelchair-accessible seating": true,
          "Wheelchair-accessible toilet": true
        }
      }
    },
    {
      "name": "Lulla NYC",
      "review_count": 1571,
      "rating": 4.8,
      "website": "http://www.lullanyc.com/",
      "domain": "lullanyc.com",
      "latitude": 40.7441117,
      "longitude": -73.99299409999999,
      "business_id": "0x89c259bf22ca32bd:0x35d818a560181b20",
      "subtypes": [
        "Italian restaurant",
        "Restaurant"
      ],
      "district": "Manhattan",
      "full_address": "113 W 24th St, New York, NY 10011, United States",
      "timezone": "America/New_York",
      "owner_id": "114181353879818223269",
      "owner_name": "Lulla NYC (Owner)",
      "owner_link": "https://maps.google.com/maps/contrib/114181353879818223269",
      "order_link": "https://www.google.com/maps/reserve/v/dine/c/Jdtwk-1WpiY?source=pa&opi=79508299&hl=en-DK&gei=SL3Yaqu_H4THwPAPp-aPwQE&ahbb=1&sourceurl=https://www.google.com/search?tbm%3Dmap%26hl%3Den%26pb%3D!4m8!1m3!1d5000!2d11.9373824!3d57.67168!2m3!1f0!2…",
      "google_mid": "/g/11ks6mqp8n",
      "phone_numbers": [
        "+1 929-588-8556"
      ],
      "place_id": "ChIJvTLKIr9ZwokRIBsYYKUY2DU=",
      "photos_sample": [
        {
          "photo_id": "CIHM0ogKEICAgIDvycftjQE",
          "photo_url": "https://lh3.googleusercontent.com/grass-cs/AABkmLc0kk7d1qFcNbV0VXBb0neL3nT1j-VleIt2_krC3AKshr8xev_546j5whP6m60MyrSVwsRaQ8Tk1Z6rzorgyCNyn7Kz6OwF4f9Y45KK2sm_7dh9h4PsBRMiTdtwsnqskLopaaJfwA=w86-h107-k-no",
          "photo_url_large": "https://lh5.googleusercontent.com/p/CIHM0ogKEICAgIDvycftjQE?w3024-h3024-k-no",
          "latitude": 40.744111702947535,
          "longitude": -73.99299412410348,
          "type": "photo"
        }
      ],
      "neighborhood": "Manhattan",
      "street_address_alt": "113 W 24th St",
      "street_address_full": "113 W 24th St",
      "city": "New York",
      "zip_code": "10011",
      "state": "New York",
      "country_code": "US",
      "attributes": {
        "accessibility": {
          "Wheelchair-accessible entrance": true,
          "Wheelchair-accessible seating": true,
          "Wheelchair-accessible toilet": true
        }
      }
    },
    {
      "name": "Manhatta",
      "review_count": 4127,
      "rating": 4.7,
      "website": "https://www.manhattarestaurant.com/restaurant-menu/",
      "domain": "manhattarestaurant.com",
      "latitude": 40.707997399999996,
      "longitude": -74.00888259999999,
      "business_id": "0x89c25bc797d635a1:0x60b055910436a0a4",
      "subtypes": [
        "New American restaurant",
        "Fine dining restaurant",
        "Lounge bar"
      ],
      "district": "Manhattan",
      "full_address": "28 Liberty St 60th floor, New York, NY 10005, United States",
      "timezone": "America/New_York",
      "short_description": "High-end New American meals on 60th floor",
      "full_description": "Set on the 60th floor, this ritzy, high-end restaurant features New American cuisine and city views.",
      "owner_id": "100843555729741380380",
      "owner_name": "Manhatta (Owner)",
      "owner_link": "https://maps.google.com/maps/contrib/100843555729741380380",
      "order_link": "https://www.google.com/maps/reserve/v/dine/c/pyjjUZqJ9lQ?source=pa&opi=79508299&hl=en-DK&gei=SL3Yaqu_H4THwPAPp-aPwQE&ahbb=1&sourceurl=https://www.google.com/search?tbm%3Dmap%26hl%3Den%26pb%3D!4m8!1m3!1d5000!2d11.9373824!3d57.67168!2m3!1f0!2…",
      "google_mid": "/g/11gh9qhb9q",
      "phone_numbers": [
        "+1 212-230-5788"
      ],
      "place_id": "ChIJoTXWl8dbwokRpKA2BJFVsGA=",
      "photos_sample": [
        {
          "photo_id": "CIHM0ogKEICAgIC8-5qOlAE",
          "photo_url": "https://lh3.googleusercontent.com/grass-cs/AABkmLc2zafZWAjljFYTzgo3_gXnvE35c6VTSU68XztRX0lD4yTiK8Rky0O4KAro8HQjPM1vMJmebZrji8rOmsLT9meoBNhvBcmhmE-BPd37mCw8CZKvcvjITdXNBu_Q0dxQV_f5UtyunA=w128-h86-k-no",
          "photo_url_large": "https://lh5.googleusercontent.com/p/CIHM0ogKEICAgIC8-5qOlAE?w3024-h3024-k-no",
          "latitude": 40.70799741807325,
          "longitude": -74.00888262951247,
          "type": "photo"
        }
      ],
      "neighborhood": "Manhattan",
      "street_address_alt": "28 Liberty St 60th floor",
      "street_address_full": "28 Liberty St 60th floor",
      "city": "New York",
      "zip_code": "10005",
      "state": "New York",
      "country_code": "US",
      "attributes": {
        "accessibility": {
          "Wheelchair-accessible entrance": true,
          "Wheelchair-accessible seating": true,
          "Wheelchair-accessible toilet": true,
          "Assistive hearing loop": false,
          "Wheelchair-accessible car park": false
        }
      }
    }
  ],
  "pagination": {
    "current_page": 0,
    "total_results": 173,
    "has_more": false
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Sample data

What one call returns

A recorded run of simple-search: the fields and shapes you will get, shortened to 3 items.

#namestringreview_countintegerratingnumberwebsiteurldomainstringlatitudenumberlongitudenumberbusiness_idstringsubtypesstring[]districtstringfull_addressstringtimezonestringowner_idstringowner_namestringowner_linkurlorder_linkurlgoogle_midstringphone_numbersstring[]place_idstringphotos_sampleobject[]neighborhoodstringstreet_address_altstringstreet_address_fullstringcitystringzip_codestringstatestringcountry_codestringattributesobject
1Altair Restaurant NYC12254.8https://www.altairnyc.com/altairnyc.com40.7556565-73.99362820x89c2591598891521:0x4ebcde18610e64[2 items]Manhattan351 W 38th St, New York, NY 10018, United StatesAmerica/New_York107444272980109255975Altair Restaurant NYC (Owner)https://maps.google.com/maps/contrib/107444272980109255975https://www.google.com/maps/reserve/v/dine/c/x4b2hrHtPNo?source=pa&opi=79508299&hl=en-DK&gei=SL3Yaqu_H4THwPAPp-aPwQE&ahbb=1&sourceurl=https://www.google.com/search?tbm%3Dmap%26hl%3Den%26pb%3D!4m8!1m3!1d5000!2d11.9373824!3d57.67168!2m3!1f0!2…/g/11l1ncyn3_[1 item]ChIJIRWJmBVZwokRZA5hGN68TgA=[1 item]Manhattan351 W 38th St351 W 38th StNew York10018New YorkUS{1 fields}
2Lulla NYC15714.8http://www.lullanyc.com/lullanyc.com40.7441117-73.992994099999990x89c259bf22ca32bd:0x35d818a560181b20[2 items]Manhattan113 W 24th St, New York, NY 10011, United StatesAmerica/New_York114181353879818223269Lulla NYC (Owner)https://maps.google.com/maps/contrib/114181353879818223269https://www.google.com/maps/reserve/v/dine/c/Jdtwk-1WpiY?source=pa&opi=79508299&hl=en-DK&gei=SL3Yaqu_H4THwPAPp-aPwQE&ahbb=1&sourceurl=https://www.google.com/search?tbm%3Dmap%26hl%3Den%26pb%3D!4m8!1m3!1d5000!2d11.9373824!3d57.67168!2m3!1f0!2…/g/11ks6mqp8n[1 item]ChIJvTLKIr9ZwokRIBsYYKUY2DU=[1 item]Manhattan113 W 24th St113 W 24th StNew York10011New YorkUS{1 fields}
3Manhatta41274.7https://www.manhattarestaurant.com/restaurant-menu/manhattarestaurant.com40.707997399999996-74.008882599999990x89c25bc797d635a1:0x60b055910436a0a4[3 items]Manhattan28 Liberty St 60th floor, New York, NY 10005, United StatesAmerica/New_York100843555729741380380Manhatta (Owner)https://maps.google.com/maps/contrib/100843555729741380380https://www.google.com/maps/reserve/v/dine/c/pyjjUZqJ9lQ?source=pa&opi=79508299&hl=en-DK&gei=SL3Yaqu_H4THwPAPp-aPwQE&ahbb=1&sourceurl=https://www.google.com/search?tbm%3Dmap%26hl%3Den%26pb%3D!4m8!1m3!1d5000!2d11.9373824!3d57.67168!2m3!1f0!2…/g/11gh9qhb9q[1 item]ChIJoTXWl8dbwokRpKA2BJFVsGA=[1 item]Manhattan28 Liberty St 60th floor28 Liberty St 60th floorNew York10005New YorkUS{1 fields}

Recorded from our API · 3 items shown · 28 datapoints per itemGET /v1/google-maps/simple-search?query=restaurants+in+new+york

28 datapoints

Identity

  • namestring
  • business_idstring
  • subtypesstring[]
  • google_midstring
  • place_idstring

Contact

  • websiteurl
  • domainstring
  • owner_idstring
  • owner_namestring
  • owner_linkurl
  • order_linkurl
  • phone_numbersstring[]

Location

  • latitudenumber
  • longitudenumber
  • districtstring
  • full_addressstring
  • timezonestring
  • neighborhoodstring
  • street_address_altstring
  • street_address_fullstring
  • citystring
  • zip_codestring
  • statestring
  • country_codestring

Reputation

  • review_countinteger
  • ratingnumber
  • photos_sampleobject[]
  • attributesobject

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/google-maps/simple-search?query=restaurants+in+new+york" \
  -H "X-API-Key: $API_KEY"

Google Maps · 11 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/google-maps/advanced-search
queryzoom+8 optional
namereview_countratingwebsitedomainlatitude+25 more
1 credit
GET/v1/google-maps/autocomplete
none+6 optional
search_parameterssuggestionsresponse_time_ms
1 credit
GET/v1/google-maps/business-details
business_id+2 optional
business_idgoogle_idplace_idgoogle_midphone_numbername+36 more
1 credit
GET/v1/google-maps/directions
origindestination+3 optional
search_metadatasearch_parametersplaces_infodirectionsdurationsroutes_count
1 credit
GET/v1/google-maps/photo-meta
data_id+3 optional
data_idphotouserlocation
1 credit
GET/v1/google-maps/photos
business_id+2 optional
photo_idphoto_urlphoto_url_large
1 credit
GET/v1/google-maps/popular-times
none+3 optional
placecurrent_daycurrent_hourlivetypical_visit_durationdays
1 credit
GET/v1/google-maps/posts
data_id+3 optional
placepostspagination
1 credit
GET/v1/google-maps/review
review_idbusiness_id
reviewbusiness_inforetryable
1 credit
GET/v1/google-maps/reviews
business_id+7 optional
review_sourcereview_idratingtimestampauthor_nameauthor_profile_photo+10 more
1–50 credits
GET/v1/google-maps/simple-search
query+6 optional
namereview_countratingwebsitedomainlatitude+24 more
1 credit

Overview

About the Google Maps API

What you can get

The Google Maps API returns place, review and route data as JSON through 12 endpoints.

  • Find places: simple-search for a query such as "restaurants in new york", and advanced-search with a lat, lon and zoom. Both take limit, page and fields. The recorded search returns items with name, rating, review_count, full_address, phone_numbers, website, latitude, longitude and a business_id, plus pagination with has_more.
  • One place: business-details and photos (with page and limit) by business_id; posts by data_id, with next_page_token; photo-meta by data_id, with an optional business_id; popular-times by business_id, place_id or q.
  • Reviews: reviews by business_id, with sort (1 to 4), search, limit, page and pages (how many pages to fetch, up to 50); review for one review_id and business_id; contributor-reviews by contributor_id. The recorded reviews have rating, review_text, timestamp and review_link, and a nextPage value.
  • Directions: directions from an origin to a destination, by mode (driving, walking, bicycling or transit). The recorded route has distance, duration, formatted_duration and trips.
  • Autocomplete: autocomplete for a partial query.

How a call works

Search, then drill in: GET /v1/google-maps/simple-search?query=restaurants in new york returns each place's business_id. Pass it to reviews, business-details or photos. The recorded reviews response also includes a nextPage value. Every call costs 1 credit, except reviews, which costs 1 credit per page of reviews fetched. Failed calls cost nothing.

Search enginesJSONRESTMCP

More search engines APIs

Use cases

Build lists of businesses by category and area, with ratings and contact details

Use the Google Maps API to build lists of businesses by category and area, with ratings and contact details

Monitor new reviews and ratings for your locations or competitors

Use the Google Maps API to monitor new reviews and ratings for your locations or competitors

Compare travel times between addresses by mode

Use the Google Maps API to compare travel times between addresses by mode

Give a local-search agent place and review data as tool calls

Use the Google Maps API to give a local-search agent place and review data as tool calls

FAQ

Questions

How much does the Google Maps API cost?

Every successful call costs one credit, except `reviews`, which costs one credit per page of reviews it fetches, up to 50 pages a call. New accounts get free credits to start, and credit packs bring the price down as you scale.

How do I get the reviews for a place?

Find the place with `simple-search`, take its `business_id` from the result, and call `reviews` with it. Use `sort` and `search` to narrow them down.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Is this the official Google Maps API?

No. Perceptlayer is an independent service and is not affiliated with Google Maps. It returns Google Maps data as JSON with a Perceptlayer key, so there is no Google Maps developer account, app review or partner approval to get first. It only reads data: if Google Maps has an official API and you need to act on your own Google Maps account, such as posting, managing orders or reading private data, use that one.

Should I build a Google Maps scraper instead?

You can, but a Google Maps scraper is code you maintain: page changes break it, requests get blocked, and Google Maps's terms govern how you collect data. The Google Maps API gives you 11 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the Google Maps API with 100 free credits

No credit card. Failed calls are never billed.