Google Search Scraper API

Using Google Search API you can scrape Google search results 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 https://api.scrapingdog.com/google with the below-given parameters.

Google Search Scraper API pricing is available here.

Parameters

Scrapingdog Parameters

Parameter
Description

api_key required

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

advance_search

This can be used to get advanced feature snippets from Google. If true, will cost 10 credits per request otherwise 5. Default Value - false Type - String

mob_search

Type: Boolean

Default: false Use this parameter to get mobile search results. If true, it will cost 10 credits per request.

html

This will return the full HTML of the Google page. Default Value - false Type - Boolean

Search Query

Parameter
Description

query required

The parameter specifies the search query you want to execute, just like a standard Google search. You can include operators such as inurl:, site:, and intitle: to refine your results. Additionally, advanced search parameters like as_dt and as_eq are supported. Example1 - query=pizza Type - String

Geographic Location and 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". For a complete list of supported domains, visit the Google domains page.

Default: "google.com" Type: String

country

This parameter specifies the country for the Google 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

cr

The parameter allows you to restrict the search to specific countries. It follows the format country{two-letter uppercase country code} and uses | as a separator for multiple countries. For example, countryFR|countryDE will return results only from French and German websites. Visit Google's cr country-specific page for a complete list of supported countries. Type - String

uule

It is a parameter that specifies the geographic location or locale for which the search results should be tailored. Possible Value could be w+CAIQIFJlbGF5IFN0YXRlcw==

Type - String

location

This parameter specifies the origin location of the search. It cannot be used in combination with the uule parameter. For best results and to closely mimic a real user's search behavior, it's recommended to set the location at the city level. Type - String

language

Language of the results. Possible Values - en, es, fr, de, etc. Visit Google's languages page for a complete list of supported countries. Default Value - en Type - String

lr

Limit the search to one or multiple languages. It is used as lang_{language code}. Visit Google's lr languages page for a complete list of supported countries. Type - String

Advanced Google Parameters

Parameter
Description

ludocid

This parameter specifies the ID (CID) of the Google My Business listing you want to extract, also referred to as the Google Place ID. Type - String

lsig

This parameter may be required to ensure the knowledge graph map view appears. You can obtain the lsig ID using our Google Local API. It is also accessible through a redirect that Google utilizes within Google My Business. Type - String

kgmid

This parameter specifies the ID (KGMID) of the Google Knowledge Graph listing you want to scrape, also referred to as the Google Knowledge Graph ID. When using the kgmid parameter, the results will be based on the originally encrypted search query. In certain cases, kgmid may override all other parameters except for page and results. Type - String

si

This parameter specifies the cached search parameters of the Google Search you want to scrape. When using the si parameter, the results will be based on the originally encrypted search query. In some cases, si may override all other parameters except for page and results. It can also be used to scrape Google Knowledge Graph Tabs. Type - String

ibp

This parameter controls the rendering of layouts and the expansion of certain elements (e.g., gwp;0,7 expands searches using ludocid for an extended Knowledge Graph view). Type - String

uds

This parameter allows filtering search results using a string provided by Google. Type - String

Advanced Filters

Parameter
Description

tbs

to be searched - An advanced parameter to filter search results. Type: String

safe

To filter the adult content set safe to active or to disable it set off. Default: off Type: String

nfpr

It excludes the result from an auto-corrected query that is spelled wrong. It can be set to 1 to exclude these results or 0 to include them.

Default: 0 Type: Boolean

filter

This parameter controls whether the 'Similar Results' and 'Omitted Results' filters are enabled or disabled. Set it to 1 (default) to activate the filters or 0 to turn them off. Type: Boolean

Pagination

Parameter
Description

page

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

Default Value - 0 Type - String

results

Number of results you want to scrape. Its value could be anything between 1 and 100. Note: Setting the results to 100 may slightly slow down the API response. Default Value - 10 Type - String

API Example

Response

Video Tutorial

Last updated