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
    • 入門指南
    • 配置
    • 参数说明
  • 免費工具
    • 谷歌擴展程序
      • 使用教程
  • 有用的链接
    • 儀表板中心
  • 常見問題
    • 產品問題
      • 我該如何選擇合適的代理套餐?
      • 如何定位特定的國家/地區?
      • 如何定位特定的城市?
      • 什麼是無限代理?
      • 為什麼在指紋瀏覽器中使用我們的代理,無法達到您的理想使用效果?
        • 代理完全不生效
        • 您所使用的其他檢測通路檢測結果與Thordata後臺選取的國家不一致
        • 您所訪問的目標網站檢測結果與Thordata後臺選取的國家不一致
        • 代理生效,但代理的歸屬地檢測結果是隨機的
    • 付款問題
      • 支持哪些支付方式?
      • 購買錯套餐怎麼辦?
      • 是否提供付費服務退款?
      • 付款後,收到代理餘額或激活我的帳戶需要多長時間?
  • 支持
    • 聯繫我們
Powered by GitBook
On this page

Was this helpful?

  1. 爬取
  2. SERP API
  3. 查詢參數

谷歌

Previous查詢參數NextBing

Last updated 3 days ago

Was this helpful?

SERP API 谷歌查詢參數

使用 Thordata 的 SERP API 配置谷歌搜索查詢,包括本地化參數、地理位置、分頁以及「進階參數」輸出選項。


基礎參數

q (必填) 定義搜索關鍵詞,預設值為 q=pizza。可輸入任意語言關鍵詞。

範例請求:

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

本地化參數

domain (選填) 指定搜索域名,預設為 google.com。支援完整域名列表:。

gl (選填) 指定國家/地區代碼(如 us、jp),影響搜索排序和本地化內容。預設為 us。

範例請求:

-d "{\"url\": \"https://www.google.com/search?q=pizza^&gl=au^&json=1\"}"

hl (選填) 指定界面語言(如 en、es),預設為 en。

範例請求:

-d "{\"url\": \"https://www.google.com/search?q=pizza^&hl=es^&json=1\"}"

cr (選填) 限制搜索結果來源國家(如 countryFR|countryDE),需與 gl 搭配使用。

範例請求:

-d "{\"url\": \"https://www.google.com/search?q=pizza^&cr=countryFR|countryDE^&json=1\"}"

lr (選填) 限制搜索結果語言(如 lang_fr|lang_de),優先於 hl。

範例請求:

-d "{\"url\": \"https://www.google.com/search?q=pizza^&lr=lang_en|lang_fr^&json=1\"}"

地理位置參數

location + uule (選填) 模擬精確地理位置(如 location=India + uule=w+CAIQICIFSW5kaWE)。

範例請求:

-d "{\"url\": \"https://www.google.com/search?q=pizza^&location=India^&uule=w+CAIQICIFSW5kaWE^&json=1\"}"

搜索類型

tbm (選填) 指定結果類型:

  • isch:圖片

  • shop:購物

  • nws:新聞

  • vid:影片

範例請求:

-d "{\"url\": \"https://www.google.com/search?q=pizza^&tbm=shop^&json=1\"}"

分頁參數

start (選填) 跳過指定數量結果(如 start=30 從第31條開始)。

範例請求:

-d "{\"url\": \"https://www.google.com/search?q=pizza^&start=30^&json=1\"}"

num (選填) 每頁返回結果數(預設 20,最大 100)。

範例請求:

-d "{\"url\": \"https://www.google.com/search?q=pizza^&num=50^&json=1\"}"

safe (選填) 過濾成人內容:

  • active:啟用

  • off:關閉

範例請求:

-d "{\"url\": \"https://www.google.com/search?q=pizza^&safe=active^&json=1\"}"

進階參數

ludocid (選填) 觸發特定知識圖譜數據(如企業詳情)。

範例請求:

-d "{\"url\": \"https://www.google.com/search?q=谷歌^&ludocid=14389889685039125943^&json=1\"}"

kgmid (選填) 直接調用知識圖譜條目(如 /m/0d6lp 對應舊金山)。

範例請求:

-d "{\"url\": \"https://www.google.com/search?q=谷歌^&kgmid=/m/0d6lp^&json=1\"}"

tbs (選填) 進階篩選:

  • 時間範圍:qdr:h(1小時內)、qdr:y(1年內)

  • 內容類型:sur:f(僅圖片)

範例請求:

-d "{\"url\": \"https://www.google.com/search?q=pizza^&tbs=qdr:h^&json=1\"}"

nfpr (選填) 禁用拼寫修正(nfpr=1)。

範例請求:

-d "{\"url\": \"https://www.google.com/search?q=googl^&nfpr=1^&json=1\"}"

filter (選填) 結果去重(1啟用、0禁用)。

範例請求:

-d "{\"url\": \"https://www.google.com/search?q=pizza^&filter=1^&json=1\"}"

支援的 uule 值參考:

如需進一步協助,請聯繫:

Google 域名頁面
Google Geotargeting CSV
support@thordata.com