websearch.fast
ConsoleGet a key

API reference

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 URLhttps://api.websearch.fast/v1/web
Also served athttps://relay.fast/v1/web
AuthenticationAuthorization: Bearer $WEBSEARCH_API_KEY
Version1.0.0-draft
OperationSummaryRequestResponseState
POST /v1/web/searchSearch the web or one verticalSearchRequestSearchResponseavailable
POST /v1/web/autocompleteQuery suggestionsAutocompleteRequestAutocompleteResponseavailable
POST /v1/web/knowledgeEntity cardKnowledgeRequestKnowledgeResponseavailable
POST /v1/web/lensSearch by imageLensRequestLensResponseplanned

Pages

OperationSummaryRequestResponseState
POST /v1/web/fetchRead pages to clean textFetchRequestFetchResponseavailable
POST /v1/web/extractStructured data by JSON SchemaExtractRequestExtractResponseplanned
POST /v1/web/mapDiscover the URLs of one siteMapRequestMapResponseplanned

Places

Jobs

OperationSummaryRequestResponseState
POST /v1/web/researchStart a research jobResearchRequestResearchJobplanned
GET /v1/web/research/{id}Get a research jobResearchJobplanned
POST /v1/web/research/{id}/cancelCancel a research jobResearchJobplanned
GET /v1/web/research/{id}/eventsProgress events of a research jobJobEventListplanned
POST /v1/web/crawlStart a crawl of one siteCrawlRequestCrawlJobplanned
GET /v1/web/crawl/{id}Get a crawl jobCrawlJobplanned
GET /v1/web/crawl/{id}/pagesPages of a crawlCrawlPageListplanned
POST /v1/web/crawl/{id}/cancelCancel a crawlCrawlJobplanned

Batch

OperationSummaryRequestResponseState
POST /v1/web/batchMany calls in one requestBatchRequestBatchResponse, BatchJobavailable
GET /v1/web/batch/{id}Get an async batchBatchJobplanned
GET /v1/web/batch/{id}/resultsResults of an async batchBatchResultListplanned
POST /v1/web/batch/{id}/cancelCancel an async batchBatchJobplanned

Account

OperationSummaryRequestResponseState
GET /v1/web/usageWhat this key spent on web callsUsageReportavailable
GET /v1/web/statusWhich endpoints are on, with measured numbersStatusavailable

MCP

OperationSummaryRequestResponseState
POST /v1/web/mcpMCP streamable HTTP (stateless): send one JSON-RPC messageMcpMessageMcpMessageavailable

Compatibility

The compatibility paths are listed with their mapping in the migration guide. Their schemas are in the OpenAPI file.

Schemas

