# DuckDuckGo

**SERP API DuckDuckgo查询参数**

使用 Thordata的 SERP API 配置DuckDuckgo搜索查询，包括地理位置和分页参数输出选项。

<details>

<summary><strong><code>q</code> ，搜索查询（必填）</strong></summary>

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

**示例请求：**

使用`q`：<mark style="color:blue;">pizza</mark>参数的示例

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

</details>

## 地理位置

<details>

<summary><strong><code>kl</code> ，位置（非必填）</strong></summary>

指定搜索结果的界面语言和区域（如 “`zh-cn`” 为简体中文界面并优先展示中国地区结果）。

**示例请求：**

使用 `q` : <mark style="color:blue;">pizza</mark>,`kl`:<mark style="color:blue;">in-en</mark>参数的示例

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

</details>

## 分页

<details>

<summary><strong><code>start</code> ，结果偏移量（非必填）</strong></summary>

设置搜索结果分页起点（如 “`start=30`” 表示跳过前 30 条结果，从第 31 条开始显示）。

**示例请求：**

使用  `q` : <mark style="color:blue;">pizza</mark>,`start`:<mark style="color:blue;">2</mark>参数的示例

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

</details>

## 其他参数

<details>

<summary><strong><code>df</code> ，时间范围（非必填）</strong></summary>

按时间范围筛选搜索结果（'d=最近 24 小时', 'w = 最近一周', 'm = 最近一个月'）。

**示例请求：**

使用 `q` : <mark style="color:blue;">pizza</mark>,`df`:<mark style="color:blue;">y</mark>参数的示例

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

</details>

<details>

<summary><strong><code>kp</code> ，安全（非必填）</strong></summary>

设置搜索内容安全过滤等级（严格 / 中等 / 关闭，过滤成人、暴力等敏感信息）。

**示例请求：**

使用  `q` : <mark style="color:blue;">pizza</mark>,`kp`:<mark style="color:blue;">1</mark>参数的示例

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

</details>

如果您需要更多帮助，请通过邮箱<support@thordata.com>联系我们。


---

# 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/duckduckgo.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.
