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.
{
"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
}Sample data
What one call returns
A recorded run of search: the fields and shapes you will get, shortened to 3 items.
| # | positioninteger | titlestring | ratingnumber | reviewsinteger | pricestring | typestring | addressstring | place_idstring | provider_idstring | linksobject | local_mapobject |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | Lily's Roasters | 4.9 | 251 | $1–10 | Coffee shop | 109 W 86th St, New York, NY 10024 | /g/11z7p9x54h | /g/11z7p9x54h | {0 fields} | {1 fields} |
| 2 | 2 | Sote Coffee Roasters | 4.8 | 500 | $1–10 | Coffee shop | 329 Amsterdam Ave, New York, NY 10023 | /g/11lv975557 | /g/11lv975557 | {1 fields} | {1 fields} |
| 3 | 3 | Royal Coffee | 4.9 | 281 | $10–20 | Coffee shop | 2263 Broadway, New York, NY 10024 | /g/11vxjsmydx | /g/11vxjsmydx | {1 fields} | {1 fields} |
[
{
"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…"
}
}
]position,title,rating,reviews,price,type,address,place_id,provider_id,links,local_map
1,Lily's Roasters,4.9,251,$1–10,Coffee shop,"109 W 86th St, New York, NY 10024",/g/11z7p9x54h,/g/11z7p9x54h,{},"{""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…""}"
2,Sote Coffee Roasters,4.8,500,$1–10,Coffee shop,"329 Amsterdam Ave, New York, NY 10023",/g/11lv975557,/g/11lv975557,"{""website"":""https://sotecoffeeroasters.com/""}","{""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…""}"
3,Royal Coffee,4.9,281,$10–20,Coffee shop,"2263 Broadway, New York, NY 10024",/g/11vxjsmydx,/g/11vxjsmydx,"{""website"":""https://royalcoffeegroup.com/""}","{""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…""}"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
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.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
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:
searchtakes aquery(up to 2,000 characters),hlandgl, all three required, withlocation(up to 500 characters),google_domainandstart.
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.
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 termCompare local results for the same query across `location` values
Use the Google Local API to compare local results for the same query across `location` valuesMonitor 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 searchesGive 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 placesFAQ
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.