Every operation of the Web API with its request and response schemas, generated from the OpenAPI file (OpenAPI 3.1). Planned operations are listed with their state; until they ship they return 501 api_not_implemented.
| |
|---|
| Base URL | https://api.websearch.fast/v1/web |
| Also served at | https://relay.fast/v1/web |
| Authentication | Authorization: Bearer $WEBSEARCH_API_KEY |
| Version | 1.0.0-draft |
Search
Pages
Places
Jobs
Batch
Account
MCP
Compatibility
The compatibility paths are listed with their mapping in the migration guide. Their schemas are in the OpenAPI file.
Schemas
ErrorBody
| Name | Type | Description |
|---|
coderequired | string | Stable machine-readable code. Branch on it after the HTTP status. |
messagerequired | string | Text for people; can change. |
typerequired | string | One of invalid_request_error, authentication_error, permission_error, rate_limit_error, server_error. |
param | string or null | Field, header or query parameter at fault. |
doc_url | string | Link to the code's row in the reference. Omitted until the reference is published. |
detail | object | Code-specific facts.Show fields| Name | Type | Description |
|---|
http_status | integer | | retry_after_seconds | integer | | limit | integer | |
|
ErrorResponse
| Name | Type | Description |
|---|
errorrequired | [ErrorBody](#schema-ErrorBody) | |
request_idrequired | string | |
CompatErrorResponse
Error body on compatibility paths.
| Name | Type | Description |
|---|
messagerequired | string | |
statusCoderequired | integer | |
errorrequired | [ErrorBody](#schema-ErrorBody) | |
request_idrequired | string | |
Warning
| Name | Type | Description |
|---|
coderequired | string | For example no_results, content_partial, answer_unavailable, partial, all_failed, reach_reduced. |
message | string | |
param | string | |
UsageItem
| Name | Type | Description |
|---|
unitrequired | string | Billable unit, for example search_web, content_page, fetch_page, geocode, autocomplete, knowledge. |
countrequired | integer | |
Usage
| Name | Type | Description |
|---|
chargedrequired | boolean | |
creditsrequired | number | Credits charged for this call; 0 when not charged. |
cost_usdrequired | number | USD charged. |
itemsrequired | array of [UsageItem](#schema-UsageItem) | |
JobUsage
| Name | Type | Description |
|---|
creditsrequired | number | |
cost_usdrequired | number | |
reserved_usd | number | Amount reserved from the balance for the job and not yet charged or returned. |
itemsrequired | array of [UsageItem](#schema-UsageItem) | |
Cache
| Name | Type | Description |
|---|
hitrequired | boolean | The response, or every page in it, came from a stored copy. |
data_age_secondsrequired | integer | Age of the oldest part of the response. |
fetched_atrequired | integer | Unix seconds when the oldest part was read. |
Origin
Our neutral label of how the result reached you. New values can appear.
Our neutral label of how the result reached you. New values can appear. One of index, live, open_data.
PageContent
Cleaned page text added by the content option.
| Name | Type | Description |
|---|
statusrequired | string | One of ok, failed. |
error_code | string | One of fetch_failed, site_refused, unsupported_content, page_too_large, timeout. |
format | string | One of markdown, text. |
text | string | |
chars | integer | |
truncated | boolean | |
title | string | |
fetched_at | integer | Unix seconds when the page was read. |
Sitelink
| Name | Type | Description |
|---|
titlerequired | string | |
urlrequired | string | |
ProxiedImage
| Name | Type | Description |
|---|
image_url | string | Served by our image proxy or by the destination site. |
thumbnail_url | string | |
Price
| Name | Type | Description |
|---|
amount | number | |
currency | string | ISO 4217. |
textrequired | string | |
OpeningHours
| Name | Type | Description |
|---|
open_now | boolean | |
text | array of string | |
weekly | array of object | Show fields| Name | Type | Description |
|---|
dayrequired | integer | 1 Monday to 7 Sunday. 1 to 7. | openrequired | string | | closerequired | string | |
|
WebResult
Result of type web.
| Name | Type | Description |
|---|
positionrequired | integer | 1-based rank across pages. At least 1. |
titlerequired | string | |
urlrequired | string | Real destination URL, never a redirect link. |
domainrequired | string | Host of url, lowercase, without www. |
snippet | string | At most 400 characters. |
published_at | string | ISO 8601 UTC, when known. |
site_name | string | The publisher's own name, when known. |
originrequired | string | Our neutral label of how the result reached you. New values can appear. One of index, live, open_data. |
sitelinks | array of [Sitelink](#schema-Sitelink) | At most 8 items. |
attributes | object | Facts shown with the result. |
content | [PageContent](#schema-PageContent) | Cleaned page text added by the content option. |
NewsResult
Result of type news (planned).
| Name | Type | Description |
|---|
positionrequired | integer | 1-based rank across pages. At least 1. |
titlerequired | string | |
urlrequired | string | Real destination URL, never a redirect link. |
domainrequired | string | Host of url, lowercase, without www. |
snippet | string | At most 400 characters. |
published_at | string | ISO 8601 UTC, when known. |
site_name | string | The publisher's own name, when known. |
originrequired | string | Our neutral label of how the result reached you. New values can appear. One of index, live, open_data. |
image_url | string | |
authors | array of string | |
content | [PageContent](#schema-PageContent) | Cleaned page text added by the content option. |
ImageResult
Result of type images (planned). url is the page that contains the image.
| Name | Type | Description |
|---|
positionrequired | integer | 1-based rank across pages. At least 1. |
titlerequired | string | |
urlrequired | string | Real destination URL, never a redirect link. |
domainrequired | string | Host of url, lowercase, without www. |
snippet | string | At most 400 characters. |
published_at | string | ISO 8601 UTC, when known. |
site_name | string | The publisher's own name, when known. |
originrequired | string | Our neutral label of how the result reached you. New values can appear. One of index, live, open_data. |
image_url | string | The image file on its own site. |
image_width | integer | |
image_height | integer | |
thumbnail_url | string | Proxied. |
thumbnail_width | integer | |
thumbnail_height | integer | |
VideoResult
Result of type videos (planned).
| Name | Type | Description |
|---|
positionrequired | integer | 1-based rank across pages. At least 1. |
titlerequired | string | |
urlrequired | string | Real destination URL, never a redirect link. |
domainrequired | string | Host of url, lowercase, without www. |
snippet | string | At most 400 characters. |
published_at | string | ISO 8601 UTC, when known. |
site_name | string | The publisher's own name, when known. |
originrequired | string | Our neutral label of how the result reached you. New values can appear. One of index, live, open_data. |
thumbnail_url | string | |
duration_seconds | integer | |
channel | string | |
PlaceResult
Result of type places (planned).
| Name | Type | Description |
|---|
positionrequired | integer | At least 1. |
titlerequired | string | |
originrequired | string | Our neutral label of how the result reached you. New values can appear. One of index, live, open_data. |
place_idrequired | string | Our opaque id, pl_... Starts with pl_. |
url | string | The place's own website, when known; never a map service page. |
domain | string | |
snippet | string | |
address | string | |
locationrequired | object | Show fields| Name | Type | Description |
|---|
latrequired | number | -90 to 90. | lonrequired | number | -180 to 180. |
|
categories | array of string | |
rating | number | 0 to 5. |
rating_count | integer | |
price_level | integer | 1 to 4. |
phone | string | |
website | string | |
opening_hours | [OpeningHours](#schema-OpeningHours) | |
description | string | |
thumbnail_url | string | |
distance_m | number | |
ShoppingResult
Result of type shopping (planned).
| Name | Type | Description |
|---|
positionrequired | integer | 1-based rank across pages. At least 1. |
titlerequired | string | |
urlrequired | string | Real destination URL, never a redirect link. |
domainrequired | string | Host of url, lowercase, without www. |
snippet | string | At most 400 characters. |
published_at | string | ISO 8601 UTC, when known. |
site_name | string | The publisher's own name, when known. |
originrequired | string | Our neutral label of how the result reached you. New values can appear. One of index, live, open_data. |
price | [Price](#schema-Price) | |
merchant | string | |
delivery | string | |
rating | number | |
rating_count | integer | |
offers_count | integer | |
product_id | string | |
image_url | string | |
ScholarResult
Result of type scholar (planned).
| Name | Type | Description |
|---|
positionrequired | integer | 1-based rank across pages. At least 1. |
titlerequired | string | |
urlrequired | string | Real destination URL, never a redirect link. |
domainrequired | string | Host of url, lowercase, without www. |
snippet | string | At most 400 characters. |
published_at | string | ISO 8601 UTC, when known. |
site_name | string | The publisher's own name, when known. |
originrequired | string | Our neutral label of how the result reached you. New values can appear. One of index, live, open_data. |
authors | array of string | |
venue | string | |
year | integer | |
cited_by_count | integer | |
doi | string | |
pdf_url | string | Open-access copy, when one exists. |
abstract | string | |
paper_id | string | |
publication_info | string | |
PatentResult
Result of type patents (planned). url is the patent office page.
| Name | Type | Description |
|---|
positionrequired | integer | 1-based rank across pages. At least 1. |
titlerequired | string | |
urlrequired | string | Real destination URL, never a redirect link. |
domainrequired | string | Host of url, lowercase, without www. |
snippet | string | At most 400 characters. |
published_at | string | ISO 8601 UTC, when known. |
site_name | string | The publisher's own name, when known. |
originrequired | string | Our neutral label of how the result reached you. New values can appear. One of index, live, open_data. |
publication_number | string | |
priority_date | string | Date YYYY-MM-DD (UTC). |
filing_date | string | Date YYYY-MM-DD (UTC). |
grant_date | string | Date YYYY-MM-DD (UTC). |
publication_date | string | Date YYYY-MM-DD (UTC). |
inventors | array of string | |
assignees | array of string | |
language | string | |
pdf_url | string | |
thumbnail_url | string | |
figures | array of [ProxiedImage](#schema-ProxiedImage) | |
AnswerBox
| Name | Type | Description |
|---|
title | string | |
answerrequired | string | |
snippet | string | |
url | string | |
KnowledgePanel
An encyclopedia card from open data. In a search it comes only on page 1 of a search with results and is included in the search price.
| Name | Type | Description |
|---|
titlerequired | string | |
type | string | Short label, for example Physicist or City. |
description | string | A short text from the encyclopedia article. |
description_url | string | The article the description comes from. |
description_site_name | string | Name of the encyclopedia, with description_url. |
website | string | Official website of the entity. |
attributes | object | Key facts as name: value, in a stable order. |
attributionrequired | array of [DataAttribution](#schema-DataAttribution) | The open data projects the data comes from, with their licences. Show it with the data. |
RelatedQuestion
| Name | Type | Description |
|---|
questionrequired | string | |
snippet | string | |
title | string | |
url | string | |
RelatedSearch
| Name | Type | Description |
|---|
queryrequired | string | |
Citation
| Name | Type | Description |
|---|
indexrequired | integer | At least 1. |
urlrequired | string | |
title | string | |
site_name | string | |
published_at | string | |
Answer
Planned.
| Name | Type | Description |
|---|
statusrequired | string | One of ok, unavailable. |
text | string | Markdown with [n] markers that index citations. |
data | object | Structured answer when answer.schema was sent. |
citations | array of [Citation](#schema-Citation) | |
language | string | |
SearchType
The vertical. Types not shipped yet return 501 api_not_implemented.
The vertical. Types not shipped yet return 501 api_not_implemented. One of web, news, images, videos, places, shopping, scholar, patents.
JsonSchemaObject
JSON Schema 2020-12 subset; root must be an object; at most 16 KB, depth 5, 200 properties.
Type object.
ContentOption
Cleaned text of the top pages.
| Name | Type | Description |
|---|
pages | integer | At most num. On a page above 1, content needs a num that is a multiple of 10, otherwise 400 with param content. 1 to 10. Default 3. |
format | string | One of markdown, text. Default markdown. |
max_chars_per_page | integer | 500 to 50,000. Default 8000. |
mode | string | One of full, relevant. Default full. |
AnswerOption
Planned. Short answer with numbered citations.
| Name | Type | Description |
|---|
max_words | integer | 20 to 600. Default 120. |
language | string | BCP 47 language tag. At most 12 characters. |
schema | [JsonSchemaObject](#schema-JsonSchemaObject) | JSON Schema 2020-12 subset; root must be an object; at most 16 KB, depth 5, 200 properties. |
pages | integer | 1 to 10. Default 5. |
SearchRequest
| Name | Type | Description |
|---|
qrequired | string | The query. Operators: site:, -site:, quotes, -term, OR, before:, after:; filetype:, intitle:, inurl: (planned). 1 to 2048 characters. |
type | string | The vertical. Types not shipped yet return 501 api_not_implemented. One of web, news, images, videos, places, shopping, scholar, patents. Default web. |
country | string | ISO 3166-1 alpha-2 country code, case-insensitive. |
language | string | BCP 47 language tag. At most 12 characters. |
location | string | Place to rank for, as text. 2 to 256 characters. |
near | object | places only; exclusive with location.Show fields| Name | Type | Description |
|---|
latrequired | number | -90 to 90. | lonrequired | number | -180 to 180. | radius_m | integer | 100 to 50,000. Default 5000. |
|
freshness | string | Only results published within this period. Until the hourly filter ships, hour returns 501 api_not_implemented. One of hour, day, week, month, year. |
date_from | string | Date YYYY-MM-DD (UTC). |
date_to | string | Date YYYY-MM-DD (UTC). |
page | integer | Results are read in blocks of 10 to 100 that start on a multiple of the block size; a page and num pair that does not fit in one block returns 400 with param num. 1 to 10. Default 1. |
num | integer | Default 10 (images and shopping 20). page * num at most 200. 1 to 100. |
safe | string | One of off, moderate, strict. Default moderate. |
include_domains | array of string | Host names; subdomains included. At most 20 items. |
exclude_domains | array of string | At most 50 items. |
content | [ContentOption](#schema-ContentOption) | Cleaned text of the top pages. |
answer | boolean or [AnswerOption](#schema-AnswerOption) | Planned. True is the same as {}. |
max_age | integer | Accept a stored copy up to this age in seconds. 0 to 2,592,000. |
no_cache | boolean | Never answer from a stored copy. Default false. |
timeout_ms | integer | Our deadline for this call; default and maximum 20000, or 25000 with content. A value outside 1000 to that maximum is refused with 400. 1000 to 25,000. |
SearchResult
Item shape follows input.type.
| Name | Type | Description |
|---|
positionrequired | integer | 1-based rank across pages. At least 1. |
titlerequired | string | |
urlrequired | string | Real destination URL, never a redirect link. |
domainrequired | string | Host of url, lowercase, without www. |
snippet | string | At most 400 characters. |
published_at | string | ISO 8601 UTC, when known. |
site_name | string | The publisher's own name, when known. |
originrequired | string | Our neutral label of how the result reached you. New values can appear. One of index, live, open_data. |
sitelinks | array of [Sitelink](#schema-Sitelink) | At most 8 items. |
attributes | object | Facts shown with the result. |
content | [PageContent](#schema-PageContent) | Cleaned page text added by the content option. |
SearchResponse
| Name | Type | Description |
|---|
objectrequired | string | Always web.search. |
request_idrequired | string | Same as the X-Request-Id header. |
createdrequired | integer | Unix seconds (UTC). |
inputrequired | object | The parameters as applied, defaults filled in. |
usagerequired | [Usage](#schema-Usage) | |
cache | [Cache](#schema-Cache) | |
warnings | array of [Warning](#schema-Warning) | |
resultsrequired | array of [SearchResult](#schema-SearchResult) | |
has_morerequired | boolean | |
answer_box | [AnswerBox](#schema-AnswerBox) | |
knowledge_panel | [KnowledgePanel](#schema-KnowledgePanel) | An encyclopedia card from open data. In a search it comes only on page 1 of a search with results and is included in the search price. |
related_questions | array of [RelatedQuestion](#schema-RelatedQuestion) | |
related_searches | array of [RelatedSearch](#schema-RelatedSearch) | |
top_stories | array of [NewsResult](#schema-NewsResult) | At most 10 items. |
answer | [Answer](#schema-Answer) | Planned. |
AutocompleteRequest
| Name | Type | Description |
|---|
qrequired | string | The prefix, at most 200 characters. Leading spaces are removed; a trailing space asks for the next word. 1 to 256 characters. |
country | string | ISO 3166-1 alpha-2 country code, case-insensitive. |
language | string | BCP 47 language tag. Detected from q when absent. At most 12 characters. |
num | integer | 1 to 20. Default 10. |
timeout_ms | integer | Upper bound for the call. 500 to 5000. Default 5000. |
AutocompleteResponse
| Name | Type | Description |
|---|
objectrequired | string | Always web.autocomplete. |
request_idrequired | string | Same as the X-Request-Id header. |
createdrequired | integer | Unix seconds (UTC). |
inputrequired | object | The parameters as applied, defaults filled in. |
usagerequired | [Usage](#schema-Usage) | |
warnings | array of [Warning](#schema-Warning) | |
suggestionsrequired | array of object | Show fields| Name | Type | Description |
|---|
valuerequired | string | |
|
language | string | Language of the suggestions. |
attribution | array of [DataAttribution](#schema-DataAttribution) | The open data projects the data comes from, with their licences. Show it with the data. |
FetchRequest
| Name | Type | Description |
|---|
url | string | Public http(s) URL, at most 2048 bytes. At most 2048 characters. |
urls | array of string | 1 to 20 items. |
format | string | html returns 501 api_not_implemented until it ships. One of markdown, text, html. Default markdown. |
max_chars | integer | 1000 to 500,000. Default 50000. |
mode | string | full returns 501 api_not_implemented until it ships. One of main, full. Default main. |
include_links | boolean | Default false. |
include_images | boolean | Default false. |
include_metadata | boolean | Default true. |
pdf | object | Show fields| Name | Type | Description |
|---|
max_pages | integer | 1 to 500. Default 100. |
|
query | string | Return relevant_passages that match this text. At most 512 characters. |
render | boolean | Planned; true returns 501 until it ships. Default false. |
max_age | integer | Accept a stored copy up to this age in seconds. 0 to 2,592,000. |
no_cache | boolean | Never answer from a stored copy. Default false. |
timeout_ms | integer | 2000 to 35,000. |
PageMetadata
| Name | Type | Description |
|---|
description | string | |
author | string | |
site_name | string | |
canonical_url | string | |
image_url | string | |
keywords | array of string | |
meta | object | Meta name and property tags, at most 100. |
json_ld | array of object | At most 20 items. |
FetchPage
| Name | Type | Description |
|---|
requested_urlrequired | string | |
url | string | Final URL after redirects. For now the requested URL, because the reader does not report the final one yet. |
statusrequired | string | One of ok, failed. |
error | object | Show fields| Name | Type | Description |
|---|
coderequired | string | | messagerequired | string | |
|
http_status | integer | |
content_type | string | |
title | string | |
content | string | |
format | string | One of markdown, text, html. |
chars | integer | |
truncated | boolean | |
extraction | string | Neutral label of how the text was taken. New values can appear. One of article, full_page, document, feed, plain, structured. |
language | string | |
published_at | string | |
metadata | [PageMetadata](#schema-PageMetadata) | |
links | array of object | At most 1000 items.Show fields| Name | Type | Description |
|---|
urlrequired | string | | text | string | | rel | string | |
|
images | array of object | At most 200 items.Show fields| Name | Type | Description |
|---|
urlrequired | string | | alt | string | | width | integer | | height | integer | |
|
pdf_pages | integer | |
relevant_passages | array of string | |
fetched_at | integer | |
FetchResponse
| Name | Type | Description |
|---|
objectrequired | string | Always web.fetch. |
request_idrequired | string | Same as the X-Request-Id header. |
createdrequired | integer | Unix seconds (UTC). |
inputrequired | object | The parameters as applied, defaults filled in. |
usagerequired | [Usage](#schema-Usage) | |
cache | [Cache](#schema-Cache) | |
warnings | array of [Warning](#schema-Warning) | |
page | [FetchPage](#schema-FetchPage) | |
pages | array of [FetchPage](#schema-FetchPage) | |
PlaceDetailsRequest
| Name | Type | Description |
|---|
place_idrequired | string | At most 128 characters. Starts with pl_. |
language | string | BCP 47 language tag. At most 12 characters. |
fields | array of string | One of basic, contact, hours, rating, attributes, photos. |
AddressComponents
| Name | Type | Description |
|---|
house_number | string | |
street | string | |
district | string | |
city | string | |
region | string | |
postal_code | string | |
country | string | |
country_code | string | |
Place
| Name | Type | Description |
|---|
positionrequired | integer | At least 1. |
titlerequired | string | |
originrequired | string | Our neutral label of how the result reached you. New values can appear. One of index, live, open_data. |
place_idrequired | string | Our opaque id, pl_... Starts with pl_. |
url | string | The place's own website, when known; never a map service page. |
domain | string | |
snippet | string | |
address | string | |
locationrequired | object | Show fields| Name | Type | Description |
|---|
latrequired | number | -90 to 90. | lonrequired | number | -180 to 180. |
|
categories | array of string | |
rating | number | 0 to 5. |
rating_count | integer | |
price_level | integer | 1 to 4. |
phone | string | |
website | string | |
opening_hours | [OpeningHours](#schema-OpeningHours) | |
description | string | |
thumbnail_url | string | |
distance_m | number | |
address_components | [AddressComponents](#schema-AddressComponents) | |
timezone | string | IANA time zone. |
attributes | object | |
photos | array of object | Show fields| Name | Type | Description |
|---|
urlrequired | string | | width | integer | | height | integer | |
|
updated_at | integer | |
PlaceDetailsResponse
| Name | Type | Description |
|---|
objectrequired | string | Always web.place. |
request_idrequired | string | Same as the X-Request-Id header. |
createdrequired | integer | Unix seconds (UTC). |
inputrequired | object | The parameters as applied, defaults filled in. |
usagerequired | [Usage](#schema-Usage) | |
cache | [Cache](#schema-Cache) | |
warnings | array of [Warning](#schema-Warning) | |
placerequired | [Place](#schema-Place) | |
PlaceReviewsRequest
| Name | Type | Description |
|---|
place_idrequired | string | At most 128 characters. Starts with pl_. |
sort | string | One of relevant, newest, highest, lowest. Default relevant. |
topic | string | |
language | string | BCP 47 language tag. At most 12 characters. |
num | integer | 1 to 20. Default 10. |
page_token | string | From next_page_token; valid 1 hour. |
Review
| Name | Type | Description |
|---|
review_id | string | |
ratingrequired | number | 0 to 5. |
text | string | |
published_at | string | |
language | string | |
author | object | Show fields| Name | Type | Description |
|---|
name | string | Public display name only. |
|
likes | integer | |
owner_response | object | Show fields| Name | Type | Description |
|---|
text | string | | published_at | string | |
|
photos | array of object | Show fields| Name | Type | Description |
|---|
urlrequired | string | |
|
PlaceReviewsResponse
| Name | Type | Description |
|---|
objectrequired | string | Always web.place_reviews. |
request_idrequired | string | Same as the X-Request-Id header. |
createdrequired | integer | Unix seconds (UTC). |
inputrequired | object | The parameters as applied, defaults filled in. |
usagerequired | [Usage](#schema-Usage) | |
cache | [Cache](#schema-Cache) | |
warnings | array of [Warning](#schema-Warning) | |
reviewsrequired | array of [Review](#schema-Review) | |
topics | array of object | Show fields| Name | Type | Description |
|---|
idrequired | string | | labelrequired | string | | count | integer | |
|
rating | number | |
rating_count | integer | |
next_page_token | string | |
GeocodeRequest
| Name | Type | Description |
|---|
q | string | 2 to 512 characters. |
address | object | Show fields| Name | Type | Description |
|---|
street | string | At most 128 characters. | house_number | string | At most 128 characters. | city | string | At most 128 characters. | district | string | At most 128 characters. | region | string | At most 128 characters. | postal_code | string | At most 128 characters. | country | string | At most 128 characters. |
|
country | string or array of string | |
near | object | Show fields| Name | Type | Description |
|---|
latrequired | number | -90 to 90. | lonrequired | number | -180 to 180. |
|
language | string | BCP 47 language tag. At most 12 characters. |
limit | integer | 1 to 20. Default 5. |
ReverseGeocodeRequest
| Name | Type | Description |
|---|
latrequired | number | -90 to 90. |
lonrequired | number | -180 to 180. |
level | string | One of address, street, district, city, region, country. Default address. |
language | string | BCP 47 language tag. At most 12 characters. |
limit | integer | 1 to 10. Default 1. |
GeocodeResult
| Name | Type | Description |
|---|
formatted_addressrequired | string | |
name | string | Name of the place when it has one. |
locationrequired | object | Show fields| Name | Type | Description |
|---|
latrequired | number | -90 to 90. | lonrequired | number | -180 to 180. |
|
components | [AddressComponents](#schema-AddressComponents) | |
kindrequired | string | A place of any other kind is not returned. One of address, street, poi, postal_code, district, city, region, country. |
bbox | array of number | [min_lon, min_lat, max_lon, max_lat]. 4 to 4 items. |
place_id | string | Stable id of the map object, when known. |
distance_m | number | reverse-geocode only: metres from the point, rounded to 0.1. |
GeocodeResponse
| Name | Type | Description |
|---|
objectrequired | string | Always web.geocode. |
request_idrequired | string | Same as the X-Request-Id header. |
createdrequired | integer | Unix seconds (UTC). |
inputrequired | object | The parameters as applied, defaults filled in. |
usagerequired | [Usage](#schema-Usage) | |
cache | [Cache](#schema-Cache) | |
warnings | array of [Warning](#schema-Warning) | |
resultsrequired | array of [GeocodeResult](#schema-GeocodeResult) | |
attributionrequired | string | Licence notice of the map data. Always present; show it where the results are shown. |
ReverseGeocodeResponse
| Name | Type | Description |
|---|
objectrequired | string | Always web.reverse_geocode. |
request_idrequired | string | Same as the X-Request-Id header. |
createdrequired | integer | Unix seconds (UTC). |
inputrequired | object | The parameters as applied, defaults filled in. |
usagerequired | [Usage](#schema-Usage) | |
cache | [Cache](#schema-Cache) | |
warnings | array of [Warning](#schema-Warning) | |
resultsrequired | array of [GeocodeResult](#schema-GeocodeResult) | |
attributionrequired | string | Licence notice of the map data. Always present; show it where the results are shown. |
LensRequest
| Name | Type | Description |
|---|
image_urlrequired | string | Public http(s) URL (JPEG, PNG, WebP, GIF, at most 10 MB) or data:image URL (at most 5 MB). |
q | string | At most 256 characters. |
country | string | ISO 3166-1 alpha-2 country code, case-insensitive. |
language | string | BCP 47 language tag. At most 12 characters. |
num | integer | 1 to 50. Default 20. |
LensResult
Lens match (planned).
| Name | Type | Description |
|---|
positionrequired | integer | 1-based rank across pages. At least 1. |
titlerequired | string | |
urlrequired | string | Real destination URL, never a redirect link. |
domainrequired | string | Host of url, lowercase, without www. |
snippet | string | At most 400 characters. |
published_at | string | ISO 8601 UTC, when known. |
site_name | string | The publisher's own name, when known. |
originrequired | string | Our neutral label of how the result reached you. New values can appear. One of index, live, open_data. |
image_url | string | |
thumbnail_url | string | |
price | [Price](#schema-Price) | |
LensResponse
| Name | Type | Description |
|---|
objectrequired | string | Always web.lens. |
request_idrequired | string | Same as the X-Request-Id header. |
createdrequired | integer | Unix seconds (UTC). |
inputrequired | object | The parameters as applied, defaults filled in. |
usagerequired | [Usage](#schema-Usage) | |
cache | [Cache](#schema-Cache) | |
warnings | array of [Warning](#schema-Warning) | |
resultsrequired | array of [LensResult](#schema-LensResult) | |
entities | array of object | Show fields| Name | Type | Description |
|---|
namerequired | string | | kind | string | |
|
JobStatus
One of queued, running, succeeded, failed, cancelled.
StopReason
One of completed, budget, limit, cancelled, deadline, error.
ResearchRequest
| Name | Type | Description |
|---|
queryrequired | string | 1 to 4000 characters. |
instructions | string | At most 8000 characters. |
depth | string | One of quick, standard, deep. Default standard. |
max_searches | integer | 1 to 200. |
max_pages | integer | 1 to 400. |
max_cost_usd | number | Cost ceiling; default and maximum set by price list. Above 0. |
language | string | BCP 47 language tag. At most 12 characters. |
country | string | ISO 3166-1 alpha-2 country code, case-insensitive. |
freshness | string | Only results published within this period. One of hour, day, week, month, year. |
date_from | string | Date YYYY-MM-DD (UTC). |
date_to | string | Date YYYY-MM-DD (UTC). |
include_domains | array of string | Host names; subdomains included. At most 20 items. |
exclude_domains | array of string | At most 50 items. |
output | object | Show fields| Name | Type | Description |
|---|
format | string | One of markdown, json. Default markdown. | schema | [JsonSchemaObject](#schema-JsonSchemaObject) | JSON Schema 2020-12 subset; root must be an object; at most 16 KB, depth 5, 200 properties. | max_words | integer | 100 to 10,000. |
|
webhook_url | string | Public https URL that receives the final job object, signed with webhook_secret. At most 500 characters. |
metadata | object | Your own string values, echoed on the job; at most 4 KB. |
ResearchJob
| Name | Type | Description |
|---|
objectrequired | string | Always web.research. |
idrequired | string | At most 64 characters. Starts with wr_. |
statusrequired | string | One of queued, running, succeeded, failed, cancelled. |
stop_reason | string | One of completed, budget, limit, cancelled, deadline, error. |
created_atrequired | integer | |
started_at | integer | |
completed_at | integer | |
inputrequired | object | |
usagerequired | [JobUsage](#schema-JobUsage) | |
error | object | Show fields| Name | Type | Description |
|---|
coderequired | string | | message | string | |
|
poll_after_ms | integer | |
webhook_secret | string | Only in the create response, when webhook_url was set. |
metadata | object | |
expires_at | integer | |
progress | object | Show fields| Name | Type | Description |
|---|
steps_done | integer | | searches | integer | | pages_read | integer | | sources_kept | integer | |
|
report | object | Show fields| Name | Type | Description |
|---|
formatrequired | string | One of markdown, json. | text | string | | data | object | | sourcesrequired | array of [Citation](#schema-Citation) | |
|
JobEvent
| Name | Type | Description |
|---|
seqrequired | integer | |
eventrequired | string | One of status, search, page, note, report, error, done. |
data | object | |
createdrequired | integer | |
JobEventList
| Name | Type | Description |
|---|
objectrequired | string | Always list. |
datarequired | array of [JobEvent](#schema-JobEvent) | |
has_morerequired | boolean | |
next_cursor | string | |
CrawlRequest
| Name | Type | Description |
|---|
urlrequired | string | Public http(s) URL, at most 2048 bytes. At most 2048 characters. |
limit | integer | 1 to 10,000. Default 100. |
max_depth | integer | 0 to 20. Default 3. |
include_paths | array of string | At most 50 items. |
exclude_paths | array of string | At most 50 items. |
include_subdomains | boolean | Default false. |
use_sitemaps | boolean | Default true. |
ignore_query | boolean | Default true. |
format | string | One of markdown, text, html. Default markdown. |
mode | string | One of main, full. Default main. |
max_chars | integer | 1000 to 500,000. Default 20000. |
include_links | boolean | Default false. |
include_metadata | boolean | Default true. |
max_cost_usd | number | Above 0. |
webhook_url | string | Public https URL that receives the final job object, signed with webhook_secret. At most 500 characters. |
metadata | object | Your own string values, echoed on the job; at most 4 KB. |
CrawlJob
| Name | Type | Description |
|---|
objectrequired | string | Always web.crawl. |
idrequired | string | At most 64 characters. Starts with wc_. |
statusrequired | string | One of queued, running, succeeded, failed, cancelled. |
stop_reason | string | One of completed, budget, limit, cancelled, deadline, error. |
created_atrequired | integer | |
started_at | integer | |
completed_at | integer | |
inputrequired | object | |
usagerequired | [JobUsage](#schema-JobUsage) | |
error | object | Show fields| Name | Type | Description |
|---|
coderequired | string | | message | string | |
|
poll_after_ms | integer | |
webhook_secret | string | Only in the create response, when webhook_url was set. |
metadata | object | |
expires_at | integer | |
progress | object | Show fields| Name | Type | Description |
|---|
discovered | integer | | queued | integer | | read | integer | | failed | integer | | skipped_robots | integer | | skipped_scope | integer | |
|
CrawlPage
| Name | Type | Description |
|---|
requested_urlrequired | string | |
url | string | Final URL after redirects. For now the requested URL, because the reader does not report the final one yet. |
statusrequired | string | One of ok, failed. |
error | object | Show fields| Name | Type | Description |
|---|
coderequired | string | | messagerequired | string | |
|
http_status | integer | |
content_type | string | |
title | string | |
content | string | |
format | string | One of markdown, text, html. |
chars | integer | |
truncated | boolean | |
extraction | string | Neutral label of how the text was taken. New values can appear. One of article, full_page, document, feed, plain, structured. |
language | string | |
published_at | string | |
metadata | [PageMetadata](#schema-PageMetadata) | |
links | array of object | At most 1000 items.Show fields| Name | Type | Description |
|---|
urlrequired | string | | text | string | | rel | string | |
|
images | array of object | At most 200 items.Show fields| Name | Type | Description |
|---|
urlrequired | string | | alt | string | | width | integer | | height | integer | |
|
pdf_pages | integer | |
relevant_passages | array of string | |
fetched_at | integer | |
depth | integer | |
CrawlPageList
| Name | Type | Description |
|---|
objectrequired | string | Always list. |
datarequired | array of [CrawlPage](#schema-CrawlPage) | |
has_morerequired | boolean | |
next_cursor | string | |
MapRequest
| Name | Type | Description |
|---|
urlrequired | string | Public http(s) URL, at most 2048 bytes. At most 2048 characters. |
limit | integer | 1 to 30,000. Default 1000. |
search | string | At most 256 characters. |
include_paths | array of string | At most 50 items. |
exclude_paths | array of string | At most 50 items. |
include_subdomains | boolean | Default false. |
ignore_query | boolean | Default true. |
sitemap_only | boolean | Default false. |
MapResponse
| Name | Type | Description |
|---|
objectrequired | string | Always web.map. |
request_idrequired | string | Same as the X-Request-Id header. |
createdrequired | integer | Unix seconds (UTC). |
inputrequired | object | The parameters as applied, defaults filled in. |
usagerequired | [Usage](#schema-Usage) | |
cache | [Cache](#schema-Cache) | |
warnings | array of [Warning](#schema-Warning) | |
urlsrequired | array of object | Show fields| Name | Type | Description |
|---|
urlrequired | string | | lastmod | string | | title | string | | sourcerequired | string | One of sitemap, links. |
|
countrequired | integer | |
truncatedrequired | boolean | |
BatchItem
| Name | Type | Description |
|---|
custom_id | string | Your id, at most 64 bytes and unique in the batch, otherwise 400. Defaults to the index as a string. At most 64 characters. |
endpointrequired | string | One of search, fetch, autocomplete, knowledge, geocode, reverse-geocode, places/details, extract. |
bodyrequired | object | The request body of that endpoint. |
BatchRequest
| Name | Type | Description |
|---|
requestsrequired | array of [BatchItem](#schema-BatchItem) | sync: 1 to 100 items; async: 1 to 20000. The fetch items of a sync batch name at most 100 URLs in total, otherwise 400. Items for endpoints that have not shipped answer 501 in their own result; mode async answers 501 until S3. 1 to 20,000 items. |
mode | string | One of sync, async. Default sync. |
max_cost_usd | number | Async only; refused with 400 in sync mode. Above 0. |
webhook_url | string | Async only; refused with 400 in sync mode. Public https URL that receives the final job object, signed with webhook_secret. At most 500 characters. |
metadata | object | Async only; refused with 400 in sync mode. Your own string values, echoed on the job; at most 4 KB. |
BatchResult
| Name | Type | Description |
|---|
indexrequired | integer | |
custom_id | string | |
statusrequired | integer | HTTP status the call would have had alone. |
bodyrequired | object | Response or error body of the item. |
BatchResponse
| Name | Type | Description |
|---|
objectrequired | string | Always web.batch. |
request_idrequired | string | Same as the X-Request-Id header. |
createdrequired | integer | Unix seconds (UTC). |
usagerequired | [Usage](#schema-Usage) | |
warnings | array of [Warning](#schema-Warning) | |
resultsrequired | array of [BatchResult](#schema-BatchResult) | |
BatchJob
| Name | Type | Description |
|---|
objectrequired | string | Always web.batch_job. |
idrequired | string | At most 64 characters. Starts with wb_. |
statusrequired | string | One of queued, running, succeeded, failed, cancelled. |
stop_reason | string | One of completed, budget, limit, cancelled, deadline, error. |
created_atrequired | integer | |
started_at | integer | |
completed_at | integer | |
inputrequired | object | |
usagerequired | [JobUsage](#schema-JobUsage) | |
error | object | Show fields| Name | Type | Description |
|---|
coderequired | string | | message | string | |
|
poll_after_ms | integer | |
webhook_secret | string | Only in the create response, when webhook_url was set. |
metadata | object | |
expires_at | integer | |
progress | object | Show fields| Name | Type | Description |
|---|
total | integer | | done | integer | | ok | integer | | failed | integer | |
|
BatchResultList
| Name | Type | Description |
|---|
objectrequired | string | Always list. |
datarequired | array of [BatchResult](#schema-BatchResult) | |
has_morerequired | boolean | |
next_cursor | string | |
UsageRow
| Name | Type | Description |
|---|
day | string | Date YYYY-MM-DD (UTC). |
endpoint | string | |
callsrequired | integer | |
charged_callsrequired | integer | |
creditsrequired | number | |
cost_usdrequired | number | |
UsageReport
| Name | Type | Description |
|---|
objectrequired | string | Always web.usage. |
request_idrequired | string | Same as the X-Request-Id header. |
createdrequired | integer | Unix seconds (UTC). |
fromrequired | string | Date YYYY-MM-DD (UTC). |
torequired | string | Date YYYY-MM-DD (UTC). |
group_by | string | The grouping of data, as requested. One of day, endpoint, day_endpoint. |
totalsrequired | object | Show fields| Name | Type | Description |
|---|
callsrequired | integer | | charged_callsrequired | integer | | creditsrequired | number | | cost_usdrequired | number | |
|
datarequired | array of [UsageRow](#schema-UsageRow) | |
pricing | object | What a paid call costs now. Present only while the site has a valid price; the same for every key, also for administrator preview keys, whose calls stay free. A call costs the sum of weight times units in credits, at price_per_1000_credits_usd per 1,000 credits.Show fields| Name | Type | Description |
|---|
price_per_1000_credits_usdrequired | number | Above 0. | weightsrequired | object | Credit weight of each billing unit the endpoints deliver (section 6.2), such as search_web, content_page, fetch_page, fetch_pdf_pages, geocode and reverse_geocode. |
|
Status
| Name | Type | Description |
|---|
objectrequired | string | Always web.status. |
request_idrequired | string | Same as the X-Request-Id header. |
createdrequired | integer | Unix seconds (UTC). |
moderequired | string | The site's web API mode. While the API is open to administrators only, an administrator's key sees admins and every other caller sees off. One of on, admins, off. |
endpointsrequired | array of object | Show fields| Name | Type | Description |
|---|
endpointrequired | string | | staterequired | string | One of available, degraded, unavailable, not_offered. | stage | string | One of S2, S3, S4. | measured | object | Measured numbers; a report, not a promise. |
|
key | object | Show fields| Name | Type | Description |
|---|
rate_limit | integer | | concurrency_limit | integer | | async_jobs_running | integer | | reach | string | reduced while a one-page read of the account would not get full reach now: recent calls needed more work than they were charged for (warning reach_reduced). Full reach returns as calls are charged and over time. One of full, reduced. |
|
updated_atrequired | integer | |
McpMessage
JSON-RPC 2.0 message of the MCP streamable HTTP transport.
| Name | Type | Description |
|---|
jsonrpcrequired | string | Always 2.0. |
id | string or integer or null | |
method | string | |
params | object | |
result | object | |
error | object | Show fields| Name | Type | Description |
|---|
coderequired | integer | | messagerequired | string | | data | any | |
|
DataAttribution
| Name | Type | Description |
|---|
sourcerequired | string | Name of the open data set the fact comes from. |
urlrequired | string | |
licenserequired | string | For example CC BY-SA 4.0 or CC0 1.0. |
KnowledgeRequest
| Name | Type | Description |
|---|
qrequired | string | The name of the entity, at most 200 characters. Runs of spaces become one space. 1 to 256 characters. |
language | string | BCP 47 language tag. Detected from q when absent. At most 12 characters. |
KnowledgeResponse
| Name | Type | Description |
|---|
objectrequired | string | Always web.knowledge. |
request_idrequired | string | Same as the X-Request-Id header. |
createdrequired | integer | Unix seconds (UTC). |
inputrequired | object | The parameters as applied, defaults filled in. |
usagerequired | [Usage](#schema-Usage) | |
warnings | array of [Warning](#schema-Warning) | |
panel | [KnowledgePanel](#schema-KnowledgePanel) | An encyclopedia card from open data. In a search it comes only on page 1 of a search with results and is included in the search price. |