Google Local API
Google Local API provides access to local business results that appear in Google Search. It returns detailed information about local businesses including their position in local results, business name, rating, reviews count, place ID, address, and opening hours. This is distinct from Google Maps API and focuses on the local pack/local finder results.
API Parameters
Search Query
-
- Name
-
q - Required
- Required
- Description
-
Parameter defines the query you want to search for local businesses. Examples include:
- Business type: pizza, coffee shops, dentist
- Business type + location: pizza in Austin, TX
- Specific business: Starbucks near me
Device
-
- Name
-
device - Required
- Optional
- Description
-
The default parameter
desktopdefines the search on a desktop device. Themobileparameter defines the search on a mobile device. Thetabletparameter defines the search on a tablet device.
Geographic Location
-
- Name
-
location - Required
- Optional
- Description
-
Parameter defines the geographic location for the search. For exact targeting or to see all available options, check out the Locations API. If multiple locations match your input, the most popular one will be selected.
-
- Name
-
uule - Required
- Optional
- Description
-
Parameter sets the exact Google-encoded location for the search.
uuleandlocationcannot be used at the same time. SearchApi builds it for you when you use thelocationparameter, but you can provide your own if you want precise control.
Localization
-
- Name
-
google_domain - Required
- Optional
- Description
-
The default parameter
google.comdefines the Google domain of the search. Check the full list of supported Googlegoogle_domaindomains.
-
- Name
-
gl - Required
- Optional
- Description
-
The default parameter
usdefines the country of the search. Check the full list of supported Googleglcountries.
-
- Name
-
hl - Required
- Optional
- Description
-
The default parameter
endefines the interface language of the search. Check the full list of supported Googlehllanguages.
Pagination
-
- Name
-
page - Required
- Optional
- Description
-
Parameter defines the page number of results. Each page returns up to 20 local results.
Engine
-
- Name
-
engine - Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
google_local.
API key
-
- Name
-
api_key - Required
- Required
- Description
-
The
api_keyauthenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).
Zero Data Retention
-
- Name
-
zero_retention - Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
trueto disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Default Layout
https://www.searchapi.org/api/v1/search?engine=google_local&q=coffee+shops
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "google_local",
"q": "coffee shops"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_lLDb6vP7p7aJuP5oA5jqWZw2",
"status": "Success",
"created_at": "2026-01-18T20:19:27Z",
"request_time_taken": 1.02,
"parsing_time_taken": 0.01,
"total_time_taken": 1.03,
"request_url": "https://www.google.com/search?q=coffee+shops&oq=coffee+shops&gl=us&hl=en&udm=1",
"html_url": "https://www.searchapi.io/api/v1/searches/search_lLDb6vP7p7aJuP5oA5jqWZw2.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_lLDb6vP7p7aJuP5oA5jqWZw2"
},
"search_parameters": {
"engine": "google_local",
"q": "coffee shops",
"device": "desktop",
"google_domain": "google.com",
"hl": "en",
"gl": "us"
},
"local_results": [
{
"position": 1,
"title": "Zaman Coffee House",
"ludocid": "7001395958270377049",
"rating": 4.9,
"reviews": 1100.0,
"price": "$10–20",
"extracted_price": {
"min": 10,
"max": 20
},
"comment": "\"Staff is friendly, coffee was amazing, and the environment was amazing!\"",
"extensions": ["4.9(1.1K)", "$10–20", "Coffee shop", "Syracuse, NY"],
"image": "data:image/jpeg;base64,..."
},
...
]
}
Order Layout
https://www.searchapi.org/api/v1/search?engine=google_local&q=Domino%27s+pizza
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "google_local",
"q": "Domino's pizza"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_875nmM02pVWXiOPgwE4z1YxX",
"status": "Success",
"created_at": "2026-01-18T20:20:04Z",
"request_time_taken": 1.34,
"parsing_time_taken": 0.01,
"total_time_taken": 1.35,
"request_url": "https://www.google.com/search?q=Dominos+pizza&oq=Dominos+pizza&gl=us&hl=en&udm=1",
"html_url": "https://www.searchapi.io/api/v1/searches/search_875nmM02pVWXiOPgwE4z1YxX.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_875nmM02pVWXiOPgwE4z1YxX"
},
"search_parameters": {
"engine": "google_local",
"q": "Dominos pizza",
"device": "desktop",
"google_domain": "google.com",
"hl": "en",
"gl": "us"
},
"local_results": [
{
"position": 1,
"title": "Domino's Pizza",
"ludocid": "8678691623268115296",
"comment": "\"Food was hot and fresh, delivered without any issues.\"",
"order": "https://www.google.com/viewer/chooseprovider?mid=/g/1th5cz9h&g2lbs=AIBNGdVxYZcNMS9OHVAS2ngkUtcnDbs0PSv7SX225fGiV3V9qbBilxEs6SUOXPLq-23LU4T-PaTgGbJHGZZ_kqBGklFOc0mmMQ%3D%3D&hl=en-US&gl=us&ssta=1&fo_m=MfohQo559jFvMUOzJVpjPL1YMfZ3bInYwBDuMfaXTPp5KXh-&utm_source=chain-result&gei=eEBtadLBAb2vqtsP8ZeZsQ0&ei=eEBtadLBAb2vqtsP8ZeZsQ0&fo_s=OA,SOE&opi=89978449&ebb=1&foub=mcpp",
"website": "https://www.dominos.com/en/?utm_source=google&utm_medium=loclist&utm_campaign=localmaps_menutest",
"direction": "https://www.google.com/maps/dir//Domino's+Pizza,+23780+A+Loop+494,+Porter,+TX+77365/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x86474d81c49ff57d:0x7870e80cb80de360?sa=X&ved=2ahUKEwjS3d3n9JWSAxW9l2oFHfFLJtYQ48ADegQIIRAA&hl=en&gl=us",
"extensions": [
"23780 A Loop 494",
"(281) 354-1213",
"Open",
"Closes 12 AM"
]
},
...
]
}
Hotels Layout
https://www.searchapi.org/api/v1/search?engine=google_local&q=Hotels+in+Nevada
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "google_local",
"q": "Hotels in Nevada"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_9jGd7bMw38EDubapmJ8v5YAR",
"status": "Success",
"created_at": "2026-01-18T20:20:11Z",
"request_time_taken": 1.87,
"parsing_time_taken": 0.04,
"total_time_taken": 1.91,
"request_url": "https://www.google.com/search?q=Hotels+in+Nevada&oq=Hotels+in+Nevada&gl=us&hl=en&udm=1",
"html_url": "https://www.searchapi.io/api/v1/searches/search_9jGd7bMw38EDubapmJ8v5YAR.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_9jGd7bMw38EDubapmJ8v5YAR"
},
"search_parameters": {
"engine": "google_local",
"q": "Hotels in Nevada",
"device": "desktop",
"google_domain": "google.com",
"hl": "en",
"gl": "us"
},
"local_results": [
{
"position": 1,
"title": "The STRAT Hotel, Casino & Tower",
"link": "https://www.google.com/travel/search?g2lb=4965990,72471280,72560029,72573224,72647020,72686036,72803964,72882230,72958624,73059275,73064764,73107089,73192290&hl=en-US&gl=us&ssta=1&q=Hotels+in+Nevada&ts=CAEaHBIaEhQKBwjqDxABGBYSBwjqDxABGBcYATICEAAqBwoFOgNVU0Q&qs=CAEyE0Nnb0loNURDcnVLanpNOGJFQUU4CkIJER5lPCcDMIeEWkoySKoBRRABKgoiBmhvdGVscygAMh8QASIbBqEAOhA8_aLLmqrEy7OQ2_tG63Zpc--CyTU7MhQQAiIQaG90ZWxzIGluIG5ldmFkYQ&ap=aAG6AQhvdmVydmlldw&ictx=111&ved=1t:196188",
"rating": 4.0,
"reviews": 63000,
"price": "$84",
"extracted_price": 84,
"hotel_class": "3-star hotel",
"extracted_hotel_class": 3,
"amenities": ["Pool", "Hot tub"],
"description": "Casino hotel with sky-high attractions",
"images": ["data:image/jpeg;base64,...", "..."]
},
...
]
}
Mobile Layout
https://www.searchapi.org/api/v1/search?device=mobile&engine=google_local&q=hamburguer
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "google_local",
"q": "hamburguer",
"device": "mobile"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_rWMBG04LgyPXTKxpb6NQzqD7",
"status": "Success",
"created_at": "2026-01-18T20:20:17Z",
"request_time_taken": 1.71,
"parsing_time_taken": 0.09,
"total_time_taken": 1.8,
"request_url": "https://www.google.com/search?q=hamburguer&oq=hamburguer&gl=us&hl=en&udm=1",
"html_url": "https://www.searchapi.io/api/v1/searches/search_rWMBG04LgyPXTKxpb6NQzqD7.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_rWMBG04LgyPXTKxpb6NQzqD7"
},
"search_parameters": {
"engine": "google_local",
"q": "hamburguer",
"device": "mobile",
"google_domain": "google.com",
"hl": "en",
"gl": "us"
},
"local_results": [
{
"position": 1,
"title": "7th Street Burger",
"ludocid": "4204376008827803126",
"mid": "/g/11k57hb_zf",
"rating": 4.5,
"reviews": 1700.0,
"price": "$10–20",
"extracted_price": {
"min": 10,
"max": 20
},
"comment": "Menu highlight: hamburguer",
"website": "https://locations.7thstreetburger.com/locations/ny/new-york/485-7th-ave",
"direction": "https://www.google.com/maps/dir//485+7th+Ave,+New+York,+NY+10018+@40.752536,-73.989276/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x89c259b1def79d41:0x3a58f1b44c5b15f6!11m1!4b1?entry=s&sa=X&ved=2ahUKEwi-gtns9JWSAxVdh68BHfEELqcQlDt6BAgUEAA#Intent;scheme=http;package=com.google.android.apps.maps;S.browser_fallback_url=https://www.google.com/maps/dir//485%2B7th%2BAve,%2BNew%2BYork,%2BNY%2B10018%2B@40.752536,-73.989276/data%3D!4m6!4m5!1m1!4e2!1m2!1m1!1s0x89c259b1def79d41:0x3a58f1b44c5b15f6!11m1!4b1%3Fentry%3Ds&sa%3DX&ved%3D2ahUKEwi-gtns9JWSAxVdh68BHfEELqcQlDt6BAgUEAA;S.intent_description=485+7th+Ave%2C+New+York%2C+NY+10018;end",
"phone": "+18772459364",
"extensions": [
"4.5(1.7K)",
"$10–20",
"Hamburger",
"Open",
"Closes 1 AM",
"485 7th Ave"
],
"images": ["data:image/jpeg;base64,...", "..."]
},
...
]
}