---
title: "Google Local API: JSON data, 1 endpoint, 1 credit per call"
description: "Google Local API for Google local search results on a query, with an optional location, as JSON. One endpoint, 1 credit per successful call."
url: https://perceptlayer.com/apis/google-local
---

[APIs](https://perceptlayer.com/apis) / [Search engines](https://perceptlayer.com/verticals/search) / Google Local

1 credit per call 1 endpoint 11 datapoints 

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

[Get a free API key](https://perceptlayer.com/signup) Run it below

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 OK JSON X-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.

| # | position integer | title string | rating number | reviews integer | price string | type string | address string | place\_id string | provider\_id string | links object | local\_map object |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 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} |

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

11 datapoints

### Identity

-   title string
-   type string
-   place\_id string
-   provider\_id string

### Contact

-   links object

### Location

-   address string

### Reputation

-   rating number
-   reviews integer

### Price

-   price string

### Other

-   position integer
-   local\_map object

Playground

## Run this API

cURL shell 

```
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`](https://perceptlayer.com/apis/google-local/search) | `query` `hl` `gl` +3 optional | `position` `title` `rating` `reviews` `price` `type` +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 engines JSON REST MCP

### More search engines APIs

[Apple Maps](https://perceptlayer.com/apis/apple-maps) [Baidu](https://perceptlayer.com/apis/baidu) [Bing](https://perceptlayer.com/apis/bing) [Brave Search](https://perceptlayer.com/apis/brave) [DuckDuckGo](https://perceptlayer.com/apis/duckduckgo) [Google Events](https://perceptlayer.com/apis/google-events) [Google Finance](https://perceptlayer.com/apis/google-finance) [Google Forums](https://perceptlayer.com/apis/google-forums) [Google Images](https://perceptlayer.com/apis/google-images) [Google Lens](https://perceptlayer.com/apis/google-lens) [Google Local Services](https://perceptlayer.com/apis/google-local-services) [Google Maps](https://perceptlayer.com/apis/google-maps)

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.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
