Thordata Docs
English
English
  • Overview
  • PROXIES
    • Integration Tutorial
      • Residential Proxies Integration
        • AdsPower
        • BitBrowser
        • ClonBrowser
        • Playwright
        • Puppeteer
        • Selenium
        • Ghost Browser
        • SwitchyOmega
        • FoxyProxy
        • Chrome
        • Edge
        • MuLogin
        • Incogniton
      • ISP Proxies Integration
        • AdsPower
        • BitBrowser
        • ClonBrowser
        • Ghost Browser
        • SwitchyOmega
        • FoxyProxy
        • Chrome
        • Edge
      • Datacenter Proxies Integration
        • AdsPower
        • BitBrowser
        • ClonBrowser
        • Ghost Browser
        • SwitchyOmega
        • FoxyProxy
        • Chrome
        • Edge
      • Unlimited Proxies Integration
        • AdsPower
        • BitBrowser
        • ClonBrowser
        • Ghost Browser
        • SwitchyOmega
        • FoxyProxy
        • Chrome
        • Edge
    • Residential Proxies
      • Getting Started Guide
      • Endpoint Generator
        • User & Pass auth
        • Whitelisted IPs
          • Country Entry
            • Country/Region Entry Node
          • API Link
      • Users
      • Basic Query
      • Location Settings
        • Country / Region
        • City
        • State
      • Session Control
      • Protocols
      • Country/Region list
      • CDKEY Generation and Redemption
    • ISP Proxies
      • Getting Started Guide
    • Datacenter Proxies
      • Getting Started Guide
    • Unlimited Proxy Servers
      • Endpoint Generator
        • User & Pass auth
        • Whitelisted IPs
          • Country Entry
          • API Link
      • Users
      • Country/Region list
  • Scraping
    • SERP API
      • Introduction
      • Quick Start
      • Send Your First Request
      • Query Parameters
        • Google
        • Bing
        • Yandex
        • DuckDuckGo
      • Parsed JSON Result
        • Google
        • Bing
        • Yandex
        • DuckDuckGo
      • FAQs
    • WEB Scraper API
      • Getting Started Guide
      • API request builder
      • Parameter Description
      • Webhook Integration
      • Amazon S3 Integration
  • Universal Scraping API
    • Quick Start Guide
    • Configuration
    • Parameter Description
  • FREE TOOLS
    • Chrome Extension
      • Tutorial
  • USEFUL LINKS
    • Dashboard Center
  • FAQ
    • Product Problem
      • How do I choose the right proxy package?
      • How to target specific countries/regions?
      • How to target a specific city?
      • What is Unlimited Proxies?
      • Why is it not effective to use our proxies in a fingerprint browser?
        • 1. The proxy does not work at all
        • 2. The results of other detection channels you are using are not the same as the country extracted
        • 3. Your targeted website's detection results are not the same as the country extracted
        • 4. The proxy works, but the IP location randomly jumps to other countries you don't want
    • Payment Problem
      • What payment methods are supported?
      • What should I do if I buy the wrong package?
      • Do you provide refunds for paid services?
      • After payment, how long does it take to receive my agency balance or activate my account?
  • SUPPORT
    • Contact Us
Powered by GitBook
On this page
  • Localization
  • Geotargeting
  • Search Types
  • Pagination
  • Advanced Parameters

Was this helpful?

  1. Scraping
  2. SERP API
  3. Query Parameters

Google

PreviousQuery ParametersNextBing

Last updated 2 days ago

Was this helpful?

SERP API Google Query Parameters

Configure Google search queries using Thordata’s SERP API, including localization parameters, geotargeting, pagination, and "advanced parameter" output options.

q (Required)

This parameter defines the search query for scraping. The default value is q=pizza. You can input any keyword in any language.

Code Example:

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\"}"

Localization

domain (Optional)

Defines the domain used for scraping. Default: google.com.

Modify this or refer to the for a full list of supported domains.

Example Request:

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\"}"

gl (Optional)

Specifies the country/region for localized search results (default: us). Uses a two-letter country code (e.g., us, ru, uk).

Modifying gl affects ranking, localized content, and language preferences (e.g., gl=ru prioritizes Russian results). For supported codes, see .

Example Request:

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

hl (Optional)

Sets the UI language for search results (default: en). Uses a two-letter language code (e.g., en, es, zh-CN).

Example Request:

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^&hl=es\"}"

cr (Optional)

Restricts results to specific countries using | as a separator (e.g., countryFR|countryDE). Combine with gl for consistent UI/content language.

Example Request:

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^&cr=countryFR|countryDE\"}"

lr (Optional)

Filters results by language using lang_XX codes (e.g., lang_fr|lang_de). Overrides hl if both are used.

Example Request:

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^&lr=lang_en|lang_fr\"}"

Geotargeting

location (Optional)

Simulates searches from a precise location. Must be paired with uule. If omitted, the proxy’s location may be used.

Code Example:

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^&location=India^&uule=w+CAIQICIFSW5kaWE\"}"

uule (Optional)

Code Example:

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^&location=India^&uule=w+CAIQICIFSW5kaWE\"}"

Search Types

tbm (Optional)

Defines the search result type:

  • tbm=isch – Images

  • tbm=shop – Shopping

  • tbm=nws – News

  • tbm=vid – Videos

Code Example:

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^&tbm=shop\"}"

Pagination

start (Optional)

Sets the starting result index (default: 0). For example, start=30 skips the first 30 results.

Code Example:

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^&start=30\"}"

num (Optional)

Sets the number of results per page (default: 20).

Code Example:

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^&num=50\"}"

safe (Optional)

Filters adult content:

  • safe=active – Strict filtering (default)

  • safe=off – No filtering

Code Example:

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^&safe=active\"}"

Advanced Parameters

ludocid (Optional)

Triggers Knowledge Graph data for specific entities (e.g., ludocid=14389889685039125943).

Code Example:

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

kgmid (Optional)

Directly calls a Knowledge Graph entry (e.g., /m/0d6lp for San Francisco).

Code Example:

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

ibp (Optional)

Controls special rendering modes (e.g., ibp=new for enhanced Knowledge Graph).

Code Example:

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^&ibp=new\"}"

tbs (Optional)

Advanced filters:

  • Time: qdr:h (1 hour), qdr:y (1 year)

  • Content: sur:f (images), sur:fc (free-to-use images)

Code Example:

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^&tbs=sur:f\"}"

nfpr (Optional)

Disables autocorrect (e.g., nfpr=1 prevents "googl" → "google").

Code Example:

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^&nfpr=1\"}"

filter (Optional)

Deduplicates results: 1 (enable), 0 (disable).

Code Example:

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^&filter=1\"}"

For example, hl=es returns Spanish UI and prioritized content. Full list: .

Encodes the target location via Base64. Use with location. Download all valid uule values .

For further assistance, contact us at .

Google Domains page
Google’s Country List
Google Language Codes
here
support@thordata.com