Saltar para o conteúdo principal
POST
Search Google

Autorizações

Authorization
string
header
obrigatório

Your API key, sent as Authorization: Bearer <key>.

Cabeçalhos

Prefer
string

wait=<seconds> holds the request at most that long, up to 290. wait=0 answers with the task id at once and queues the task when every concurrency slot is taken.

Exemplo:

"wait=120"

Corpo

application/json
query
string
obrigatório

The search term, for GOOGLE, AIMODE, GOOGLE_SERP, GOOGLE_PLACES, GOOGLE_NEWS, BING_SEARCH, COMMERCE_SERP and NAVER_* engines. BING_SEARCH reads prompt first and falls back to query, and rejects text over 4,000 characters with 422 VALIDATION_ERROR.

url
string<uri>

GOOGLE_SERP, GOOGLE_AIO and GOOGLE_AIMODE: an https://www.google.com/search address sent in place of query, or the same address on a Google country domain such as www.google.de, which is asked at www.google.com with the same path and parameters; without gl or country, the domain's country is the market. An address without gl is asked with the market's gl added. Its q, gl, hl and uule are read as query, country, hl and uule, and on GOOGLE_SERP its start as page; GOOGLE_AIMODE needs udm=50. All three ask Google with the address exactly as written, so its other parameters (num, lr, tbs, filter and so on) reach Google; Google lists ten results a page whatever num says. An address that picks another tab with udm or tbm on GOOGLE_SERP or GOOGLE_AIO, one without udm=50 on GOOGLE_AIMODE, or one sent together with query, hl, uule or page, returns 422 VALIDATION_ERROR. NAVER_SERP with action page: the naver.com page to read (blog, cafe, news, terms, kin or any other naver.com page). A redirect that leaves naver.com fails the task. COMMERCE_SERP: a listing page read instead of a query, a Qoo10 shop page (https://www.qoo10.jp/shop/{shop}) with site qoo10. WEB_SCRAPE: the public page or PDF to read.

country
string

ISO 3166-1 alpha-2 country code, case-insensitive. Omitted, empty or null means US (KR for NAVER_* engines). A value that is not an officially assigned code, such as UK (use GB), is rejected with 400 VALIDATION_ERROR, and a country this engine cannot serve is rejected at submit time with 422.

Exemplo:

"US"

include
object

Optional output flags. markdown, rawResponse, searchQueries, ads and shopping are ignored by engines that do not support them. citationLinks is PERPLEXITY only and requires markdown: true. analysis on an unsupported engine is rejected with 422 VALIDATION_ERROR, html with 422 EVIDENCE_UNSUPPORTED, and screenshot: true with 400 VALIDATION_ERROR on every engine. See the engine guide for the support table.

page
integer
padrão:1

GOOGLE_SERP, NAVER_SERP and GOOGLE_PLACES. The results page to return, 1-10 (1-5 for GOOGLE_PLACES). Positions count across pages, so page 2 starts at 11 on Google, at 16 on Naver and at 21 on Google Places. GOOGLE_PLACES reads that one page alone and charges 1 credit; send page or limit, not both (422 VALIDATION_ERROR).

Intervalo necessário: 1 <= x <= 10
pages
integer
padrão:1

GOOGLE_NEWS and GOOGLE_SERP. GOOGLE_NEWS: News pages to read, 1-10, 10 articles each. GOOGLE_SERP: results pages to read starting at page, 1-50, all on one session and one IP address; not with include.rawResponse (422 VALIDATION_ERROR). Reading stops at Google's last page. Priced per page read; the task holds credits for every page asked for when it starts and is charged for the pages it read.

Intervalo necessário: 1 <= x <= 50
Exemplo:

2

device
enum<string>
padrão:desktop

GOOGLE_SERP and GOOGLE_NEWS. The page Google serves: desktop, Chrome on Android as mobile or android, where mobile is an alias for android, or Chrome on an Android tablet as tablet (GOOGLE_SERP only). A mobile or tablet page returns the same fields in Google's layout for that device and costs the same credits. ios is rejected with 422 VALIDATION_ERROR, because the Google lane runs Chrome, not Safari.

Opções disponíveis:
desktop,
mobile,
android,
tablet
Exemplo:

"mobile"

hl
string

GOOGLE, AIMODE, GOOGLE_SERP and GOOGLE_NEWS. The interface language of the results page, as Google's own hl (en, de, pt-BR). It overrides the language derived from country, so the market and the interface language can differ. Case is normalized, pt-br reads as pt-BR. Values that are not a language code are rejected with 422 VALIDATION_ERROR.

Maximum string length: 35
Exemplo:

"de"

state
string

