Yandex
SERP API Yandex查詢參數
使用Thordata的SERP API配置Yandex搜索查詢,包括本土化、地理位置和分頁等參數輸出選項。
q ,搜索查詢(必填)
定義用於數據抓取的搜索查詢(默認值:q=pizza)。支持任何語言的任意關鍵詞。
示例請求:
使用q:pizza參數的示例
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=yandex" \
-d "text=pizza" \
-d "json=1"本土化
yandex_domain ,域名(非必填)
該參數定義了爬取時使用的域名,預設值為 yandex.com
示例請求:
查询 q : pizza,url:yandex.com.tr的示例結果
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=yandex" \
-d "text=pizza" \
-d "yandex_domain=yandex.com" \
-d "json=1"lang ,語言(非必填)
該參數定義了爬取時搜索結果使用的語言,預設值為 en。它是一個由兩個字母組成的語言代碼(例如:en、ru、es)。
詳情列表: Yandex Language Codes
示例請求:
查询 q : pizza,lang:en的示例結果
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=yandex" \
-d "text=pizza" \
-d "json=1" \
-d "lang=en"地理位置
lr ,位置(非必填)
該參數用於指定搜索結果的地區範圍(例如 lr=Moscow,Russia 將僅顯示莫斯科地區的結果),其優先級高於 IP 定位。
示例請求:
查询 q : pizza,lr:India的示例
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=yandex" \
-d "text=pizza" \
-d "json=1" \
-d "lr=India"rstr ,位置嚴格檢查(非必填)
直接雙重過濾——強制結果匹配指定地區(lr)或啟用安全搜索(如 rstr=family 屏蔽成人內容)。
示例請求:
查询 q : pizza,rstr:true的示例结果
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=yandex" \
-d "text=pizza" \
-d "json=1" \
-d "rstr=true"分頁
p ,頁碼(非必填)
分頁控制(從 p=0 開始),需配合每頁條數參數使用。
範例:p=2,獲取第3頁的結果。
示例請求:
查询 q : pizza,p:2的示例
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=yandex" \
-d "text=pizza" \
-d "json=1" \
-d "p=2"高級參數
within,時間周期 (非必填)
指定搜索結果的地區(如 within=example.com 僅顯示within=7d結果),優先級高於7定位。
示例請求:
查询 q : pizza,within:77的示例
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=yandex" \
-d "text=pizza" \
-d "json=1" \
-d "within=2"如需進一步幫助,請透過 [email protected] 聯繫我們。
Last updated
Was this helpful?