Google Local API
Google Local API
The google_Local
source is designed to retrieve Google Local search results. It scrapes various location-based data, such as restaurants, hotels, coffee shops, gas stations, grocery stores, and more.
Api Details
Endpoint
GET https://serpapi.abcproxy.com/search
Description Retrieve comprehensive user profile including
basic info
,account status
and optionalpermission sets
.
Request
HTTP Request
API Parameters
Search Query
q
string
Yes
Parameter defines the query you want to search. You can use anything that you would use in a regular Google Local search.
coffee
Geographic Location
location
string
No
Parameter defines from where you want the search to originate. If several locations match the location requested, we'll pick the most popular one. Head to the /locations.json API if you need more precise control. The location and uule parameters can't be used together. It is recommended to specify location at the city level in order to simulate a real user’s search. If location is omitted, the search may take on the location of the proxy.
Korea
uule
string
No
Search using a Google-coded location.uule
and location
parameters can't be used together.
Localization
google_domain
string
No
-
gl
string
No
Amgola-ao
hl
string
No
Akan-ak
Advanced Parameters
ludocid
string
No
"New York, NY, USA": 14414772292044717666
.
Advanced Filters
tbs
string
No
The (to be searched) parameter defines advanced search parameters that are not possible in regular query fields. (For example, advanced searches for patents, dates, news, videos, images, apps, or text content)
-
Pagination
start
int
No
The start index of the search results, specifying the first match that should be included in the search results
0
Serpapi Parameters
engine
string
Yes
Set parameter to google_local
to use the Google Local API engine.
google_local
no_cache
boolean
No
Parameter will force SerpApi to fetch the Google Local results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false
(default) to allow results from the cache, or true
to disallow results from the cache. no_cache and async parameters should not be used together.
true
orfalse
api_key
string
Yes
Parameter defines the SerpApi private key to use.
YOUR_API_KEY
Response
Success 200
Response Body
Response Fields
search_metadata
object
Contains timing
and status information
search_parameters
object
Contains query parameters
and search context
Url
string
The link
that the user accesses
LocalResults
object[]
Merchant details
and location information
MorePlaces
object []
Map image link
Pagination
object
Paging data information
Error Responses
Common Errors
200
400
API Key can not be empty
200
401
Param error
200
402
API Key error
200
403
Insufficient Balance
200
404
Deduction failed
200
405
Failed to record usage count
200
406
Unsupported engine
200
407
Network error
200
408
File not found
200
409
Limit param error
200
410
Build url error
200
411
Failed to QueryRecentRecord
200
412
Failed to find json
200
413
Get html error
200
414
HTML is empty
200
429
Too many request
Error Example
Last updated