# API reference

Every operation of the Web API with its request and response schemas, generated from the [OpenAPI file](https://websearch.fast/openapi.json) (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

| Operation | Summary | Request | Response | State |
| --- | --- | --- | --- | --- |
| [`POST /v1/web/search`](https://websearch.fast/docs/search#webSearch) | Search the web or one vertical | [SearchRequest](#schema-SearchRequest) | [SearchResponse](#schema-SearchResponse) | available |
| [`POST /v1/web/autocomplete`](https://websearch.fast/docs/autocomplete#webAutocomplete) | Query suggestions | [AutocompleteRequest](#schema-AutocompleteRequest) | [AutocompleteResponse](#schema-AutocompleteResponse) | available |
| [`POST /v1/web/knowledge`](https://websearch.fast/docs/knowledge#webKnowledge) | Entity card | [KnowledgeRequest](#schema-KnowledgeRequest) | [KnowledgeResponse](#schema-KnowledgeResponse) | available |
| [`POST /v1/web/lens`](https://websearch.fast/docs/lens#webLens) | Search by image | [LensRequest](#schema-LensRequest) | [LensResponse](#schema-LensResponse) | planned |

## Pages

| Operation | Summary | Request | Response | State |
| --- | --- | --- | --- | --- |
| [`POST /v1/web/fetch`](https://websearch.fast/docs/fetch#webFetch) | Read pages to clean text | [FetchRequest](#schema-FetchRequest) | [FetchResponse](#schema-FetchResponse) | available |
| [`POST /v1/web/extract`](https://websearch.fast/docs/extract#webExtract) | Structured data by JSON Schema | [ExtractRequest](#schema-ExtractRequest) | [ExtractResponse](#schema-ExtractResponse) | planned |
| [`POST /v1/web/map`](https://websearch.fast/docs/map#webMap) | Discover the URLs of one site | [MapRequest](#schema-MapRequest) | [MapResponse](#schema-MapResponse) | planned |

## Places

| Operation | Summary | Request | Response | State |
| --- | --- | --- | --- | --- |
| [`POST /v1/web/places/details`](https://websearch.fast/docs/places-details#webPlaceDetails) | Details of one place | [PlaceDetailsRequest](#schema-PlaceDetailsRequest) | [PlaceDetailsResponse](#schema-PlaceDetailsResponse) | planned |
| [`POST /v1/web/places/reviews`](https://websearch.fast/docs/places-reviews#webPlaceReviews) | Reviews of one place | [PlaceReviewsRequest](#schema-PlaceReviewsRequest) | [PlaceReviewsResponse](#schema-PlaceReviewsResponse) | planned |
| [`POST /v1/web/geocode`](https://websearch.fast/docs/geocode#webGeocode) | Address to coordinates | [GeocodeRequest](#schema-GeocodeRequest) | [GeocodeResponse](#schema-GeocodeResponse) | available |
| [`POST /v1/web/reverse-geocode`](https://websearch.fast/docs/reverse-geocode#webReverseGeocode) | Coordinates to address | [ReverseGeocodeRequest](#schema-ReverseGeocodeRequest) | [ReverseGeocodeResponse](#schema-ReverseGeocodeResponse) | available |

## Jobs

| Operation | Summary | Request | Response | State |
| --- | --- | --- | --- | --- |
| [`POST /v1/web/research`](https://websearch.fast/docs/research#webResearchCreate) | Start a research job | [ResearchRequest](#schema-ResearchRequest) | [ResearchJob](#schema-ResearchJob) | planned |
| [`GET /v1/web/research/{id}`](https://websearch.fast/docs/research#webResearchGet) | Get a research job |  | [ResearchJob](#schema-ResearchJob) | planned |
| [`POST /v1/web/research/{id}/cancel`](https://websearch.fast/docs/research#webResearchCancel) | Cancel a research job |  | [ResearchJob](#schema-ResearchJob) | planned |
| [`GET /v1/web/research/{id}/events`](https://websearch.fast/docs/research#webResearchEvents) | Progress events of a research job |  | [JobEventList](#schema-JobEventList) | planned |
| [`POST /v1/web/crawl`](https://websearch.fast/docs/crawl#webCrawlCreate) | Start a crawl of one site | [CrawlRequest](#schema-CrawlRequest) | [CrawlJob](#schema-CrawlJob) | planned |
| [`GET /v1/web/crawl/{id}`](https://websearch.fast/docs/crawl#webCrawlGet) | Get a crawl job |  | [CrawlJob](#schema-CrawlJob) | planned |
| [`GET /v1/web/crawl/{id}/pages`](https://websearch.fast/docs/crawl#webCrawlPages) | Pages of a crawl |  | [CrawlPageList](#schema-CrawlPageList) | planned |
| [`POST /v1/web/crawl/{id}/cancel`](https://websearch.fast/docs/crawl#webCrawlCancel) | Cancel a crawl |  | [CrawlJob](#schema-CrawlJob) | planned |

## Batch

| Operation | Summary | Request | Response | State |
| --- | --- | --- | --- | --- |
| [`POST /v1/web/batch`](https://websearch.fast/docs/batch#webBatch) | Many calls in one request | [BatchRequest](#schema-BatchRequest) | [BatchResponse](#schema-BatchResponse), [BatchJob](#schema-BatchJob) | available |
| [`GET /v1/web/batch/{id}`](https://websearch.fast/docs/batch#webBatchGet) | Get an async batch |  | [BatchJob](#schema-BatchJob) | planned |
| [`GET /v1/web/batch/{id}/results`](https://websearch.fast/docs/batch#webBatchResults) | Results of an async batch |  | [BatchResultList](#schema-BatchResultList) | planned |
| [`POST /v1/web/batch/{id}/cancel`](https://websearch.fast/docs/batch#webBatchCancel) | Cancel an async batch |  | [BatchJob](#schema-BatchJob) | planned |

## Account

| Operation | Summary | Request | Response | State |
| --- | --- | --- | --- | --- |
| [`GET /v1/web/usage`](https://websearch.fast/docs/usage#webUsage) | What this key spent on web calls |  | [UsageReport](#schema-UsageReport) | available |
| [`GET /v1/web/status`](https://websearch.fast/docs/status#webStatus) | Which endpoints are on, with measured numbers |  | [Status](#schema-Status) | available |

## MCP

| Operation | Summary | Request | Response | State |
| --- | --- | --- | --- | --- |
| [`POST /v1/web/mcp`](https://websearch.fast/mcp#protocol) | MCP streamable HTTP (stateless): send one JSON-RPC message | [McpMessage](#schema-McpMessage) | [McpMessage](#schema-McpMessage) | available |

## Compatibility

The compatibility paths are listed with their mapping in the [migration guide](https://websearch.fast/docs/migrate). Their schemas are in the [OpenAPI file](https://websearch.fast/openapi.json).

## Schemas

### ErrorBody

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `code` | string | yes | Stable machine-readable code. Branch on it after the HTTP status. |
| `message` | string | yes | Text for people; can change. |
| `type` | string | yes | 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. |
| `detail.http_status` | integer |  |  |
| `detail.retry_after_seconds` | integer |  |  |
| `detail.limit` | integer |  |  |

### ErrorResponse

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | [ErrorBody](#schema-ErrorBody) | yes |  |
| `request_id` | string | yes |  |

### CompatErrorResponse

Error body on compatibility paths.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | string | yes |  |
| `statusCode` | integer | yes |  |
| `error` | [ErrorBody](#schema-ErrorBody) | yes |  |
| `request_id` | string | yes |  |

### Warning

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `code` | string | yes | For example no_results, content_partial, answer_unavailable, partial, all_failed, reach_reduced. |
| `message` | string |  |  |
| `param` | string |  |  |

### UsageItem

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `unit` | string | yes | Billable unit, for example search_web, content_page, fetch_page, geocode, autocomplete, knowledge. |
| `count` | integer | yes |  |

### Usage

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `charged` | boolean | yes |  |
| `credits` | number | yes | Credits charged for this call; 0 when not charged. |
| `cost_usd` | number | yes | USD charged. |
| `items` | array of [UsageItem](#schema-UsageItem) | yes |  |

### JobUsage

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `credits` | number | yes |  |
| `cost_usd` | number | yes |  |
| `reserved_usd` | number |  | Amount reserved from the balance for the job and not yet charged or returned. |
| `items` | array of [UsageItem](#schema-UsageItem) | yes |  |

### Cache

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `hit` | boolean | yes | The response, or every page in it, came from a stored copy. |
| `data_age_seconds` | integer | yes | Age of the oldest part of the response. |
| `fetched_at` | integer | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `status` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `title` | string | yes |  |
| `url` | string | yes |  |

### ProxiedImage

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `image_url` | string |  | Served by our image proxy or by the destination site. |
| `thumbnail_url` | string |  |  |

### Price

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `amount` | number |  |  |
| `currency` | string |  | ISO 4217. |
| `text` | string | yes |  |

### OpeningHours

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `open_now` | boolean |  |  |
| `text` | array of string |  |  |
| `weekly` | array of object |  |  |
| `weekly.day` | integer | yes | 1 Monday to 7 Sunday. 1 to 7. |
| `weekly.open` | string | yes |  |
| `weekly.close` | string | yes |  |

### WebResult

Result of type web.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `position` | integer | yes | 1-based rank across pages. At least 1. |
| `title` | string | yes |  |
| `url` | string | yes | Real destination URL, never a redirect link. |
| `domain` | string | yes | 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. |
| `origin` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `position` | integer | yes | 1-based rank across pages. At least 1. |
| `title` | string | yes |  |
| `url` | string | yes | Real destination URL, never a redirect link. |
| `domain` | string | yes | 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. |
| `origin` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `position` | integer | yes | 1-based rank across pages. At least 1. |
| `title` | string | yes |  |
| `url` | string | yes | Real destination URL, never a redirect link. |
| `domain` | string | yes | 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. |
| `origin` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `position` | integer | yes | 1-based rank across pages. At least 1. |
| `title` | string | yes |  |
| `url` | string | yes | Real destination URL, never a redirect link. |
| `domain` | string | yes | 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. |
| `origin` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `position` | integer | yes | At least 1. |
| `title` | string | yes |  |
| `origin` | string | yes | Our neutral label of how the result reached you. New values can appear. One of `index`, `live`, `open_data`. |
| `place_id` | string | yes | 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 |  |  |
| `location` | object | yes |  |
| `location.lat` | number | yes | -90 to 90. |
| `location.lon` | number | yes | -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 | Required | Description |
| --- | --- | --- | --- |
| `position` | integer | yes | 1-based rank across pages. At least 1. |
| `title` | string | yes |  |
| `url` | string | yes | Real destination URL, never a redirect link. |
| `domain` | string | yes | 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. |
| `origin` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `position` | integer | yes | 1-based rank across pages. At least 1. |
| `title` | string | yes |  |
| `url` | string | yes | Real destination URL, never a redirect link. |
| `domain` | string | yes | 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. |
| `origin` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `position` | integer | yes | 1-based rank across pages. At least 1. |
| `title` | string | yes |  |
| `url` | string | yes | Real destination URL, never a redirect link. |
| `domain` | string | yes | 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. |
| `origin` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `title` | string |  |  |
| `answer` | string | yes |  |
| `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 | Required | Description |
| --- | --- | --- | --- |
| `title` | string | yes |  |
| `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. |
| `attribution` | array of [DataAttribution](#schema-DataAttribution) | yes | The open data projects the data comes from, with their licences. Show it with the data. |

### RelatedQuestion

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `question` | string | yes |  |
| `snippet` | string |  |  |
| `title` | string |  |  |
| `url` | string |  |  |

### RelatedSearch

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes |  |

### Citation

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `index` | integer | yes | At least 1. |
| `url` | string | yes |  |
| `title` | string |  |  |
| `site_name` | string |  |  |
| `published_at` | string |  |  |

### Answer

Planned.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | string | yes | 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 | Required | 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 | Required | 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 | Required | Description |
| --- | --- | --- | --- |
| `q` | string | yes | 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. |
| `near.lat` | number | yes | -90 to 90. |
| `near.lon` | number | yes | -180 to 180. |
| `near.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 | Required | Description |
| --- | --- | --- | --- |
| `position` | integer | yes | 1-based rank across pages. At least 1. |
| `title` | string | yes |  |
| `url` | string | yes | Real destination URL, never a redirect link. |
| `domain` | string | yes | 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. |
| `origin` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.search`. |
| `request_id` | string | yes | Same as the X-Request-Id header. |
| `created` | integer | yes | Unix seconds (UTC). |
| `input` | object | yes | The parameters as applied, defaults filled in. |
| `usage` | [Usage](#schema-Usage) | yes |  |
| `cache` | [Cache](#schema-Cache) |  |  |
| `warnings` | array of [Warning](#schema-Warning) |  |  |
| `results` | array of [SearchResult](#schema-SearchResult) | yes |  |
| `has_more` | boolean | yes |  |
| `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 | Required | Description |
| --- | --- | --- | --- |
| `q` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.autocomplete`. |
| `request_id` | string | yes | Same as the X-Request-Id header. |
| `created` | integer | yes | Unix seconds (UTC). |
| `input` | object | yes | The parameters as applied, defaults filled in. |
| `usage` | [Usage](#schema-Usage) | yes |  |
| `warnings` | array of [Warning](#schema-Warning) |  |  |
| `suggestions` | array of object | yes |  |
| `suggestions.value` | string | yes |  |
| `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 | Required | 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 |  |  |
| `pdf.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 | Required | 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 | Required | Description |
| --- | --- | --- | --- |
| `requested_url` | string | yes |  |
| `url` | string |  | Final URL after redirects. For now the requested URL, because the reader does not report the final one yet. |
| `status` | string | yes | One of `ok`, `failed`. |
| `error` | object |  |  |
| `error.code` | string | yes |  |
| `error.message` | string | yes |  |
| `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. |
| `links.url` | string | yes |  |
| `links.text` | string |  |  |
| `links.rel` | string |  |  |
| `images` | array of object |  | At most 200 items. |
| `images.url` | string | yes |  |
| `images.alt` | string |  |  |
| `images.width` | integer |  |  |
| `images.height` | integer |  |  |
| `pdf_pages` | integer |  |  |
| `relevant_passages` | array of string |  |  |
| `fetched_at` | integer |  |  |

### FetchResponse

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.fetch`. |
| `request_id` | string | yes | Same as the X-Request-Id header. |
| `created` | integer | yes | Unix seconds (UTC). |
| `input` | object | yes | The parameters as applied, defaults filled in. |
| `usage` | [Usage](#schema-Usage) | yes |  |
| `cache` | [Cache](#schema-Cache) |  |  |
| `warnings` | array of [Warning](#schema-Warning) |  |  |
| `page` | [FetchPage](#schema-FetchPage) |  |  |
| `pages` | array of [FetchPage](#schema-FetchPage) |  |  |

### ExtractRequest

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `urls` | array of string |  | 1 to 10 items. |
| `text` | string |  | 1 to 200,000 characters. |
| `schema` | [JsonSchemaObject](#schema-JsonSchemaObject) | yes | JSON Schema 2020-12 subset; root must be an object; at most 16 KB, depth 5, 200 properties. |
| `instructions` | string |  | At most 4000 characters. |
| `merge` | boolean |  | Default `false`. |
| `max_chars_per_page` | integer |  | 1000 to 200,000. Default `50000`. |
| `include_sources` | boolean |  | Default `true`. |
| `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 |  | 5000 to 60,000. |

### ExtractItem

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string |  |  |
| `status` | string | yes | One of `ok`, `failed`. |
| `data` | object |  |  |
| `error` | object |  |  |
| `error.code` | string | yes |  |
| `error.message` | string |  |  |
| `sources` | object |  | Top-level property to the URLs its value came from. |

### ExtractResponse

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.extract`. |
| `request_id` | string | yes | Same as the X-Request-Id header. |
| `created` | integer | yes | Unix seconds (UTC). |
| `input` | object | yes | The parameters as applied, defaults filled in. |
| `usage` | [Usage](#schema-Usage) | yes |  |
| `cache` | [Cache](#schema-Cache) |  |  |
| `warnings` | array of [Warning](#schema-Warning) |  |  |
| `data` | object |  | With merge: true. |
| `items` | array of [ExtractItem](#schema-ExtractItem) |  |  |
| `sources` | object |  |  |
| `schema_valid` | boolean | yes | Always `true`. |

### PlaceDetailsRequest

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `place_id` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `house_number` | string |  |  |
| `street` | string |  |  |
| `district` | string |  |  |
| `city` | string |  |  |
| `region` | string |  |  |
| `postal_code` | string |  |  |
| `country` | string |  |  |
| `country_code` | string |  |  |

### Place

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `position` | integer | yes | At least 1. |
| `title` | string | yes |  |
| `origin` | string | yes | Our neutral label of how the result reached you. New values can appear. One of `index`, `live`, `open_data`. |
| `place_id` | string | yes | 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 |  |  |
| `location` | object | yes |  |
| `location.lat` | number | yes | -90 to 90. |
| `location.lon` | number | yes | -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 |  |  |
| `photos.url` | string | yes |  |
| `photos.width` | integer |  |  |
| `photos.height` | integer |  |  |
| `updated_at` | integer |  |  |

### PlaceDetailsResponse

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.place`. |
| `request_id` | string | yes | Same as the X-Request-Id header. |
| `created` | integer | yes | Unix seconds (UTC). |
| `input` | object | yes | The parameters as applied, defaults filled in. |
| `usage` | [Usage](#schema-Usage) | yes |  |
| `cache` | [Cache](#schema-Cache) |  |  |
| `warnings` | array of [Warning](#schema-Warning) |  |  |
| `place` | [Place](#schema-Place) | yes |  |

### PlaceReviewsRequest

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `place_id` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `review_id` | string |  |  |
| `rating` | number | yes | 0 to 5. |
| `text` | string |  |  |
| `published_at` | string |  |  |
| `language` | string |  |  |
| `author` | object |  |  |
| `author.name` | string |  | Public display name only. |
| `likes` | integer |  |  |
| `owner_response` | object |  |  |
| `owner_response.text` | string |  |  |
| `owner_response.published_at` | string |  |  |
| `photos` | array of object |  |  |
| `photos.url` | string | yes |  |

### PlaceReviewsResponse

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.place_reviews`. |
| `request_id` | string | yes | Same as the X-Request-Id header. |
| `created` | integer | yes | Unix seconds (UTC). |
| `input` | object | yes | The parameters as applied, defaults filled in. |
| `usage` | [Usage](#schema-Usage) | yes |  |
| `cache` | [Cache](#schema-Cache) |  |  |
| `warnings` | array of [Warning](#schema-Warning) |  |  |
| `reviews` | array of [Review](#schema-Review) | yes |  |
| `topics` | array of object |  |  |
| `topics.id` | string | yes |  |
| `topics.label` | string | yes |  |
| `topics.count` | integer |  |  |
| `rating` | number |  |  |
| `rating_count` | integer |  |  |
| `next_page_token` | string |  |  |

### GeocodeRequest

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string |  | 2 to 512 characters. |
| `address` | object |  |  |
| `address.street` | string |  | At most 128 characters. |
| `address.house_number` | string |  | At most 128 characters. |
| `address.city` | string |  | At most 128 characters. |
| `address.district` | string |  | At most 128 characters. |
| `address.region` | string |  | At most 128 characters. |
| `address.postal_code` | string |  | At most 128 characters. |
| `address.country` | string |  | At most 128 characters. |
| `country` | string or array of string |  |  |
| `near` | object |  |  |
| `near.lat` | number | yes | -90 to 90. |
| `near.lon` | number | yes | -180 to 180. |
| `language` | string |  | BCP 47 language tag. At most 12 characters. |
| `limit` | integer |  | 1 to 20. Default `5`. |

### ReverseGeocodeRequest

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `lat` | number | yes | -90 to 90. |
| `lon` | number | yes | -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 | Required | Description |
| --- | --- | --- | --- |
| `formatted_address` | string | yes |  |
| `name` | string |  | Name of the place when it has one. |
| `location` | object | yes |  |
| `location.lat` | number | yes | -90 to 90. |
| `location.lon` | number | yes | -180 to 180. |
| `components` | [AddressComponents](#schema-AddressComponents) |  |  |
| `kind` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.geocode`. |
| `request_id` | string | yes | Same as the X-Request-Id header. |
| `created` | integer | yes | Unix seconds (UTC). |
| `input` | object | yes | The parameters as applied, defaults filled in. |
| `usage` | [Usage](#schema-Usage) | yes |  |
| `cache` | [Cache](#schema-Cache) |  |  |
| `warnings` | array of [Warning](#schema-Warning) |  |  |
| `results` | array of [GeocodeResult](#schema-GeocodeResult) | yes |  |
| `attribution` | string | yes | Licence notice of the map data. Always present; show it where the results are shown. |

### ReverseGeocodeResponse

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.reverse_geocode`. |
| `request_id` | string | yes | Same as the X-Request-Id header. |
| `created` | integer | yes | Unix seconds (UTC). |
| `input` | object | yes | The parameters as applied, defaults filled in. |
| `usage` | [Usage](#schema-Usage) | yes |  |
| `cache` | [Cache](#schema-Cache) |  |  |
| `warnings` | array of [Warning](#schema-Warning) |  |  |
| `results` | array of [GeocodeResult](#schema-GeocodeResult) | yes |  |
| `attribution` | string | yes | Licence notice of the map data. Always present; show it where the results are shown. |

### LensRequest

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `image_url` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `position` | integer | yes | 1-based rank across pages. At least 1. |
| `title` | string | yes |  |
| `url` | string | yes | Real destination URL, never a redirect link. |
| `domain` | string | yes | 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. |
| `origin` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.lens`. |
| `request_id` | string | yes | Same as the X-Request-Id header. |
| `created` | integer | yes | Unix seconds (UTC). |
| `input` | object | yes | The parameters as applied, defaults filled in. |
| `usage` | [Usage](#schema-Usage) | yes |  |
| `cache` | [Cache](#schema-Cache) |  |  |
| `warnings` | array of [Warning](#schema-Warning) |  |  |
| `results` | array of [LensResult](#schema-LensResult) | yes |  |
| `entities` | array of object |  |  |
| `entities.name` | string | yes |  |
| `entities.kind` | string |  |  |

### JobStatus

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

### StopReason

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

### ResearchRequest

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | 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 |  |  |
| `output.format` | string |  | One of `markdown`, `json`. Default `markdown`. |
| `output.schema` | [JsonSchemaObject](#schema-JsonSchemaObject) |  | JSON Schema 2020-12 subset; root must be an object; at most 16 KB, depth 5, 200 properties. |
| `output.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 | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.research`. |
| `id` | string | yes | At most 64 characters. Starts with `wr_`. |
| `status` | string | yes | One of `queued`, `running`, `succeeded`, `failed`, `cancelled`. |
| `stop_reason` | string |  | One of `completed`, `budget`, `limit`, `cancelled`, `deadline`, `error`. |
| `created_at` | integer | yes |  |
| `started_at` | integer |  |  |
| `completed_at` | integer |  |  |
| `input` | object | yes |  |
| `usage` | [JobUsage](#schema-JobUsage) | yes |  |
| `error` | object |  |  |
| `error.code` | string | yes |  |
| `error.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 |  |  |
| `progress.steps_done` | integer |  |  |
| `progress.searches` | integer |  |  |
| `progress.pages_read` | integer |  |  |
| `progress.sources_kept` | integer |  |  |
| `report` | object |  |  |
| `report.format` | string | yes | One of `markdown`, `json`. |
| `report.text` | string |  |  |
| `report.data` | object |  |  |
| `report.sources` | array of [Citation](#schema-Citation) | yes |  |

### JobEvent

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `seq` | integer | yes |  |
| `event` | string | yes | One of `status`, `search`, `page`, `note`, `report`, `error`, `done`. |
| `data` | object |  |  |
| `created` | integer | yes |  |

### JobEventList

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `list`. |
| `data` | array of [JobEvent](#schema-JobEvent) | yes |  |
| `has_more` | boolean | yes |  |
| `next_cursor` | string |  |  |

### CrawlRequest

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.crawl`. |
| `id` | string | yes | At most 64 characters. Starts with `wc_`. |
| `status` | string | yes | One of `queued`, `running`, `succeeded`, `failed`, `cancelled`. |
| `stop_reason` | string |  | One of `completed`, `budget`, `limit`, `cancelled`, `deadline`, `error`. |
| `created_at` | integer | yes |  |
| `started_at` | integer |  |  |
| `completed_at` | integer |  |  |
| `input` | object | yes |  |
| `usage` | [JobUsage](#schema-JobUsage) | yes |  |
| `error` | object |  |  |
| `error.code` | string | yes |  |
| `error.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 |  |  |
| `progress.discovered` | integer |  |  |
| `progress.queued` | integer |  |  |
| `progress.read` | integer |  |  |
| `progress.failed` | integer |  |  |
| `progress.skipped_robots` | integer |  |  |
| `progress.skipped_scope` | integer |  |  |

### CrawlPage

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `requested_url` | string | yes |  |
| `url` | string |  | Final URL after redirects. For now the requested URL, because the reader does not report the final one yet. |
| `status` | string | yes | One of `ok`, `failed`. |
| `error` | object |  |  |
| `error.code` | string | yes |  |
| `error.message` | string | yes |  |
| `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. |
| `links.url` | string | yes |  |
| `links.text` | string |  |  |
| `links.rel` | string |  |  |
| `images` | array of object |  | At most 200 items. |
| `images.url` | string | yes |  |
| `images.alt` | string |  |  |
| `images.width` | integer |  |  |
| `images.height` | integer |  |  |
| `pdf_pages` | integer |  |  |
| `relevant_passages` | array of string |  |  |
| `fetched_at` | integer |  |  |
| `depth` | integer |  |  |

### CrawlPageList

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `list`. |
| `data` | array of [CrawlPage](#schema-CrawlPage) | yes |  |
| `has_more` | boolean | yes |  |
| `next_cursor` | string |  |  |

### MapRequest

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.map`. |
| `request_id` | string | yes | Same as the X-Request-Id header. |
| `created` | integer | yes | Unix seconds (UTC). |
| `input` | object | yes | The parameters as applied, defaults filled in. |
| `usage` | [Usage](#schema-Usage) | yes |  |
| `cache` | [Cache](#schema-Cache) |  |  |
| `warnings` | array of [Warning](#schema-Warning) |  |  |
| `urls` | array of object | yes |  |
| `urls.url` | string | yes |  |
| `urls.lastmod` | string |  |  |
| `urls.title` | string |  |  |
| `urls.source` | string | yes | One of `sitemap`, `links`. |
| `count` | integer | yes |  |
| `truncated` | boolean | yes |  |

### BatchItem

| Name | Type | Required | 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. |
| `endpoint` | string | yes | One of `search`, `fetch`, `autocomplete`, `knowledge`, `geocode`, `reverse-geocode`, `places/details`, `extract`. |
| `body` | object | yes | The request body of that endpoint. |

### BatchRequest

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `requests` | array of [BatchItem](#schema-BatchItem) | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `index` | integer | yes |  |
| `custom_id` | string |  |  |
| `status` | integer | yes | HTTP status the call would have had alone. |
| `body` | object | yes | Response or error body of the item. |

### BatchResponse

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.batch`. |
| `request_id` | string | yes | Same as the X-Request-Id header. |
| `created` | integer | yes | Unix seconds (UTC). |
| `usage` | [Usage](#schema-Usage) | yes |  |
| `warnings` | array of [Warning](#schema-Warning) |  |  |
| `results` | array of [BatchResult](#schema-BatchResult) | yes |  |

### BatchJob

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.batch_job`. |
| `id` | string | yes | At most 64 characters. Starts with `wb_`. |
| `status` | string | yes | One of `queued`, `running`, `succeeded`, `failed`, `cancelled`. |
| `stop_reason` | string |  | One of `completed`, `budget`, `limit`, `cancelled`, `deadline`, `error`. |
| `created_at` | integer | yes |  |
| `started_at` | integer |  |  |
| `completed_at` | integer |  |  |
| `input` | object | yes |  |
| `usage` | [JobUsage](#schema-JobUsage) | yes |  |
| `error` | object |  |  |
| `error.code` | string | yes |  |
| `error.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 |  |  |
| `progress.total` | integer |  |  |
| `progress.done` | integer |  |  |
| `progress.ok` | integer |  |  |
| `progress.failed` | integer |  |  |

### BatchResultList

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `list`. |
| `data` | array of [BatchResult](#schema-BatchResult) | yes |  |
| `has_more` | boolean | yes |  |
| `next_cursor` | string |  |  |

### UsageRow

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `day` | string |  | Date YYYY-MM-DD (UTC). |
| `endpoint` | string |  |  |
| `calls` | integer | yes |  |
| `charged_calls` | integer | yes |  |
| `credits` | number | yes |  |
| `cost_usd` | number | yes |  |

### UsageReport

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.usage`. |
| `request_id` | string | yes | Same as the X-Request-Id header. |
| `created` | integer | yes | Unix seconds (UTC). |
| `from` | string | yes | Date YYYY-MM-DD (UTC). |
| `to` | string | yes | Date YYYY-MM-DD (UTC). |
| `group_by` | string |  | The grouping of data, as requested. One of `day`, `endpoint`, `day_endpoint`. |
| `totals` | object | yes |  |
| `totals.calls` | integer | yes |  |
| `totals.charged_calls` | integer | yes |  |
| `totals.credits` | number | yes |  |
| `totals.cost_usd` | number | yes |  |
| `data` | array of [UsageRow](#schema-UsageRow) | yes |  |
| `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. |
| `pricing.price_per_1000_credits_usd` | number | yes | Above 0. |
| `pricing.weights` | object | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.status`. |
| `request_id` | string | yes | Same as the X-Request-Id header. |
| `created` | integer | yes | Unix seconds (UTC). |
| `mode` | string | yes | 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`. |
| `endpoints` | array of object | yes |  |
| `endpoints.endpoint` | string | yes |  |
| `endpoints.state` | string | yes | One of `available`, `degraded`, `unavailable`, `not_offered`. |
| `endpoints.stage` | string |  | One of `S2`, `S3`, `S4`. |
| `endpoints.measured` | object |  | Measured numbers; a report, not a promise. |
| `key` | object |  |  |
| `key.rate_limit` | integer |  |  |
| `key.concurrency_limit` | integer |  |  |
| `key.async_jobs_running` | integer |  |  |
| `key.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_at` | integer | yes |  |

### McpMessage

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

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `jsonrpc` | string | yes | Always `2.0`. |
| `id` | string or integer or null |  |  |
| `method` | string |  |  |
| `params` | object |  |  |
| `result` | object |  |  |
| `error` | object |  |  |
| `error.code` | integer | yes |  |
| `error.message` | string | yes |  |
| `error.data` | any |  |  |

### DataAttribution

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `source` | string | yes | Name of the open data set the fact comes from. |
| `url` | string | yes |  |
| `license` | string | yes | For example CC BY-SA 4.0 or CC0 1.0. |

### KnowledgeRequest

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string | yes | 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 | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | Always `web.knowledge`. |
| `request_id` | string | yes | Same as the X-Request-Id header. |
| `created` | integer | yes | Unix seconds (UTC). |
| `input` | object | yes | The parameters as applied, defaults filled in. |
| `usage` | [Usage](#schema-Usage) | yes |  |
| `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. |
