# Goole Finance

**SERP  API 谷歌 Search查询参数**

用Thordata的SERP API配置谷歌 finance查询，支持本地化参数和高级参数输出选项的定制功能。

<details>

<summary><strong><code>q</code> ，搜索查询(必填)</strong></summary>

定义用于数据抓取的搜索查询（默认值：`q=pizza`）。支持任何语言的任意关键词。

**示例请求：**

使用`q=GOOGL:NASDAQ`参数的示例

```sh
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"
```

</details>

## 本土化

<details>

<summary><strong><code>hl</code> ，语言(非必填)</strong></summary>

设置搜索结果的界面语言（默认值：`en`）。采用标准语言代码格式（如：`en`-英文，`es`-西班牙文，`zh-CN`-简体中文）。

完整语言代码支持列表请参阅：[Google官方语言代码表](https://developers.google.com/google-ads/api/docs/start)

**示例请求：**

使用下面参数的示例： `q=GOOGL:NASDAQ`,`hl`: <mark style="color:blue;">es</mark>

```sh
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"
```

</details>

## 高级参数

<details>

<summary><strong><code>window</code> ,</strong>时间范围<strong>(非必填)</strong></summary>

参数用于设置图形的时间范围。可设置为：

`1D` - 1 天（默认）

`5D` - 5 天

`1M` - 1 个月

`6M` - 6 个月

`YTD` - 年初至今

`1Y` - 1 年

`5Y` - 5 年

`MAX` - 最大值

**示例请求：**

使用下面参数的示例： `q=GOOGL:NASDAQ`,`window`:6M

```sh
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 "
```

</details>

如果您需要更多帮助，请通过邮&#x7BB1;**<support@thordata.com>**&#x8054;系我们。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.thordata.com/doc/zh/pa-qu/serp-api/cha-xun-can-shu/gu-ge/goole-finance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
