Google Local Services API Documentation
The Google Local Services API returns the service providers Google lists in its Local Services ads for a service and a place, such as plumbers in Austin or electricians in London. Each search returns up to 20 businesses, in the order Google shows them, with their rating, review count and star breakdown, years in business, service area, phone number, highlights and opening hours, plus links to each business's Local Services profile, booking and messaging pages. It is distinct from the Google Local API, which returns the local pack of Google Search.
API Parameters
Search Query
-
- Name
-
q - Required
- Required
- Description
-
Parameter defines the service you want to find providers for. Examples include:
- Trade: plumber, electrician, locksmith
- Home service: house cleaning, pest control
- Service + place: plumber austin tx, for a city in the United States when neither
locationnoruuleis set
pizza) returns anerrorsaying no results were found. The query can be up to 800 characters long.
Geographic Location
-
- Name
-
location - Required
- Optional
- Description
-
Parameter defines the place to find service providers in, such as
Austin,Texas,United StatesorLondon,England,United Kingdom. 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.
Give the place withlocation, withuule, or, for a city in the United States, by naming it inq(for exampleplumber austin tx). A US postal code named inqplaces some searches (for exampleplumber 78701) and returns anerrorsaying no results were found for others (for exampleplumber 10001), so give a postal code withlocation(for example10001,New York,United States). A place outside the United States named inqreturns the sameerror, and so does a search with no place inlocation,uuleorq(an emptylocationis ignored).
Google Local Services also lists businesses outside the United States, for example in Canada, the United Kingdom, Germany and France. Sethlto the language it uses there, such ashl=deforBerlin,Berlin,Germany.
-
- Name
-
uule - Required
- Optional
- Description
-
Parameter sets the exact Google-encoded location for the search, up to 512 characters long. SearchApi builds it for you when you use the
locationparameter, but you can provide your own if you want precise control. When both are set,locationis used.
Localization
-
- Name
-
hl - Required
- Optional
- Description
-
The default parameter
endefines the interface language of the search. Check the full list of supported Googlehllanguages. Business types, highlights, hours and the day names inopen_hourscome back in this language.
Google Local Services lists businesses only whenhlis the language it uses in the searched place, for example:enfor the United States, the United Kingdom and English-speaking Canadadefor Germanyfrfor Franceitfor Italy
hl, for exampleenforBerlin,Berlin,Germany, the search returns anerrorsaying no results were found.qcan name the service in English or in that language:plumberandKlempnerboth work withhl=dein Berlin.
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_services.
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
Full Response
Each item in local_ads identifies the business with Google's cid and bid,
plus a pid when Google gives the business one. reviews_histogram counts reviews per star rating, open_hours
lists the hours for each day of the week, and booking_link and message_link are
present when the business takes bookings or messages through Google.
https://www.searchapi.io/api/v1/search?engine=google_local_services&location=Austin%2CTexas%2CUnited+States&q=plumber
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "google_local_services",
"q": "plumber",
"location": "Austin,Texas,United States"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_oFBkuSXgxs8X9aHhKhwqoCrm",
"status": "Success",
"created_at": "2026-10-28T19:41:26Z",
"request_time_taken": 1.39,
"parsing_time_taken": 0.0,
"total_time_taken": 1.4,
"request_url": "https://www.google.com/localservices/prolist?src=1&hl=en&q=plumber&uuld=w+CAIQICIaQXVzdGluLFRleGFzLF...",
"html_url": "https://www.searchapi.io/api/v1/searches/search_oFBkuSXgxs8X9aHhKhwqoCrm.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_oFBkuSXgxs8X9aHhKhwqoCrm"
},
"search_parameters": {
"engine": "google_local_services",
"q": "plumber",
"location": "Austin,Texas,United States",
"location_used": "Austin,Texas,United States",
"hl": "en"
},
"local_ads": [
{
"position": 1,
"title": "Radiant Plumbing, Air Conditioning, & Electrical",
"link": "https://www.google.com/localservices/profile?cs=0&q=Radiant+Plumbing,+Air+Conditioning,+%26+Electric...",
"cid": "6779199783",
"bid": "9140608052",
"rating": 4.8,
"reviews": 18046,
"reviews_histogram": {
"1": 678,
"2": 146,
"3": 112,
"4": 377,
"5": 16733
},
"type": "Plumbers",
"service_area": "Austin",
"years_in_business": 27,
"phone": "+15129671551",
"highlights": [
"24/7 emergency services",
...
],
"open_state": "Open",
"hours": "Open 24 hours",
"open_hours": {
"wednesday": "Open 24 hours",
"thursday": "Open 24 hours",
"friday": "Open 24 hours",
"saturday": "Open 24 hours",
"sunday": "Open 24 hours",
"monday": "Open 24 hours",
"tuesday": "Open 24 hours"
},
"booking_link": "https://www.google.com/localservices/booking?ebd=EgxTZXJ2aWNlVGl0YW4azQFodHRwczovL2Jvb2suc2VydmljZXR...",
"message_link": "https://www.google.com/localservices/messaging?smp=Gih4Y2F0OnNlcnZpY2VfYXJlYV9idXNpbmVzc19wbHVtYmVyO...",
"thumbnail": "https://lh3.googleusercontent.com/N9X6OIdzAKQCZLhQitSGRUftYliNu6JQvLUb5nIyudqFkb5SwN8GYUd6xk-9gg=w15..."
},
...
]
}
Search Outside the United States
https://www.searchapi.io/api/v1/search?engine=google_local_services&location=London%2CEngland%2CUnited+Kingdom&q=electrician
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "google_local_services",
"q": "electrician",
"location": "London,England,United Kingdom"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_b4JAIjDpreBDYmMadcAGwvWd",
"status": "Success",
"created_at": "2026-10-28T19:41:28Z",
"request_time_taken": 1.13,
"parsing_time_taken": 0.0,
"total_time_taken": 1.13,
"request_url": "https://www.google.com/localservices/prolist?src=1&hl=en&q=electrician&uuld=w+CAIQICIdTG9uZG9uLEVuZ2...",
"html_url": "https://www.searchapi.io/api/v1/searches/search_b4JAIjDpreBDYmMadcAGwvWd.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_b4JAIjDpreBDYmMadcAGwvWd"
},
"search_parameters": {
"engine": "google_local_services",
"q": "electrician",
"location": "London,England,United Kingdom",
"location_used": "London,England,United Kingdom",
"hl": "en"
},
"local_ads": [
{
"position": 1,
"title": "Arthur Electrical 24h Ltd",
"link": "https://www.google.com/localservices/profile?cs=0&q=Arthur+Electrical+24h+Ltd&spp=EkIKEgiYgfPHHxCGoq...",
"cid": "8472281240",
"bid": "11050455302",
"rating": 5.0,
"reviews": 20,
"reviews_histogram": {
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 20
},
"type": "Electrician",
"service_area": "London",
"years_in_business": 58,
"phone": "+447520637393",
"highlights": [
"Locally owned & operated",
...
],
"open_state": "Open",
"hours": "Open 24 hours",
"open_hours": {
"wednesday": "Open 24 hours",
"thursday": "Open 24 hours",
"friday": "Open 24 hours",
"saturday": "Open 24 hours",
"sunday": "Open 24 hours",
"monday": "Open 24 hours",
"tuesday": "Open 24 hours"
}
},
...
]
}