Google search results
Title, URL, snippet and position. The full tier adds related searches, People Also Ask, videos and products.
Price
- Price
- $0.0007 per call; full tier $0.00115
- Nothing found
- Not charged when nothing is found
- No data fetched
- Not charged
Each call holds this price, charges it only when data is returned and releases it otherwise. This rule is for data endpoints only: when collecting AI answers, a no-answer or refused result is still a result and is charged.
Parameters
querystringRequired
The search query. Up to 500 characters.
countryUS, default US
Two-letter country code. Only tested countries are available.
tierbasic or full, default basic
Basic or full tier. The full tier returns more fields at a different price.
Headers
AuthorizationRequired
Bearer followed by your API key.
Idempotency-KeyRecommended
An ID you choose, up to 255 characters with no spaces. After a network error, resend with the same value and nothing is run or charged twice. It is remembered for 24 hours. The same value with different parameters returns idempotency_conflict.
X-Max-PriceOptional
The most you are willing to spend in US dollars, such as 0.50. If the request could cost more, it is refused: nothing runs and nothing is charged.
X-SourceOptional
Your own label, such as the product the call came from, up to 100 characters. Usage can be broken down by it.
X-End-UserOptional
Your own label for the end user this call serves, up to 100 characters. Do not put names, emails or other personal data in it.
Response
A successful call returns HTTP 200 with the data in data.item, one SearchPage object. Every field is always present: [] means none this time and null means not available or unknown. What the call cost is in meta.billing.
| Field | Type | Description |
|---|---|---|
results | SearchResult[] | Organic results |
features | Feature[] | The search engine’s own blocks, which take no organic position |
ads | Ad[] | null | Ads |
related_searches | string[] | null | Related searches |
people_also_ask | string[] | null | People also ask |
videos | Video[] | null | Video results |
products | Product[] | null | Product results |
ai_summary | { text: string, citations: Citation[] } | null | The AI summary on the page, with its sources |
Nested objects
SearchResult6 fields
| Field | Type | Description |
|---|---|---|
position | integer | Position in the list, starting at 1 |
title | string | null | Title |
url | string | URL |
domain | string | Domain |
snippet | string | null | Snippet |
published_at | string | null | When it was published; null if the platform does not say |
Feature3 fields
| Field | Type | Description |
|---|---|---|
type | "engine_block" | Type of block |
title | string | null | Title |
url | string | null | URL |
Ad8 fields
| Field | Type | Description |
|---|---|---|
position | integer | null | Position in the list, starting at 1 |
title | string | null | Title |
url | string | null | URL |
advertiser | string | null | Advertiser |
text | string | null | Ad copy |
block | string | null | Where the ad appears |
sitelinks | (string | null)[] | null | Sitelinks |
badges | (string | null)[] | null | Badges |
Video9 fields
| Field | Type | Description |
|---|---|---|
position | integer | Position in the list, starting at 1 |
title | string | null | Title |
url | string | null | URL |
platform | string | null | The platform it is on |
author | string | null | Author |
duration_seconds | integer | null | Length in seconds |
video_id | string | null | Video ID |
views | integer | null | Views |
published_at | string | null | When it was published; null if the platform does not say |
Product21 fields
| Field | Type | Description |
|---|---|---|
position | integer | Position in the list, starting at 1 |
title | string | null | Title |
url | string | null | URL |
price | number | null | The price, given only when it can be read exactly; masked prices and ranges are null |
currency | string | null | Currency |
price_text | string | null | The price exactly as the platform shows it |
original_price | number | null | List price |
seller | string | null | Seller |
platform | string | null | The platform it is on |
rating | number | null | Rating |
review_count | integer | null | Number of reviews |
product_id | string | null | Product ID |
sku_id | string | null | SKU ID |
brand | string | null | Brand |
image_url | string | null | Product image |
label | string | null | A recommendation or promotion label from the platform |
availability | string | null | Availability |
delivery | string | null | Delivery note |
discount | string | null | Discount note |
offers | Offer[] | null | Offers from individual sellers |
sponsored | boolean | null | Whether it is sponsored |
Offer7 fields
| Field | Type | Description |
|---|---|---|
seller | string | null | Seller |
price | number | null | Price |
currency | string | null | Currency |
price_text | string | null | The price exactly as the platform shows it |
url | string | null | URL |
available | boolean | null | Whether it is in stock |
label | string | null | A recommendation or promotion label from the platform |
Citation12 fields
| Field | Type | Description |
|---|---|---|
position | integer | Position in the list, starting at 1 |
url | string | The real URL, with redirect links resolved |
domain | string | Domain |
title | string | null | Title |
snippet | string | null | Snippet |
site_name | string | null | Site name |
published_at | string | null | When it was published; null if the platform does not say |
author | string | null | Author |
platform | string | null | The platform the source is on, such as a blogging site |
quotes | string[] | null | The passages of the source that were used |
anchors | Anchor[] | null | Which parts of the answer this source supports |
cited | boolean | null | true: used in the answer. false: only found while searching. null: cannot be told |
Anchor2 fields
| Field | Type | Description |
|---|---|---|
text | string | null | The part of the answer this source supports, not text from the source |
offset | integer | null | Character offset in markdown |
meta7 fields
| Field | Type | Description |
|---|---|---|
capability | string | Endpoint ID |
result_status | "complete" | "partial" | "empty" | complete: everything. partial: only part of it. empty: nothing found |
fetched_at | string | When the data was fetched |
cached | boolean | Whether the result came from a cache. Always false at present |
replayed | boolean | Whether this is the earlier result returned again for the same Idempotency-Key |
unavailable | string[] | Fields that could not be provided this time |
billing | { amount: string, currency: "USD", balance_after: string | null } | What this call was charged and the balance afterwards |
Common errors
An error means nothing was charged, except settlement_unknown: it means billing is not known yet, so ask again with the same Idempotency-Key. See every error code.
| Error | HTTP | Meaning | Charged? |
|---|---|---|---|
invalid_params | 400 | A parameter is invalid | Not charged |
max_price_exceeded | 400 | The most this could cost is above the limit you set | Not charged |
insufficient_balance | 402 | The balance is too low | Not charged |
key_budget_exceeded | 402 | This key's spending limit does not cover it | Not charged |
idempotency_conflict | 409 | This Idempotency-Key was used for a different request | Not charged |
upstream_failed | 502 | No result came back this time and nothing was charged; retry shortly | Not charged |
timeout | 504 | The data did not arrive in time; nothing was charged | Not charged |
upstream_busy | 503 | Busy now; retry shortly | Not charged |
call_in_progress | 409 | The call under this Idempotency-Key is still running; ask again with the same key shortly | Not charged |
settlement_unknown | 500 | Whether this was charged is not known yet; ask again with the same Idempotency-Key | Unknown yet |
unauthorized | 401 | No credential was sent, or it is invalid, disabled or expired | Not charged |
rate_limited | 429 | Too many requests, or too many calls in progress | Not charged |