# 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-enc</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 https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer Token" -d "{\"url\": \"https://duckduckgo.com/search?q=pizza^&json=1^&kp=1\"}"
```

</details>

如果您需要更多幫助，請透過郵箱 [support@thordata.com](https://mailto: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-hk/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.
