Google Maps API

Using Google Maps API you can scrape Google Maps result without worrying about proxy rotation and data parsing. Our API is fast and reliable. Each successful request will cost you 5 API credits.

You have to send a GET request to http://api.scrapingdog.com/google_maps with the below-given parameters.

Google Maps API pricing is available here.

Parameters

Scrapingdog Parameters

Parameter
Description

api_key

required

Your personal API key. Available on your dashboard. Type: String

Search Query

Parameter
Description

query required

This is a Google Maps Search Query. Example1 - query=pizza

Geographic Location

Parameter
Description

ll

The parameter specifies the GPS coordinates of the desired location for applying your query ('q'). It should follow this sequence: '@' followed by latitude, longitude, and zoom level, arranged as: @latitude,longitude,zoom. For example - @40.7455096,-74.0083012,15z This parameter is used only when the type is set to search. Note: Parameter is required when using pagination.

Localization

Parameter
Description

domain

To obtain local results from a specific country, for example, for India, it will be "google.co.in," and for the UK, it will be "google.co.uk". Type: String

Default: "google.com"

language

Language of the results. Possible Values - en, es, fr, de, etc. Default Value - en Type - String

country

This parameter specifies the country for the Google Maps search using a two-letter country code (e.g., US for the United States, UK for the United Kingdom, or FR for France). For a complete list of supported countries, visit the Google countries page. Default Value - us Type - String

Advanced Google Maps Parameters

Parameter
Description

data

The parameter can be used to filter search results. You can visit the Google Maps website, set the desired filters, and simply copy the data value from their URL to the Scrapingdog URL.

One use of this parameter is searching for a specific place, making it essential when the type is set to "place."

Alternatively, place_id can be used.

To use the data parameter for searching a specific place, it should be structured as follows: !4m5!3m4!1s + data_id + !8m2!3d + latitude + !4d + longitude

This results in a string like: !4m5!3m4!1s0x89c259b7abdd4769:0xc385876db174521a!8m2!3d40.750231!4d-74.004019

You can find the data_id using our Google Maps API. Type - String

place_id

The parameter uniquely identifies a place on Google Maps. Place IDs are available for most locations, including businesses, landmarks, parks, and intersections. You can retrieve the place_id using our Google Maps API.

The place_id can be used independently without any other optional parameters. Type: String

Search Type

Parameter
Description

type

The parameter specifies the type of search to be performed. It can be set to:

  • search – Returns a list of results based on the specified query parameter.

  • place – Returns details for a specific place when the data parameter is provided.

This parameter is not required when using place_id. Type: String

Pagination

Parameter
Description

page

This is the page number of Google searches. Its value can be 0 for the first page, 20 for the second page, and so on.

Default Value - 0 Type - String We recommend starting with 0 and increasing by 20 for each subsequent page. While there is no strict limit on the maximum offset value, we suggest keeping it up to 100 (page six), as this aligns with the behavior of the Google Maps web app. Exceeding this may result in duplicate or irrelevant results.

API Example

Response

Video Tutorial

Google Maps API Tutorial

Last updated