Google Search
Scrape real-time Google search results with organic listings, knowledge graph, related searches, and advanced filters.
Credit cost: 1 credit per call
ApiKeyAuthx-api-key<token>Your API key. Include it in the x-api-key header for every request.
query*stringThe search query to execute on Google. Supports all standard Google search operators.
Examples:
anthropic: standard keyword searchsite:linkedin.com Bill Gates: restrict results to a specific domainintitle:"anthropic": match the page titleinurl:blog python tutorial: match part of the URL
Example:
anthropictbs?stringAdvanced time-range and filter string for Google Search. Used to restrict results by recency.
qdr:h: Last hourqdr:d: Last dayqdr:w: Last weekqdr:m: Last monthqdr:y: Last year
Example:
qdr:wlocation?stringCity or region from which the search should originate. Simulates a real user's search from the specified location.
Examples:
New York, NYParis, FranceTokyo, Japanuule?stringGoogle-encoded location string for precise geographic targeting.
gl?stringTwo-letter country code for the Google search country context.
us: United Statesfr: Francegb: United Kingdomde: Germany
Example:
us"us"hl?stringTwo-letter language code for the Google interface language.
en: Englishfr: Frenchde: Germanes: Spanish
Example:
en"en"page?numberPage number of search results to retrieve.
1: First page (default)2: Second page, etc.
"1"num?numberDeprecatedMaximum 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.
"10"Successful response
application/json- response
pagination?knowledge_graph?unknownorganic_results?array<>related_searches?array<>search_parameters?search_information?curl -X GET 'https://api.piloterr.com/v2/google/search?query=string'{ "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 }}