Goole Finance

SERP API Google Query Parameters

Configure Google search queries using Thordata’s SERP API, including localization parameters and "advanced parameter" output options.

q ,Search Query(Required)

Define the search query used for data scraping (Default value: q=GOOGL:NASDAQ). Any keywords in any language are supported.

Example Request: Example using the parameter q=GOOGL:NASDAQ

curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_finance" \
 -d "q=GOOGL:NASDAQ" \
 -d "json=1"

Localization

hl ,Language(Optional)

Set the interface language for search results (default value: en). Adopt standard language code formats (e.g., en, es, zh-CN).

For the complete list of supported language codes, please refer to: Google Language Codes.

Example Request:

Example results for q=GOOGL:NASDAQ,hl: es

curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_finance" \
 -d "q=pizza" \
 -d "json=1" \
 -d "hl=es"

Advanced Parameters

window ,Time Range(Optional)

Parameter is used for setting time range for the graph. It can be set to:

1D - 1 Day(default)

5D - 5 Days

1M - 1 Month

6M - 6 Months

YTD - Year to Date

1Y - 1 Year

5Y - 5 Years

MAX - Maximum

Example Request:

Example results for q=GOOGL:NASDAQ,window:6M

curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_finance" \
 -d "q=GOOGL:NASDAQ" \
 -d "json=1" \
 -d "window=6M "

For further assistance, contact us at [email protected].

Last updated

Was this helpful?