Piloterr

Google Search

GET
/v2/google/search

Scrape real-time Google search results with organic listings, knowledge graph, related searches, and advanced filters.

Credit cost: 1 credit per call

Authorization

ApiKeyAuth
headerx-api-key<token>

Your API key. Include it in the x-api-key header for every request.

Query Parameters

query*string

The search query to execute on Google. Supports all standard Google search operators.

Examples:

  • anthropic: standard keyword search
  • site:linkedin.com Bill Gates: restrict results to a specific domain
  • intitle:"anthropic": match the page title
  • inurl:blog python tutorial: match part of the URL

Example:

anthropic
tbs?string

Advanced time-range and filter string for Google Search. Used to restrict results by recency.

  • qdr:h: Last hour
  • qdr:d: Last day
  • qdr:w: Last week
  • qdr:m: Last month
  • qdr:y: Last year

Example:

qdr:w
location?string

City or region from which the search should originate. Simulates a real user's search from the specified location.

Examples:

New York, NY
Paris, France
Tokyo, Japan
uule?string

Google-encoded location string for precise geographic targeting.

gl?string

Two-letter country code for the Google search country context.

  • us: United States
  • fr: France
  • gb: United Kingdom
  • de: Germany

Example:

us
Default"us"
hl?string

Two-letter language code for the Google interface language.

  • en: English
  • fr: French
  • de: German
  • es: Spanish

Example:

en
Default"en"
page?number

Page number of search results to retrieve.

  • 1: First page (default)
  • 2: Second page, etc.
Default"1"
num?numberDeprecated

Maximum number of results to return per page (e.g. 10, 40, 100).

Note: This parameter is deprecated and may not reliably affect the number of results returned.

Default"10"

Response Body

Successful response

application/json
  1. response
pagination?
knowledge_graph?unknown
organic_results?array<>
related_searches?array<>
search_parameters?
search_information?
Example Request
curl -X GET 'https://api.piloterr.com/v2/google/search?query=string'
Example Response
{  "pagination": {    "next": 2,    "current": 1,    "other_pages": [      2,      3,      4,      5,      6,      7,      8,      9,      10    ],    "has_next_page": true  },  "knowledge_graph": null,  "organic_results": [    {      "link": "https://www.anthropic.com/",      "title": "Anthropic",      "domain": "www.anthropic.com",      "source": "Anthropic",      "snippet": "Anthropic is an AI safety company. Claude is its assistant.",      "position": 1,      "displayed_link": "https://www.anthropic.com",      "snippet_matched": [        "anthropic"      ]    },    {      "link": "https://docs.anthropic.com/",      "title": "Anthropic documentation",      "domain": "docs.anthropic.com",      "source": "Anthropic",      "snippet": "Documentation for the Claude API and the Anthropic platform.",      "position": 2,      "displayed_link": "https://docs.anthropic.com",      "snippet_matched": []    }  ],  "related_searches": [    {      "query": "Anthropic Claude"    },    {      "query": "Anthropic API"    },    {      "query": "Anthropic documentation"    }  ],  "search_parameters": {    "q": "anthropic",    "gl": "us",    "hl": "en",    "tbs": null,    "page": 1,    "uule": null,    "engine": "google",    "location": null  },  "search_information": {    "total_results": null,    "time_taken_displayed": null  }}