Web results, optionally with the text of the top pages.
Searches the web, or one vertical chosen with type. Every url is the address of the destination page itself. With content, the same response carries the cleaned text of the top pages, so a model does not need a second call to read them.
Page 1 of a type: web search that has results may carry knowledge_panel: the encyclopedia card of the person, place, organization or thing the query names, the same object as panel of knowledge. It is included in the search price and adds no unit. A search without a panel costs the same.
type: web and content are available. The other types (news, images, videos, places, shopping, scholar, patents) and answer are planned; until each ships, a call that asks for it gets 501 api_not_implemented.
Operators inside q (site:, -site:, "exact phrase", -term, OR, before:YYYY-MM-DD, after:YYYY-MM-DD) are parsed into the fields below and echoed in input.operators. An operator that conflicts with an explicit field returns 400 invalid_request.
What is charged
Charged when at least one result comes back. An empty result set returns results: [] with the warning no_results and is free, as is every error. Pages that could not be read for content are free; when fewer pages than asked were read, the warning content_partial says how many.
Units: search_web, content_page. usage.items in the response lists them.
Request
POST https://api.websearch.fast/v1/web/search
type: web and content are available; other types and answer are planned.
Body
Name
Type
Description
qrequired
string
The query. Operators: site:, -site:, quotes, -term, OR, before:, after:; filetype:, intitle:, inurl: (planned). 1 to 2048 characters.
type
string
The vertical. Types not shipped yet return 501 api_not_implemented. One of web, news, images, videos, places, shopping, scholar, patents. Default web.
country
string
ISO 3166-1 alpha-2 country code, case-insensitive.
language
string
BCP 47 language tag. At most 12 characters.
location
string
Place to rank for, as text. 2 to 256 characters.
near
object
places only; exclusive with location.Show fields
Name
Type
Description
latrequired
number
-90 to 90.
lonrequired
number
-180 to 180.
radius_m
integer
100 to 50,000. Default 5000.
freshness
string
Only results published within this period. Until the hourly filter ships, hour returns 501 api_not_implemented. One of hour, day, week, month, year.
date_from
string
Date YYYY-MM-DD (UTC).
date_to
string
Date YYYY-MM-DD (UTC).
page
integer
Results are read in blocks of 10 to 100 that start on a multiple of the block size; a page and num pair that does not fit in one block returns 400 with param num. 1 to 10. Default 1.
num
integer
Default 10 (images and shopping 20). page * num at most 200. 1 to 100.
safe
string
One of off, moderate, strict. Default moderate.
include_domains
array of string
Host names; subdomains included. At most 20 items.
exclude_domains
array of string
At most 50 items.
content
object
Cleaned text of the top pages.Show fields
Name
Type
Description
pages
integer
At most num. On a page above 1, content needs a num that is a multiple of 10, otherwise 400 with param content. 1 to 10. Default 3.
format
string
One of markdown, text. Default markdown.
max_chars_per_page
integer
500 to 50,000. Default 8000.
mode
string
One of full, relevant. Default full.
answer
boolean or object
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.
{"object": "web.search","request_id": "20261128120000123456789a1b2c3d4Kx7Qm2Pz","created": 1795867200,"input":{"q": "rust async runtime comparison","type": "web","page": 1,"num": 3,"safe": "moderate","operators":{},"content":{"pages": 1,"format": "markdown","max_chars_per_page": 3000,"mode": "full"
},"timeout_ms": 25000
},"results":[{"position": 1,"title": "Choosing an async runtime in 2026","url": "https://blog.example.com/posts/async-runtimes-2026","domain": "blog.example.com","snippet": "We benchmarked four runtimes on the same HTTP workload and compared scheduling, I/O and memory use.","published_at": "2026-09-14T00:00:00Z","origin": "index","content":{"status": "ok","format": "markdown","chars": 3000,"truncated": true,"text": "# Choosing an async runtime in 2026\n\n...","fetched_at": 1795860000
}},{"position": 2,"title": "Async runtimes: a comparison of schedulers","url": "https://docs.example.org/rust/async/runtimes","domain": "docs.example.org","snippet": "How work-stealing and thread-per-core runtimes differ, with notes on when each fits.","published_at": "2026-06-02T00:00:00Z","origin": "live"
},{"position": 3,"title": "Moving a service between async runtimes","url": "https://www.example.net/notes/runtime-migration","domain": "www.example.net","snippet": "What changed in our code when we moved a Rust service from one async runtime to another.","published_at": "2026-03-21T00:00:00Z","origin": "live"
}],"has_more": true,"usage":{"charged": true,"items":[{"unit": "search_web","count": 1},{"unit": "content_page","count": 1}]},"cache":{"hit": false,"data_age_seconds": 0,"fetched_at": 1795867200}}
Response fields
Results. An empty list carries the warning no_results and is not charged.
Name
Type
Description
objectrequired
string
Always web.search.
request_idrequired
string
Same as the X-Request-Id header.
createdrequired
integer
Unix seconds (UTC).
inputrequired
object
The parameters as applied, defaults filled in.
usagerequired
object
Show fields
Name
Type
Description
chargedrequired
boolean
itemsrequired
array of object
Show fields
Name
Type
Description
unitrequired
string
Billable unit, for example search_web, content_page, fetch_page, geocode, autocomplete, knowledge.
countrequired
integer
cache
object
Show fields
Name
Type
Description
hitrequired
boolean
The response, or every page in it, came from a stored copy.
data_age_secondsrequired
integer
Age of the oldest part of the response.
fetched_atrequired
integer
Unix seconds when the oldest part was read.
warnings
array of object
Show fields
Name
Type
Description
coderequired
string
For example no_results, content_partial, answer_unavailable, partial, all_failed, reach_reduced.
message
string
param
string
resultsrequired
array of object
Show fields
Name
Type
Description
positionrequired
integer
1-based rank across pages. At least 1.
titlerequired
string
urlrequired
string
Real destination URL, never a redirect link.
domainrequired
string
Host of url, lowercase, without www.
snippet
string
At most 400 characters.
published_at
string
ISO 8601 UTC, when known.
site_name
string
The publisher's own name, when known.
originrequired
string
Our neutral label of how the result reached you. New values can appear. One of index, live, open_data.
sitelinks
array of object
At most 8 items.Show fields
Name
Type
Description
titlerequired
string
urlrequired
string
attributes
object
Facts shown with the result.
content
object
Cleaned page text added by the content option.Show fields
Name
Type
Description
statusrequired
string
One of ok, failed.
error_code
string
One of fetch_failed, site_refused, unsupported_content, page_too_large, timeout.
format
string
One of markdown, text.
text
string
chars
integer
truncated
boolean
title
string
fetched_at
integer
Unix seconds when the page was read.
has_morerequired
boolean
answer_box
object
Show fields
Name
Type
Description
title
string
answerrequired
string
snippet
string
url
string
knowledge_panel
object
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.Show fields
Name
Type
Description
titlerequired
string
type
string
Short label, for example Physicist or City.
description
string
A short text from the encyclopedia article.
description_url
string
The article the description comes from.
description_site_name
string
Name of the encyclopedia, with description_url.
website
string
Official website of the entity.
attributes
object
Key facts as name: value, in a stable order.
attributionrequired
array of object
The open data projects the data comes from, with their licences. Show it with the data.Show fields
Name
Type
Description
sourcerequired
string
Name of the open data set the fact comes from.
urlrequired
string
licenserequired
string
For example CC BY-SA 4.0 or CC0 1.0.
related_questions
array of object
Show fields
Name
Type
Description
questionrequired
string
snippet
string
title
string
url
string
related_searches
array of object
Show fields
Name
Type
Description
queryrequired
string
top_stories
array of object
At most 10 items.Show fields
Name
Type
Description
positionrequired
integer
1-based rank across pages. At least 1.
titlerequired
string
urlrequired
string
Real destination URL, never a redirect link.
domainrequired
string
Host of url, lowercase, without www.
snippet
string
At most 400 characters.
published_at
string
ISO 8601 UTC, when known.
site_name
string
The publisher's own name, when known.
originrequired
string
Our neutral label of how the result reached you. New values can appear. One of index, live, open_data.
image_url
string
authors
array of string
content
object
Cleaned page text added by the content option.Show fields
Name
Type
Description
statusrequired
string
One of ok, failed.
error_code
string
One of fetch_failed, site_refused, unsupported_content, page_too_large, timeout.
format
string
One of markdown, text.
text
string
chars
integer
truncated
boolean
title
string
fetched_at
integer
Unix seconds when the page was read.
answer
object
Planned.Show fields
Name
Type
Description
statusrequired
string
One of ok, unavailable.
text
string
Markdown with [n] markers that index citations.
data
object
Structured answer when answer.schema was sent.
citations
array of object
Show fields
Name
Type
Description
indexrequired
integer
At least 1.
urlrequired
string
title
string
site_name
string
published_at
string
language
string
Errors
Status
Codes
400
invalid_request, invalid_url, invalid_schema or invalid_image. Not charged.
401
invalid_token. Not charged.
403
pre_consume_token_quota_failed (the key's own spending limit), access_denied, web_not_allowed or model_not_in_plan (customer keys while plans cannot include the web tools). Not charged.
404
not_found or invalid_endpoint. Not charged.
413
read_request_body_failed: the request body is over the limit. Not charged.
429
rate_limited, concurrency_limited, api_key_temporarily_frozen, or the failure guard. Not charged.
500
internal_error. Not charged.
501
api_not_implemented: the endpoint, type or option has not shipped. Not charged.
503
source_unavailable, web_api_disabled, token_cache_busy or billing_busy (the charge could not be prepared in time; retry after Retry-After). Not charged.