The google_maps 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.
Request samples
In this example, we make a request to retrieve the first 3 pages of hotel availability for 1 guest between 2023-10-01 and 2023-10-10 for hotels in Paris from google.com.sons.
Basic setup and customization options for scrpaing Google local search results.
Parameter
Description
Default Value
source
Sets the scraper.
google_maps
query
UTF-encoded keyword.
-
render
-
callback_url
-
user_agent_type
desktop
- mandatory parameter
Localization
Adapt search results to specific geographical locations, domains, and languages.
Parameter
Description
Default Value
geo_location
-
domain
com
locale
-
context:
results_language
-
Pagination
Controls for managing the pagination and retrieval of search results.
Parameter
Description
Default Value
start_page
Starting page number.
1
pages
Number of pages to retrieve.
1
limit
Number of results to retrieve in each page.
10
Other
Additional advanced settings and controls for specialized requirements.
Parameter
Description
Default Value
context:
nfpr
true will turn off spelling auto-correction
false
context:
hotel_occupancy
Number of guests.
NB: this parameter is only applicable if you are searching for a hotel-related search term.
-
context:
hotel_dates
Length for staying in the hotel, from - to. Example: 2023-07-12,2023-07-13
NB: this parameter is only applicable if you are searching for a hotel-related search term.
Context parameters
All context parameters should be added to the context array as objects with key and value pairs, e.g.:
Device type and browser. The full list can be found .
The geographical location that the result should be adapted for. Using this parameter correctly is extremely important to get the right data. For more information, read about our suggested geo_location parameter structures .
Domain localization for Google. The full list of available domains can be found .
Accept-Language header value which changes your Google search page web interface language. .
Results language. List of supported Google languages can be found .