ErrorBody
NameTypeDescription
coderequiredstringStable machine-readable code. Branch on it after the HTTP status.
messagerequiredstringText for people; can change.
typerequiredstringOne of invalid_request_error, authentication_error, permission_error, rate_limit_error, server_error.
paramstring or nullField, header or query parameter at fault.
doc_urlstringLink to the code's row in the reference. Omitted until the reference is published.
detailobjectCode-specific facts.
Show fields
NameTypeDescription
http_statusinteger
retry_after_secondsinteger
limitinteger
ErrorResponse
NameTypeDescription
errorrequired[ErrorBody](#schema-ErrorBody)
request_idrequiredstring
CompatErrorResponse

Error body on compatibility paths.

NameTypeDescription
messagerequiredstring
statusCoderequiredinteger
errorrequired[ErrorBody](#schema-ErrorBody)
request_idrequiredstring
Warning
NameTypeDescription
coderequiredstringFor example no_results, content_partial, answer_unavailable, partial, all_failed, reach_reduced.
messagestring
paramstring
UsageItem
NameTypeDescription
unitrequiredstringBillable unit, for example search_web, content_page, fetch_page, geocode, autocomplete, knowledge.
countrequiredinteger
Usage
NameTypeDescription
chargedrequiredboolean
creditsrequirednumberCredits charged for this call; 0 when not charged.
cost_usdrequirednumberUSD charged.
itemsrequiredarray of [UsageItem](#schema-UsageItem)
JobUsage
NameTypeDescription
creditsrequirednumber
cost_usdrequirednumber
reserved_usdnumberAmount reserved from the balance for the job and not yet charged or returned.
itemsrequiredarray of [UsageItem](#schema-UsageItem)
Cache
NameTypeDescription
hitrequiredbooleanThe response, or every page in it, came from a stored copy.
data_age_secondsrequiredintegerAge of the oldest part of the response.
fetched_atrequiredintegerUnix 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.

NameTypeDescription
statusrequiredstringOne of ok, failed.
error_codestringOne of fetch_failed, site_refused, unsupported_content, page_too_large, timeout.
formatstringOne of markdown, text.
textstring
charsinteger
truncatedboolean
titlestring
fetched_atintegerUnix seconds when the page was read.
ProxiedImage
NameTypeDescription
image_urlstringServed by our image proxy or by the destination site.
thumbnail_urlstring
Price
NameTypeDescription
amountnumber
currencystringISO 4217.
textrequiredstring
OpeningHours
NameTypeDescription
open_nowboolean
textarray of string
weeklyarray of object
Show fields
NameTypeDescription
dayrequiredinteger1 Monday to 7 Sunday. 1 to 7.
openrequiredstring
closerequiredstring
WebResult

Result of type web.

NameTypeDescription
positionrequiredinteger1-based rank across pages. At least 1.
titlerequiredstring
urlrequiredstringReal destination URL, never a redirect link.
domainrequiredstringHost of url, lowercase, without www.
snippetstringAt most 400 characters.
published_atstringISO 8601 UTC, when known.
site_namestringThe publisher's own name, when known.
originrequiredstringOur neutral label of how the result reached you. New values can appear. One of index, live, open_data.
sitelinksarray of [Sitelink](#schema-Sitelink)At most 8 items.
attributesobjectFacts shown with the result.
content[PageContent](#schema-PageContent)Cleaned page text added by the content option.
NewsResult

Result of type news (planned).

NameTypeDescription
positionrequiredinteger1-based rank across pages. At least 1.
titlerequiredstring
urlrequiredstringReal destination URL, never a redirect link.
domainrequiredstringHost of url, lowercase, without www.
snippetstringAt most 400 characters.
published_atstringISO 8601 UTC, when known.
site_namestringThe publisher's own name, when known.
originrequiredstringOur neutral label of how the result reached you. New values can appear. One of index, live, open_data.
image_urlstring
authorsarray 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.

NameTypeDescription
positionrequiredinteger1-based rank across pages. At least 1.
titlerequiredstring
urlrequiredstringReal destination URL, never a redirect link.
domainrequiredstringHost of url, lowercase, without www.
snippetstringAt most 400 characters.
published_atstringISO 8601 UTC, when known.
site_namestringThe publisher's own name, when known.
originrequiredstringOur neutral label of how the result reached you. New values can appear. One of index, live, open_data.
image_urlstringThe image file on its own site.
image_widthinteger
image_heightinteger
thumbnail_urlstringProxied.
thumbnail_widthinteger
thumbnail_heightinteger
VideoResult

Result of type videos (planned).

NameTypeDescription
positionrequiredinteger1-based rank across pages. At least 1.
titlerequiredstring
urlrequiredstringReal destination URL, never a redirect link.
domainrequiredstringHost of url, lowercase, without www.
snippetstringAt most 400 characters.
published_atstringISO 8601 UTC, when known.
site_namestringThe publisher's own name, when known.
originrequiredstringOur neutral label of how the result reached you. New values can appear. One of index, live, open_data.
thumbnail_urlstring
duration_secondsinteger
channelstring
PlaceResult

Result of type places (planned).

NameTypeDescription
positionrequiredintegerAt least 1.
titlerequiredstring
originrequiredstringOur neutral label of how the result reached you. New values can appear. One of index, live, open_data.
place_idrequiredstringOur opaque id, pl_... Starts with pl_.
urlstringThe place's own website, when known; never a map service page.
domainstring
snippetstring
addressstring
locationrequiredobject
Show fields
NameTypeDescription
latrequirednumber-90 to 90.
lonrequirednumber-180 to 180.
categoriesarray of string
ratingnumber0 to 5.
rating_countinteger
price_levelinteger1 to 4.
phonestring
websitestring
opening_hours[OpeningHours](#schema-OpeningHours)
descriptionstring
thumbnail_urlstring
distance_mnumber
ShoppingResult

Result of type shopping (planned).

NameTypeDescription
positionrequiredinteger1-based rank across pages. At least 1.
titlerequiredstring
urlrequiredstringReal destination URL, never a redirect link.
domainrequiredstringHost of url, lowercase, without www.
snippetstringAt most 400 characters.
published_atstringISO 8601 UTC, when known.
site_namestringThe publisher's own name, when known.
originrequiredstringOur neutral label of how the result reached you. New values can appear. One of index, live, open_data.
price[Price](#schema-Price)
merchantstring
deliverystring
ratingnumber
rating_countinteger
offers_countinteger
product_idstring
image_urlstring
ScholarResult

Result of type scholar (planned).

NameTypeDescription
positionrequiredinteger1-based rank across pages. At least 1.
titlerequiredstring
urlrequiredstringReal destination URL, never a redirect link.
domainrequiredstringHost of url, lowercase, without www.
snippetstringAt most 400 characters.
published_atstringISO 8601 UTC, when known.
site_namestringThe publisher's own name, when known.
originrequiredstringOur neutral label of how the result reached you. New values can appear. One of index, live, open_data.
authorsarray of string
venuestring
yearinteger
cited_by_countinteger
doistring
pdf_urlstringOpen-access copy, when one exists.
abstractstring
paper_idstring
publication_infostring
PatentResult

Result of type patents (planned). url is the patent office page.

NameTypeDescription
positionrequiredinteger1-based rank across pages. At least 1.
titlerequiredstring
urlrequiredstringReal destination URL, never a redirect link.
domainrequiredstringHost of url, lowercase, without www.
snippetstringAt most 400 characters.
published_atstringISO 8601 UTC, when known.
site_namestringThe publisher's own name, when known.
originrequiredstringOur neutral label of how the result reached you. New values can appear. One of index, live, open_data.
publication_numberstring
priority_datestringDate YYYY-MM-DD (UTC).
filing_datestringDate YYYY-MM-DD (UTC).
grant_datestringDate YYYY-MM-DD (UTC).
publication_datestringDate YYYY-MM-DD (UTC).
inventorsarray of string
assigneesarray of string
languagestring
pdf_urlstring
thumbnail_urlstring
figuresarray of [ProxiedImage](#schema-ProxiedImage)
AnswerBox
NameTypeDescription
titlestring
answerrequiredstring
snippetstring
urlstring
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.

NameTypeDescription
titlerequiredstring
typestringShort label, for example Physicist or City.
descriptionstringA short text from the encyclopedia article.
description_urlstringThe article the description comes from.
description_site_namestringName of the encyclopedia, with description_url.
websitestringOfficial website of the entity.
attributesobjectKey facts as name: value, in a stable order.
attributionrequiredarray of [DataAttribution](#schema-DataAttribution)The open data projects the data comes from, with their licences. Show it with the data.
RelatedQuestion
NameTypeDescription
questionrequiredstring
snippetstring
titlestring
urlstring
RelatedSearch
NameTypeDescription
queryrequiredstring
Citation
NameTypeDescription
indexrequiredintegerAt least 1.
urlrequiredstring
titlestring
site_namestring
published_atstring
Answer

Planned.

NameTypeDescription
statusrequiredstringOne of ok, unavailable.
textstringMarkdown with [n] markers that index citations.
dataobjectStructured answer when answer.schema was sent.
citationsarray of [Citation](#schema-Citation)
languagestring
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.

NameTypeDescription
pagesintegerAt 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.
formatstringOne of markdown, text. Default markdown.
max_chars_per_pageinteger500 to 50,000. Default 8000.
modestringOne of full, relevant. Default full.
AnswerOption

Planned. Short answer with numbered citations.

NameTypeDescription
max_wordsinteger20 to 600. Default 120.
languagestringBCP 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.
pagesinteger1 to 10. Default 5.
SearchRequest
NameTypeDescription
qrequiredstringThe query. Operators: site:, -site:, quotes, -term, OR, before:, after:; filetype:, intitle:, inurl: (planned). 1 to 2048 characters.
typestringThe vertical. Types not shipped yet return 501 api_not_implemented. One of web, news, images, videos, places, shopping, scholar, patents. Default web.
countrystringISO 3166-1 alpha-2 country code, case-insensitive.
languagestringBCP 47 language tag. At most 12 characters.
locationstringPlace to rank for, as text. 2 to 256 characters.
nearobjectplaces only; exclusive with location.
Show fields
NameTypeDescription
latrequirednumber-90 to 90.
lonrequirednumber-180 to 180.
radius_minteger100 to 50,000. Default 5000.
freshnessstringOnly results published within this period. Until the hourly filter ships, hour returns 501 api_not_implemented. One of hour, day, week, month, year.
date_fromstringDate YYYY-MM-DD (UTC).
date_tostringDate YYYY-MM-DD (UTC).
pageintegerResults 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.
numintegerDefault 10 (images and shopping 20). page * num at most 200. 1 to 100.
safestringOne of off, moderate, strict. Default moderate.
include_domainsarray of stringHost names; subdomains included. At most 20 items.
exclude_domainsarray of stringAt most 50 items.
content[ContentOption](#schema-ContentOption)Cleaned text of the top pages.
answerboolean or [AnswerOption](#schema-AnswerOption)Planned. True is the same as {}.
max_ageintegerAccept a stored copy up to this age in seconds. 0 to 2,592,000.
no_cachebooleanNever answer from a stored copy. Default false.
timeout_msintegerOur 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.

NameTypeDescription
positionrequiredinteger1-based rank across pages. At least 1.
titlerequiredstring
urlrequiredstringReal destination URL, never a redirect link.
domainrequiredstringHost of url, lowercase, without www.
snippetstringAt most 400 characters.
published_atstringISO 8601 UTC, when known.
site_namestringThe publisher's own name, when known.
originrequiredstringOur neutral label of how the result reached you. New values can appear. One of index, live, open_data.
sitelinksarray of [Sitelink](#schema-Sitelink)At most 8 items.
attributesobjectFacts shown with the result.
content[PageContent](#schema-PageContent)Cleaned page text added by the content option.
SearchResponse
NameTypeDescription
objectrequiredstringAlways web.search.
request_idrequiredstringSame as the X-Request-Id header.
createdrequiredintegerUnix seconds (UTC).
inputrequiredobjectThe parameters as applied, defaults filled in.
usagerequired[Usage](#schema-Usage)
cache[Cache](#schema-Cache)
warningsarray of [Warning](#schema-Warning)
resultsrequiredarray of [SearchResult](#schema-SearchResult)
has_morerequiredboolean
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_questionsarray of [RelatedQuestion](#schema-RelatedQuestion)
related_searchesarray of [RelatedSearch](#schema-RelatedSearch)
top_storiesarray of [NewsResult](#schema-NewsResult)At most 10 items.
answer[Answer](#schema-Answer)Planned.
AutocompleteRequest
NameTypeDescription
qrequiredstringThe prefix, at most 200 characters. Leading spaces are removed; a trailing space asks for the next word. 1 to 256 characters.
countrystringISO 3166-1 alpha-2 country code, case-insensitive.
languagestringBCP 47 language tag. Detected from q when absent. At most 12 characters.
numinteger1 to 20. Default 10.
timeout_msintegerUpper bound for the call. 500 to 5000. Default 5000.
AutocompleteResponse
NameTypeDescription
objectrequiredstringAlways web.autocomplete.
request_idrequiredstringSame as the X-Request-Id header.
createdrequiredintegerUnix seconds (UTC).
inputrequiredobjectThe parameters as applied, defaults filled in.
usagerequired[Usage](#schema-Usage)
warningsarray of [Warning](#schema-Warning)
suggestionsrequiredarray of object
Show fields
NameTypeDescription
valuerequiredstring
languagestringLanguage of the suggestions.
attributionarray of [DataAttribution](#schema-DataAttribution)The open data projects the data comes from, with their licences. Show it with the data.
FetchRequest
NameTypeDescription
urlstringPublic http(s) URL, at most 2048 bytes. At most 2048 characters.
urlsarray of string1 to 20 items.
formatstringhtml returns 501 api_not_implemented until it ships. One of markdown, text, html. Default markdown.
max_charsinteger1000 to 500,000. Default 50000.
modestringfull returns 501 api_not_implemented until it ships. One of main, full. Default main.
include_linksboolean Default false.
include_imagesboolean Default false.
include_metadataboolean Default true.
pdfobject
Show fields
NameTypeDescription
max_pagesinteger1 to 500. Default 100.
querystringReturn relevant_passages that match this text. At most 512 characters.
renderbooleanPlanned; true returns 501 until it ships. Default false.
max_ageintegerAccept a stored copy up to this age in seconds. 0 to 2,592,000.
no_cachebooleanNever answer from a stored copy. Default false.
timeout_msinteger2000 to 35,000.
PageMetadata
NameTypeDescription
descriptionstring
authorstring
site_namestring
canonical_urlstring
image_urlstring
keywordsarray of string
metaobjectMeta name and property tags, at most 100.
json_ldarray of objectAt most 20 items.
FetchPage
NameTypeDescription
requested_urlrequiredstring
urlstringFinal URL after redirects. For now the requested URL, because the reader does not report the final one yet.
statusrequiredstringOne of ok, failed.
errorobject
Show fields
NameTypeDescription
coderequiredstring
messagerequiredstring
http_statusinteger
content_typestring
titlestring
contentstring
formatstringOne of markdown, text, html.
charsinteger
truncatedboolean
extractionstringNeutral label of how the text was taken. New values can appear. One of article, full_page, document, feed, plain, structured.
languagestring
published_atstring
metadata[PageMetadata](#schema-PageMetadata)
linksarray of objectAt most 1000 items.
Show fields
NameTypeDescription
urlrequiredstring
textstring
relstring
imagesarray of objectAt most 200 items.
Show fields
NameTypeDescription
urlrequiredstring
altstring
widthinteger
heightinteger
pdf_pagesinteger
relevant_passagesarray of string
fetched_atinteger
FetchResponse
NameTypeDescription
objectrequiredstringAlways web.fetch.
request_idrequiredstringSame as the X-Request-Id header.
createdrequiredintegerUnix seconds (UTC).
inputrequiredobjectThe parameters as applied, defaults filled in.
usagerequired[Usage](#schema-Usage)
cache[Cache](#schema-Cache)
warningsarray of [Warning](#schema-Warning)
page[FetchPage](#schema-FetchPage)
pagesarray of [FetchPage](#schema-FetchPage)
ExtractRequest
NameTypeDescription
urlsarray of string1 to 10 items.
textstring1 to 200,000 characters.
schemarequired[JsonSchemaObject](#schema-JsonSchemaObject)JSON Schema 2020-12 subset; root must be an object; at most 16 KB, depth 5, 200 properties.
instructionsstringAt most 4000 characters.
mergeboolean Default false.
max_chars_per_pageinteger1000 to 200,000. Default 50000.
include_sourcesboolean Default true.
max_ageintegerAccept a stored copy up to this age in seconds. 0 to 2,592,000.
no_cachebooleanNever answer from a stored copy. Default false.
timeout_msinteger5000 to 60,000.
ExtractItem
NameTypeDescription
urlstring
statusrequiredstringOne of ok, failed.
dataobject
errorobject
Show fields
NameTypeDescription
coderequiredstring
messagestring
sourcesobjectTop-level property to the URLs its value came from.
ExtractResponse
NameTypeDescription
objectrequiredstringAlways web.extract.
request_idrequiredstringSame as the X-Request-Id header.
createdrequiredintegerUnix seconds (UTC).
inputrequiredobjectThe parameters as applied, defaults filled in.
usagerequired[Usage](#schema-Usage)
cache[Cache](#schema-Cache)
warningsarray of [Warning](#schema-Warning)
dataobjectWith merge: true.
itemsarray of [ExtractItem](#schema-ExtractItem)
sourcesobject
schema_validrequiredbooleanAlways true.
PlaceDetailsRequest
NameTypeDescription
place_idrequiredstringAt most 128 characters. Starts with pl_.
languagestringBCP 47 language tag. At most 12 characters.
fieldsarray of stringOne of basic, contact, hours, rating, attributes, photos.
AddressComponents
NameTypeDescription
house_numberstring
streetstring
districtstring
citystring
regionstring
postal_codestring
countrystring
country_codestring
Place
NameTypeDescription
positionrequiredintegerAt least 1.
titlerequiredstring
originrequiredstringOur neutral label of how the result reached you. New values can appear. One of index, live, open_data.
place_idrequiredstringOur opaque id, pl_... Starts with pl_.
urlstringThe place's own website, when known; never a map service page.
domainstring
snippetstring
addressstring
locationrequiredobject
Show fields
NameTypeDescription
latrequirednumber-90 to 90.
lonrequirednumber-180 to 180.
categoriesarray of string
ratingnumber0 to 5.
rating_countinteger
price_levelinteger1 to 4.
phonestring
websitestring
opening_hours[OpeningHours](#schema-OpeningHours)
descriptionstring
thumbnail_urlstring
distance_mnumber
address_components[AddressComponents](#schema-AddressComponents)
timezonestringIANA time zone.
attributesobject
photosarray of object
Show fields
NameTypeDescription
urlrequiredstring
widthinteger
heightinteger
updated_atinteger
PlaceDetailsResponse
NameTypeDescription
objectrequiredstringAlways web.place.
request_idrequiredstringSame as the X-Request-Id header.
createdrequiredintegerUnix seconds (UTC).
inputrequiredobjectThe parameters as applied, defaults filled in.
usagerequired[Usage](#schema-Usage)
cache[Cache](#schema-Cache)
warningsarray of [Warning](#schema-Warning)
placerequired[Place](#schema-Place)
PlaceReviewsRequest
NameTypeDescription
place_idrequiredstringAt most 128 characters. Starts with pl_.
sortstringOne of relevant, newest, highest, lowest. Default relevant.
topicstring
languagestringBCP 47 language tag. At most 12 characters.
numinteger1 to 20. Default 10.
page_tokenstringFrom next_page_token; valid 1 hour.
Review
NameTypeDescription
review_idstring
ratingrequirednumber0 to 5.
textstring
published_atstring
languagestring
authorobject
Show fields
NameTypeDescription
namestringPublic display name only.
likesinteger
owner_responseobject
Show fields
NameTypeDescription
textstring
published_atstring
photosarray of object
Show fields
NameTypeDescription
urlrequiredstring
PlaceReviewsResponse
NameTypeDescription
objectrequiredstringAlways web.place_reviews.
request_idrequiredstringSame as the X-Request-Id header.
createdrequiredintegerUnix seconds (UTC).
inputrequiredobjectThe parameters as applied, defaults filled in.
usagerequired[Usage](#schema-Usage)
cache[Cache](#schema-Cache)
warningsarray of [Warning](#schema-Warning)
reviewsrequiredarray of [Review](#schema-Review)
topicsarray of object
Show fields
NameTypeDescription
idrequiredstring
labelrequiredstring
countinteger
ratingnumber
rating_countinteger
next_page_tokenstring
GeocodeRequest
NameTypeDescription
qstring2 to 512 characters.
addressobject
Show fields
NameTypeDescription
streetstringAt most 128 characters.
house_numberstringAt most 128 characters.
citystringAt most 128 characters.
districtstringAt most 128 characters.
regionstringAt most 128 characters.
postal_codestringAt most 128 characters.
countrystringAt most 128 characters.
countrystring or array of string
nearobject
Show fields
NameTypeDescription
latrequirednumber-90 to 90.
lonrequirednumber-180 to 180.
languagestringBCP 47 language tag. At most 12 characters.
limitinteger1 to 20. Default 5.
ReverseGeocodeRequest
NameTypeDescription
latrequirednumber-90 to 90.
lonrequirednumber-180 to 180.
levelstringOne of address, street, district, city, region, country. Default address.
languagestringBCP 47 language tag. At most 12 characters.
limitinteger1 to 10. Default 1.
GeocodeResult
NameTypeDescription
formatted_addressrequiredstring
namestringName of the place when it has one.
locationrequiredobject
Show fields
NameTypeDescription
latrequirednumber-90 to 90.
lonrequirednumber-180 to 180.
components[AddressComponents](#schema-AddressComponents)
kindrequiredstringA place of any other kind is not returned. One of address, street, poi, postal_code, district, city, region, country.
bboxarray of number[min_lon, min_lat, max_lon, max_lat]. 4 to 4 items.
place_idstringStable id of the map object, when known.
distance_mnumberreverse-geocode only: metres from the point, rounded to 0.1.
GeocodeResponse
NameTypeDescription
objectrequiredstringAlways web.geocode.
request_idrequiredstringSame as the X-Request-Id header.
createdrequiredintegerUnix seconds (UTC).
inputrequiredobjectThe parameters as applied, defaults filled in.
usagerequired[Usage](#schema-Usage)
cache[Cache](#schema-Cache)
warningsarray of [Warning](#schema-Warning)
resultsrequiredarray of [GeocodeResult](#schema-GeocodeResult)
attributionrequiredstringLicence notice of the map data. Always present; show it where the results are shown.
ReverseGeocodeResponse
NameTypeDescription
objectrequiredstringAlways web.reverse_geocode.
request_idrequiredstringSame as the X-Request-Id header.
createdrequiredintegerUnix seconds (UTC).
inputrequiredobjectThe parameters as applied, defaults filled in.
usagerequired[Usage](#schema-Usage)
cache[Cache](#schema-Cache)
warningsarray of [Warning](#schema-Warning)
resultsrequiredarray of [GeocodeResult](#schema-GeocodeResult)
attributionrequiredstringLicence notice of the map data. Always present; show it where the results are shown.
LensRequest
NameTypeDescription
image_urlrequiredstringPublic http(s) URL (JPEG, PNG, WebP, GIF, at most 10 MB) or data:image URL (at most 5 MB).
qstringAt most 256 characters.
countrystringISO 3166-1 alpha-2 country code, case-insensitive.
languagestringBCP 47 language tag. At most 12 characters.
numinteger1 to 50. Default 20.
LensResult

Lens match (planned).

NameTypeDescription
positionrequiredinteger1-based rank across pages. At least 1.
titlerequiredstring
urlrequiredstringReal destination URL, never a redirect link.
domainrequiredstringHost of url, lowercase, without www.
snippetstringAt most 400 characters.
published_atstringISO 8601 UTC, when known.
site_namestringThe publisher's own name, when known.
originrequiredstringOur neutral label of how the result reached you. New values can appear. One of index, live, open_data.
image_urlstring
thumbnail_urlstring
price[Price](#schema-Price)
LensResponse
NameTypeDescription
objectrequiredstringAlways web.lens.
request_idrequiredstringSame as the X-Request-Id header.
createdrequiredintegerUnix seconds (UTC).
inputrequiredobjectThe parameters as applied, defaults filled in.
usagerequired[Usage](#schema-Usage)
cache[Cache](#schema-Cache)
warningsarray of [Warning](#schema-Warning)
resultsrequiredarray of [LensResult](#schema-LensResult)
entitiesarray of object
Show fields
NameTypeDescription
namerequiredstring
kindstring
JobStatus

One of queued, running, succeeded, failed, cancelled.

StopReason

One of completed, budget, limit, cancelled, deadline, error.

ResearchRequest
NameTypeDescription
queryrequiredstring1 to 4000 characters.
instructionsstringAt most 8000 characters.
depthstringOne of quick, standard, deep. Default standard.
max_searchesinteger1 to 200.
max_pagesinteger1 to 400.
max_cost_usdnumberCost ceiling; default and maximum set by price list. Above 0.
languagestringBCP 47 language tag. At most 12 characters.
countrystringISO 3166-1 alpha-2 country code, case-insensitive.
freshnessstringOnly results published within this period. One of hour, day, week, month, year.
date_fromstringDate YYYY-MM-DD (UTC).
date_tostringDate YYYY-MM-DD (UTC).
include_domainsarray of stringHost names; subdomains included. At most 20 items.
exclude_domainsarray of stringAt most 50 items.
outputobject
Show fields
NameTypeDescription
formatstringOne 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_wordsinteger100 to 10,000.
webhook_urlstringPublic https URL that receives the final job object, signed with webhook_secret. At most 500 characters.
metadataobjectYour own string values, echoed on the job; at most 4 KB.
ResearchJob
NameTypeDescription
objectrequiredstringAlways web.research.
idrequiredstringAt most 64 characters. Starts with wr_.
statusrequiredstringOne of queued, running, succeeded, failed, cancelled.
stop_reasonstringOne of completed, budget, limit, cancelled, deadline, error.
created_atrequiredinteger
started_atinteger
completed_atinteger
inputrequiredobject
usagerequired[JobUsage](#schema-JobUsage)
errorobject
Show fields
NameTypeDescription
coderequiredstring
messagestring
poll_after_msinteger
webhook_secretstringOnly in the create response, when webhook_url was set.
metadataobject
expires_atinteger
progressobject
Show fields
NameTypeDescription
steps_doneinteger
searchesinteger
pages_readinteger
sources_keptinteger
reportobject
Show fields
NameTypeDescription
formatrequiredstringOne of markdown, json.
textstring
dataobject
sourcesrequiredarray of [Citation](#schema-Citation)
JobEvent
NameTypeDescription
seqrequiredinteger
eventrequiredstringOne of status, search, page, note, report, error, done.
dataobject
createdrequiredinteger
JobEventList
NameTypeDescription
objectrequiredstringAlways list.
datarequiredarray of [JobEvent](#schema-JobEvent)
has_morerequiredboolean
next_cursorstring
CrawlRequest
NameTypeDescription
urlrequiredstringPublic http(s) URL, at most 2048 bytes. At most 2048 characters.
limitinteger1 to 10,000. Default 100.
max_depthinteger0 to 20. Default 3.
include_pathsarray of stringAt most 50 items.
exclude_pathsarray of stringAt most 50 items.
include_subdomainsboolean Default false.
use_sitemapsboolean Default true.
ignore_queryboolean Default true.
formatstringOne of markdown, text, html. Default markdown.
modestringOne of main, full. Default main.
max_charsinteger1000 to 500,000. Default 20000.
include_linksboolean Default false.
include_metadataboolean Default true.
max_cost_usdnumberAbove 0.
webhook_urlstringPublic https URL that receives the final job object, signed with webhook_secret. At most 500 characters.
metadataobjectYour own string values, echoed on the job; at most 4 KB.
CrawlJob
NameTypeDescription
objectrequiredstringAlways web.crawl.
idrequiredstringAt most 64 characters. Starts with wc_.
statusrequiredstringOne of queued, running, succeeded, failed, cancelled.
stop_reasonstringOne of completed, budget, limit, cancelled, deadline, error.
created_atrequiredinteger
started_atinteger
completed_atinteger
inputrequiredobject
usagerequired[JobUsage](#schema-JobUsage)
errorobject
Show fields
NameTypeDescription
coderequiredstring
messagestring
poll_after_msinteger
webhook_secretstringOnly in the create response, when webhook_url was set.
metadataobject
expires_atinteger
progressobject
Show fields
NameTypeDescription
discoveredinteger
queuedinteger
readinteger
failedinteger
skipped_robotsinteger
skipped_scopeinteger
CrawlPage
NameTypeDescription
requested_urlrequiredstring
urlstringFinal URL after redirects. For now the requested URL, because the reader does not report the final one yet.
statusrequiredstringOne of ok, failed.
errorobject
Show fields
NameTypeDescription
coderequiredstring
messagerequiredstring
http_statusinteger
content_typestring
titlestring
contentstring
formatstringOne of markdown, text, html.
charsinteger
truncatedboolean
extractionstringNeutral label of how the text was taken. New values can appear. One of article, full_page, document, feed, plain, structured.
languagestring
published_atstring
metadata[PageMetadata](#schema-PageMetadata)
linksarray of objectAt most 1000 items.
Show fields
NameTypeDescription
urlrequiredstring
textstring
relstring
imagesarray of objectAt most 200 items.
Show fields
NameTypeDescription
urlrequiredstring
altstring
widthinteger
heightinteger
pdf_pagesinteger
relevant_passagesarray of string
fetched_atinteger
depthinteger
CrawlPageList
NameTypeDescription
objectrequiredstringAlways list.
datarequiredarray of [CrawlPage](#schema-CrawlPage)
has_morerequiredboolean
next_cursorstring
MapRequest
NameTypeDescription
urlrequiredstringPublic http(s) URL, at most 2048 bytes. At most 2048 characters.
limitinteger1 to 30,000. Default 1000.
searchstringAt most 256 characters.
include_pathsarray of stringAt most 50 items.
exclude_pathsarray of stringAt most 50 items.
include_subdomainsboolean Default false.
ignore_queryboolean Default true.
sitemap_onlyboolean Default false.
MapResponse
NameTypeDescription
objectrequiredstringAlways web.map.
request_idrequiredstringSame as the X-Request-Id header.
createdrequiredintegerUnix seconds (UTC).
inputrequiredobjectThe parameters as applied, defaults filled in.
usagerequired[Usage](#schema-Usage)
cache[Cache](#schema-Cache)
warningsarray of [Warning](#schema-Warning)
urlsrequiredarray of object
Show fields
NameTypeDescription
urlrequiredstring
lastmodstring
titlestring
sourcerequiredstringOne of sitemap, links.
countrequiredinteger
truncatedrequiredboolean
BatchItem
NameTypeDescription
custom_idstringYour id, at most 64 bytes and unique in the batch, otherwise 400. Defaults to the index as a string. At most 64 characters.
endpointrequiredstringOne of search, fetch, autocomplete, knowledge, geocode, reverse-geocode, places/details, extract.
bodyrequiredobjectThe request body of that endpoint.
BatchRequest
NameTypeDescription
requestsrequiredarray 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.
modestringOne of sync, async. Default sync.
max_cost_usdnumberAsync only; refused with 400 in sync mode. Above 0.
webhook_urlstringAsync only; refused with 400 in sync mode. Public https URL that receives the final job object, signed with webhook_secret. At most 500 characters.
metadataobjectAsync only; refused with 400 in sync mode. Your own string values, echoed on the job; at most 4 KB.
BatchResult
NameTypeDescription
indexrequiredinteger
custom_idstring
statusrequiredintegerHTTP status the call would have had alone.
bodyrequiredobjectResponse or error body of the item.
BatchResponse
NameTypeDescription
objectrequiredstringAlways web.batch.
request_idrequiredstringSame as the X-Request-Id header.
createdrequiredintegerUnix seconds (UTC).
usagerequired[Usage](#schema-Usage)
warningsarray of [Warning](#schema-Warning)
resultsrequiredarray of [BatchResult](#schema-BatchResult)
BatchJob
NameTypeDescription
objectrequiredstringAlways web.batch_job.
idrequiredstringAt most 64 characters. Starts with wb_.
statusrequiredstringOne of queued, running, succeeded, failed, cancelled.
stop_reasonstringOne of completed, budget, limit, cancelled, deadline, error.
created_atrequiredinteger
started_atinteger
completed_atinteger
inputrequiredobject
usagerequired[JobUsage](#schema-JobUsage)
errorobject
Show fields
NameTypeDescription
coderequiredstring
messagestring
poll_after_msinteger
webhook_secretstringOnly in the create response, when webhook_url was set.
metadataobject
expires_atinteger
progressobject
Show fields
NameTypeDescription
totalinteger
doneinteger
okinteger
failedinteger
BatchResultList
NameTypeDescription
objectrequiredstringAlways list.
datarequiredarray of [BatchResult](#schema-BatchResult)
has_morerequiredboolean
next_cursorstring
UsageRow
NameTypeDescription
daystringDate YYYY-MM-DD (UTC).
endpointstring
callsrequiredinteger
charged_callsrequiredinteger
creditsrequirednumber
cost_usdrequirednumber
UsageReport
NameTypeDescription
objectrequiredstringAlways web.usage.
request_idrequiredstringSame as the X-Request-Id header.
createdrequiredintegerUnix seconds (UTC).
fromrequiredstringDate YYYY-MM-DD (UTC).
torequiredstringDate YYYY-MM-DD (UTC).
group_bystringThe grouping of data, as requested. One of day, endpoint, day_endpoint.
totalsrequiredobject
Show fields
NameTypeDescription
callsrequiredinteger
charged_callsrequiredinteger
creditsrequirednumber
cost_usdrequirednumber
datarequiredarray of [UsageRow](#schema-UsageRow)
pricingobjectWhat 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
NameTypeDescription
price_per_1000_credits_usdrequirednumberAbove 0.
weightsrequiredobjectCredit 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
NameTypeDescription
objectrequiredstringAlways web.status.
request_idrequiredstringSame as the X-Request-Id header.
createdrequiredintegerUnix seconds (UTC).
moderequiredstringThe 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.
endpointsrequiredarray of object
Show fields
NameTypeDescription
endpointrequiredstring
staterequiredstringOne of available, degraded, unavailable, not_offered.
stagestringOne of S2, S3, S4.
measuredobjectMeasured numbers; a report, not a promise.
keyobject
Show fields
NameTypeDescription
rate_limitinteger
concurrency_limitinteger
async_jobs_runninginteger
reachstringreduced 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_atrequiredinteger
McpMessage

JSON-RPC 2.0 message of the MCP streamable HTTP transport.

NameTypeDescription
jsonrpcrequiredstringAlways 2.0.
idstring or integer or null
methodstring
paramsobject
resultobject
errorobject
Show fields
NameTypeDescription
coderequiredinteger
messagerequiredstring
dataany
DataAttribution
NameTypeDescription
sourcerequiredstringName of the open data set the fact comes from.
urlrequiredstring
licenserequiredstringFor example CC BY-SA 4.0 or CC0 1.0.
KnowledgeRequest
NameTypeDescription
qrequiredstringThe name of the entity, at most 200 characters. Runs of spaces become one space. 1 to 256 characters.
languagestringBCP 47 language tag. Detected from q when absent. At most 12 characters.
KnowledgeResponse
NameTypeDescription
objectrequiredstringAlways web.knowledge.
request_idrequiredstringSame as the X-Request-Id header.
createdrequiredintegerUnix seconds (UTC).
inputrequiredobjectThe parameters as applied, defaults filled in.
usagerequired[Usage](#schema-Usage)
warningsarray 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.