Thordata Docs
简体中文
简体中文
  • 概述
  • 代理
    • 集成教程
      • 住宅代理集成
        • AdsPower
        • BitBrowser
        • ClonBrowser
        • Hubstudio
        • Playwright
        • Puppeteer
        • Selenium
        • Ghost Browser
        • SwitchyOmega
        • FoxyProxy
        • Chrome
        • Edge
        • MuLogin
        • Incogniton
      • ISP代理集成
        • AdsPower
        • BitBrowser
        • ClonBrowser
        • Hubstudio
        • Ghost Browser
        • SwitchyOmega
        • FoxyProxy
        • Chrome
        • Edge
      • 数据中心代理集成
        • AdsPower
        • BitBrowser
        • ClonBrowser
        • Hubstudio
        • Ghost Browser
        • SwitchyOmega
        • FoxyProxy
        • Chrome
        • Edge
      • 无限代理集成
        • AdsPower
        • BitBrowser
        • ClonBrowser
        • Hubstudio
        • Ghost Browser
        • SwitchyOmega
        • FoxyProxy
        • Chrome
        • Edge
    • 住宅代理
      • 入门指南
      • 端点生成器
        • 账密认证
        • IP白名单
          • 国家条目提取
            • 国家/地区入口节点
          • API链接
      • 账户
      • 基本查询
      • 位置设置
        • 国家/地区
        • 城市
        • 州
      • 会话控制
      • 协议
      • 国家/地区列表
      • CDKEY生成与兑换
    • ISP代理
      • 入门指南
    • 数据中心代理
      • 入门指南
    • 无限代理服务器
      • 端点生成器
        • 账密认证
        • IP白名单
          • 国家条目提取
          • API链接
      • 账户
      • 国家/地区列表
  • 爬取
    • SERP API
      • SERP API简介
      • 快速入门
      • 发送您的第一次请求
      • 查询参数
        • 谷歌
        • Bing
        • Yandex
        • DuckDuckGo
      • 解析后的JSON结果
        • 谷歌
        • Bing
        • Yandex
        • DuckDuckGo
      • 常见问题解答
  • WEB Scraper API
    • 入门指南
    • API 请求构建器
    • 抓取参数说明
    • Webhook 集成
    • Amazon S3 集成
  • Universal Scraping API
    • 入门指南
    • 配置
    • 参数说明
  • 免费工具
    • 谷歌扩展程序
      • 使用教程
  • 有用的链接
    • 仪表板中心
  • 常见问题
    • 产品问题
      • 我该如何选择合适的代理套餐?
      • 如何定位特定的国家/地区?
      • 如何定位特定的城市?
      • 什么是无限代理?
      • 为什么在指纹浏览器中使用我们的代理,无法达到您的理想使用效果?
        • 1. 代理完全不生效
        • 2. 您所使用的其他检测渠道检测结果与Thordata后台提取的国家不一致
        • 3. 您所访问的目标网站检测结果与Thordata后台提取的国家不一致
        • 4. 代理生效,但代理的归属地检测结果是随机的
        • 5. 使用白名单的方式,连接失败
    • 付款问题
      • 支持哪些支付方式?
      • 购买错套餐怎么办?
      • 是否提供付费服务退款?
      • 付款后,收到代理余额或激活我的帐户需要多长时间?
  • 支持
    • 联系我们
Powered by GitBook
On this page
  • 本地化
  • 地理位置
  • 分页

Was this helpful?

  1. 爬取
  2. SERP API
  3. 查询参数

Yandex

SERP API Yandex查询参数 使用 Thordata的 SERP API 配置Yandex搜索查询,包括本土化、地理位置和分页等参数输出选项。

q,必填,

该参数定义了爬取时的搜索结果,默认值为q= pizza 。您可以输入任意您想要查询的关键词,也可以是任意语言。

代码示例:

curl https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer xxxxxxxxxxxxxxx" -d "{\"url\": \"https://yandex.com/search?text=pizza^&json=1\"}"

本地化

yandex_domain,自选

指定要使用的 Yandex 域名(默认为 yandex.com)。 可选值,如: yandex.com、yandex.ru、yandex.com.tr 等其他地区域名

示例请求:

curl https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer xxxxxxxxxxxxxxx" -d "{"url": "https://yandex.com.tr/search?text=pizza^&json=1"}"

hl,自选

控制搜索结果的界面语言(默认 en)。 常见值: en(英语) ru(俄语) es(西班牙语) 完整语言代码列表:https://yandex.com/support/search/query-language.html

示例请求:

curl https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer xxxxxxxxxxxxxxx" -d "{"url": "https://yandex.com/search?text=pizza^&json=1^&lang=de"}"

地理位置

lr,自选

指定搜索结果的地区(如 lr=Moscow),优先级高于IP定位 格式:lr=<地区名称>(如 lr=Moscow,Russia)

示例请求:

curl https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer xxxxxxxxxxxxxxx" -d "{\"url\": \"https://yandex.com/search?text=pizza^&json=1^&lr=India\"}"

rstr,自选

双重过滤——强制结果匹配指定地区(lr)或启用安全搜索 如:安全搜索:rstr=family 屏蔽成人内容 示例请求:

curl https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer xxxxxxxxxxxxxxx" -d "{\"url\": \"https://yandex.com/search?text=pizza^&json=1^&rstr=true\"}"

分页

p,自选

分页控制(从 p=0 开始),需配合每页条数参数使用。(如:text=pizza&p=2 # 获取第3页结果)

示例请求:

curl https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer xxxxxxxxxxxxxxx" -d "{\"url\": \"https://yandex.com/search?text=pizza^&json=1^&p=2\"}"curl https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer xxxxxxxxxxxxxxx" -d "{\"url\": \"https://www.bing.com/search?q=pizza^&json=1^&first=10\"}"

within,自选

时间/范围限定, 时间范围:如 within=7d(#仅显示7天内的结果) 域名限定:如 within=example.com

示例请求:

curl https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer xxxxxxxxxxxxxxx" -d "{\"url\": \"https://yandex.com/search?text=pizza^&json=1^&within=2\"}"

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

PreviousBingNextDuckDuckGo

Last updated 4 days ago

Was this helpful?