CHATGPT, BING_AIMODE, GEMINI, GOOGLE, AIMODE and GOOGLE_SERP. A US state as its two-letter code, case-insensitive; GET /v1/states?country=US lists them. CHATGPT and BING_AIMODE ask from a residential connection in the state, GEMINI asks as a device in its largest city, and the Google engines search with the state as Google's location, so local recommendations come from that state. Sent with country US or without country; another country, a code that is not a state, or state together with uule is rejected with 400 VALIDATION_ERROR, and other engines reject it with 422 LOCATION_UNSUPPORTED. Adds 1 credit to the task. The response echoes it as state.

Pattern: ^[A-Za-z]{2}$
Exemplo:

"TX"

location
object

CHATGPT, GEMINI, GOOGLE, AIMODE and GOOGLE_SERP. Answers as a user at this point would see it, in WGS84 decimal degrees: latitude -90 to 90, longitude -180 to 180, these two keys only. Sent together with uule, it is rejected with 400 VALIDATION_ERROR, and other engines reject it with 422 LOCATION_UNSUPPORTED. Adds 1 credit to the task. The response echoes it as location.

Exemplo:
uule
string

GOOGLE, AIMODE, GOOGLE_SERP and GOOGLE_PLACES. Google's own location parameter in its w+ form, exactly as it goes into a Google search URL, for example w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM for Austin, Texas. It is sent to Google unchanged, so the results page, AI Overview and AI Mode answer for that place. Use it instead of state when your system already stores UULEs; sending both is rejected with 400 VALIDATION_ERROR, as is a value that is not a w+ UULE (for example the percent-encoded w%2B…). Other engines reject it with 422 LOCATION_UNSUPPORTED. GOOGLE_PLACES takes no state and rejects uule together with city with 422 VALIDATION_ERROR. The response echoes it as uule.

Pattern: ^w\+[A-Za-z0-9+/_-]{4,600}={0,2}$
Exemplo:

"w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM"

aiOverview
boolean

GOOGLE_SERP only. true answers with the search's AI Overview alone instead of its results: aiOverview as { text, markdown?, sources[] }, or null when Google shows none. It is read from the market's desktop first page, so page other than 1, device other than desktop, location, state, uule and include.rawResponse are rejected with it (422 VALIDATION_ERROR). Costs 1 credit, with or without an overview.

render
boolean

WEB_SCRAPE: read the page in a browser after its script ran, even when a plain request already gets it. GOOGLE_SERP with include.html: true: html is the results page as Chrome shows it once its scripts ran, with the AI Overview loaded, opened by its Show more on desktop and left as first shown on a phone or tablet, read through an exit in a country where Google shows AI Overviews; any device and page. A phone or tablet search with include.html: true is rendered this way unless render is false. On desktop it costs 1 credit on top of the search price, charged only when html.status is ok, and adds about 5 to 10 seconds. Without include.html: true, or as a value other than a boolean, it is rejected with 422 VALIDATION_ERROR.

idempotencyKey
string

Optional. A repeat of the key within at least 30 days answers with the task that holds it, so a caller that hung up can ask again.

priority
integer
padrão:1

Compatibility field; does not guarantee execution order. Values outside 1–10 are clamped, not rejected.

Intervalo necessário: 1 <= x <= 10
webhook
object

Optional. Omit to collect the result by polling instead.

Resposta

The task ended: the body GET /v1/async/task/{id} returns, with the result in response or the reason in error.

success
boolean
obrigatório
task
object
obrigatório
credits
object
obrigatório

Credits, with up to two decimals (for example 1.25). The submit response always shows 0: nothing is charged yet, and the task's price is held from your balance when it starts. Polling shows 0 until the task is terminal, then the settled charge: the task's price for COMPLETED, 0 for FAILED. A task webhook reports the same charge in creditsCharged; on a FAILED task it reports the task's price in creditsToCharge and 0 in creditsCharged. CITATION_ANALYSIS, GOOGLE_PLACES and GOOGLE_NEWS are charged by usage, up to the hold placed when the task starts.

response
object

The engine-specific result. Absent until the task is terminal. See the Engines guide for per-engine shapes. NAVER_AI_TAB preserves the original text, markdown, sources and cards when Naver returns HTTP success, a valid stream ending in done, and nonempty answer text with unknown_error. It includes upstreamError and returns immediately without retrying or rephrasing, even with retryQuery. COMPLETED means collection finished; the answer may still be incomplete. Empty, cut-off or malformed streams still fail. Policy refusals complete with a policy_declined notice. rawContent is returned only with include.rawResponse. With include.citationAnalysis, answer results also carry citationAnalysis (see Include). CITATION_ANALYSIS returns CitationAnalysisResult; see the Citation Analysis guide. PROMPT_RESEARCH returns PromptResearchResult; see the Prompt Research guide. GEO_SCORE returns GeoScoreResult; see the GEO Score guide. Answer engines with include.analysis add analysis (AnswerAnalysis).

error
string

Present when task.status is FAILED. A plain string, not the {code, message, timestamp} object used by request-level errors.