API Parameters
Parameters | Required | Desc |
---|---|---|
q | true | Parameter defines the query you want to search. You can use anything that you would use in a regular Google search. e.g. inurl:, site:, intitle:. We also support advanced search query parameters such as as_dt and as_eq. See the full list of supported advanced search query parameters. |
location | false | 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. |
uule | false | Parameter is the Google encoded location you want to use for the search. uule and location parameters can't be used together. |
ludocid | false | Parameter defines the id (CID) of the Google My Business listing you want to scrape. Also known as Google Place ID. |
lsig | false | Parameter that you might have to use to force the knowledge graph map view to show up. You can find the lsig ID by using our Local Pack API or Google Local API.lsig ID is also available via a redirect Google uses within Google My Business. |
kgmid | false | Parameter defines the id (KGMID) of the Google Knowledge Graph listing you want to scrape. Also known as Google Knowledge Graph ID. Searches with kgmid parameter will return results for the originally encrypted search parameters. For some searches, kgmid may override all other parameters except start, and num parameters. |
si | false | Parameter defines the cached search parameters of the Google Search you want to scrape. Searches with si parameter will return results for the originally encrypted search parameters. For some searches, si may override all other parameters except start, and num parameters. si can be used to scrape Google Knowledge Graph Tabs. |
ibp | false | Parameter is responsible for rendering layouts and expansions for some elements (e.g., gwp;0,7 to expand searches with ludocid for expanded knowledge graph). |
uds | false | Parameter enables to filter search. It's a string provided by Google as a filter. uds values are provided under the section: filters with uds, q and serpapi_link values provided for each filter. |
google_domain | false | Parameter defines the Google domain to use. It defaults to google.com. Head to the Google domains page for a full list of supported Google domains. |
gl | false | Parameter defines the country to use for the Google search. It's a two-letter country code. (e.g., us for the United States, uk for United Kingdom, or fr for France). Head to the Google countries page for a full list of supported Google countries. |
hl | false | Parameter defines the language to use for the Google search. It's a two-letter language code. (e.g., en for English, es for Spanish, or fr for French). Head to the Google languages page for a full list of supported Google languages. |
cr | false | Parameter defines one or multiple countries to limit the search to. It uses country{two-letter upper-case country code} to specify countries and |
lr | false | Parameter defines one or multiple languages to limit the search to. It uses lang_{two-letter language code} to specify languages and |
tbs | false | (to be searched) parameter defines advanced search parameters that aren't possible in the regular query field. (e.g., advanced search for patents, dates, news, videos, images, apps, or text contents). |
safe | false | Parameter defines the level of filtering for adult content. It can be set to active or off, by default Google will blur explicit content. |
nfpr | false | Parameter defines the exclusion of results from an auto-corrected query when the original query is spelled wrong. It can be set to 1 to exclude these results, or 0 to include them (default). Note that this parameter may not prevent Google from returning results for an auto-corrected query if no other results are available. |
filter | false | Parameter defines if the filters for 'Similar Results' and 'Omitted Results' are on or off. It can be set to 1 (default) to enable these filters, or 0 to disable these filters. |
tbm | false | (to be matched) parameter defines the type of search you want to do.It can be set to:(no tbm parameter): regular Google Search,isch: Google Images API,lcl - Google.Local API,vid: Google Videos API,nws: Google News API,shop: Google Shopping API,pts: Google Patents API,or any other Google service. |
start | false | Parameter defines the result offset. It skips the given number of results. It's used for pagination. (e.g., 0 (default) is the first page of results, 10 is the 2nd page of results, 20 is the 3rd page of results, etc.).Google Local Results only accepts multiples of 20(e.g. 20 for the second page results, 40 for the third page results, etc.) as the start value. |
num | false | Parameter defines the maximum number of results to return. (e.g., 10 (default) returns 10 results, 40 returns 40 results, and 100 returns 100 results).The use of num may introduce latency, and/or prevent the inclusion of specialized result types. It is better to omit this parameter unless it is strictly necessary to increase the number of results per page. |
device | false | Parameter defines the device to use to get the results. Currently only supports desktop version. |
Modified at 2025-02-13 03:52:56