DuckDuckGo
SERP API DuckDuckgo 查詢參數
使用 Thordata 的 SERP API 配置 DuckDuckgo 搜索查詢,包括地理位置和分頁參數輸出選項。
q
,搜索查詢(必填)
定義用於數據抓取的搜索查詢(默認值:q=pizza
)。支持任何語言的任意關鍵詞。
示例請求:
使用q
:pizza參數的示例
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\"}"
地理位置
kl
,位置(非必填)
指定搜索結果的界面語言和區域(例如zh-cn
表示簡體中文界面,並優先展示中國地區結果)。
示例請求:
使用 q
: pizza,kl
:in-enc參數的示例
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^&kl=in-en\"}"
分页
start
,結果偏移量(非必填)
設定搜索結果分頁起點(如start=30
表示跳過前30筆結果,從第31筆開始顯示)。
示例請求:
使用 q
: pizza,start
:2參數的示例
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^&start=2\"}"
高級篩選
df
,時間範圍(非必填)
按時間範圍篩選搜索結果('d=最近24小時', 'w=最近一週', 'm=最近一個月')。
示例請求:
使用 q
: pizza,df
:y參數的示例
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^&df=y\"}"
kp
,安全(非必填)
設定搜索內容安全過濾等級(嚴格 / 中等 / 關閉,過濾成人、暴力等敏感資訊)。
示例請求:
使用 q
: pizza,kp
:1參數的示例
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\"}"
如果您需要更多幫助,請透過郵箱 [email protected] 聯繫我們。
Last updated
Was this helpful?