APIs / Search engines / Google Local

1 credit per call1 endpoint11 datapointsChecked working 6 Dec 2026

Google Local API

Google Local API for Google local search results on a query, with an optional location, as JSON. One endpoint, 1 credit per successful call.

Google Local
GET/v1/google-local/search?query=coffee&hl=en&gl=us
{
  "query": "coffee",
  "page": 1,
  "page_size": 20,
  "has_more": true,
  "results": [
    {
      "position": 1,
      "title": "Lily's Roasters",
      "rating": 4.9,
      "reviews": 251,
      "price": "$1–10",
      "type": "Coffee shop",
      "address": "109 W 86th St, New York, NY 10024",
      "place_id": "/g/11z7p9x54h",
      "provider_id": "/g/11z7p9x54h",
      "links": {},
      "local_map": {
        "link": "https://maps.google.com/maps?sca_esv=6b8994e890be440b&hl=en&gl=us&output=search&q=coffee&source=lnms&fbs=ACAhTvwdifjn2dKXmjtOfBxVFl_koHVe5RLSnJlTH2QYaq_YVdbYfq_upmJPcFgYr-v9gSSZXJOKbPCa_DEMSG7_3eamoHnEL3fuaTAJiGvE9er0CCVrd_jxa_eG3UoeXqggxAm…"
      }
    },
    {
      "position": 2,
      "title": "Sote Coffee Roasters",
      "rating": 4.8,
      "reviews": 500,
      "price": "$1–10",
      "type": "Coffee shop",
      "website": "https://sotecoffeeroasters.com/",
      "address": "329 Amsterdam Ave, New York, NY 10023",
      "phone": "(646) 318-9152",
      "place_id": "/g/11lv975557",
      "provider_id": "/g/11lv975557",
      "links": {
        "website": "https://sotecoffeeroasters.com/"
      },
      "local_map": {
        "link": "https://maps.google.com/maps?sca_esv=6b8994e890be440b&hl=en&gl=us&output=search&q=coffee&source=lnms&fbs=ACAhTvwdifjn2dKXmjtOfBxVFl_koHVe5RLSnJlTH2QYaq_YVdbYfq_upmJPcFgYr-v9gSSZXJOKbPCa_DEMSG7_3eamoHnEL3fuaTAJiGvE9er0CCVrd_jxa_eG3UoeXqggxAm…"
      },
      "service_options": [
        "Dine-in",
        "No delivery"
      ]
    },
    {
      "position": 3,
      "title": "Royal Coffee",
      "rating": 4.9,
      "reviews": 281,
      "price": "$10–20",
      "type": "Coffee shop",
      "website": "https://royalcoffeegroup.com/",
      "address": "2263 Broadway, New York, NY 10024",
      "phone": "(646) 905-8006",
      "place_id": "/g/11vxjsmydx",
      "provider_id": "/g/11vxjsmydx",
      "links": {
        "website": "https://royalcoffeegroup.com/"
      },
      "local_map": {
        "link": "https://maps.google.com/maps?sca_esv=6b8994e890be440b&hl=en&gl=us&output=search&q=coffee&source=lnms&fbs=ACAhTvwdifjn2dKXmjtOfBxVFl_koHVe5RLSnJlTH2QYaq_YVdbYfq_upmJPcFgYr-v9gSSZXJOKbPCa_DEMSG7_3eamoHnEL3fuaTAJiGvE9er0CCVrd_jxa_eG3UoeXqggxAm…"
      }
    }
  ],
  "cached": false
}
200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.

Sample data

What one call returns

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

#positionintegertitlestringratingnumberreviewsintegerpricestringtypestringaddressstringplace_idstringprovider_idstringlinksobjectlocal_mapobject
11Lily's Roasters4.9251$1–10Coffee shop109 W 86th St, New York, NY 10024/g/11z7p9x54h/g/11z7p9x54h{0 fields}{1 fields}
22Sote Coffee Roasters4.8500$1–10Coffee shop329 Amsterdam Ave, New York, NY 10023/g/11lv975557/g/11lv975557{1 fields}{1 fields}
33Royal Coffee4.9281$10–20Coffee shop2263 Broadway, New York, NY 10024/g/11vxjsmydx/g/11vxjsmydx{1 fields}{1 fields}

Recorded 12 Nov 2026 · 3 items shown · 11 datapoints per itemGET /v1/google-local/search?query=coffee&hl=en&gl=us

11 datapoints

Identity

  • titlestring
  • typestring
  • place_idstring
  • provider_idstring

Contact

  • linksobject

Location

  • addressstring

Reputation

  • ratingnumber
  • reviewsinteger

Price

  • pricestring

Other

  • positioninteger
  • local_mapobject

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/google-local/search?query=coffee&hl=en&gl=us" \
  -H "X-API-Key: $API_KEY"

Google Local · 1 endpoint

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-local/search
queryhlgl+3 optional
positiontitleratingreviewspricetype+8 more
1 credit

Overview

About the Google Local API

What you can get

The Google Local API returns Google local search results as JSON through 1 endpoint.

  • Search: search takes a query (up to 2,000 characters), hl and gl, all three required, with location (up to 500 characters), google_domain and start.

hl and gl each take up to two characters. One endpoint covers the whole job: you send a search the way you would type it, and get the local results back as JSON with no browser or HTML parsing in between.

How a call works

Run a local search: GET /v1/google-local/search?query=...&hl=...&gl=...&location=... with your key in the X-API-Key header. query, hl and gl are required on every call; location, google_domain and start are optional. Every successful call costs 1 credit; failed calls cost nothing.

Search enginesJSONRESTMCP

More search engines APIs

Use cases

Track what appears in local results for a search term

Use the Google Local API to track what appears in local results for a search term

Compare local results for the same query across `location` values

Use the Google Local API to compare local results for the same query across `location` values

Monitor where a brand or chain shows up for category searches

Use the Google Local API to monitor where a brand or chain shows up for category searches

Give an AI agent a local search step for questions about places

Use the Google Local API to give an AI agent a local search step for questions about places

FAQ

Questions

Do I need a Google Local API key?

No. You call this Google Local API with your Perceptlayer key in the `X-API-Key` header, so there's no Google Cloud project or billing setup.

How much does the Google Local API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

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

Which parameters are required for a Google Local search?

`query`, `hl` and `gl`. `hl` and `gl` each take up to two characters. `location`, `google_domain` and `start` are optional.

Is this the official Google Local API?

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

Should I build a Google Local scraper instead?

You can, but a Google Local scraper is code you maintain: page changes break it, requests get blocked, and Google Local's terms govern how you collect data. The Google Local API gives you 1 endpoint 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 Local API with 100 free credits

No credit card. Failed calls are never billed.