Готовит в отдельной задаче отчёт по вопросу со ссылками на источники.
Справочник написан на английском. Названия полей, примеры и коды ошибок на всех языках одинаковые.
Plans searches, reads pages and writes a report as an asynchronous job. Every claim in the report cites a numbered source that the job read. depth (quick, standard, deep) sets the default limits of searches, pages and report length.
Progress can be read as events, either as a server-sent event stream or as a JSON list. A job and its report are kept for 30 days after the job ends.
What is charged
Charged per unit used while the job runs (searches, pages read and model work), when the job produced a report (complete or partial) or was cancelled by you. A job that failed on our side without a report is free. max_cost_usd caps what one job can charge.
Units: research_search, research_page, research_model. usage.items in the response lists them.
Start a research job
POST https://api.websearch.fast/v1/web/research
Planned. Until it ships, calls return 501 api_not_implemented.
Headers
Name
Type
Description
Idempotency-Key
string
1 to 128 bytes; a retry with the same key and body within 24 hours returns the same job. 1 to 128 characters.
Body
Name
Type
Description
queryrequired
string
1 to 4000 characters.
instructions
string
At most 8000 characters.
depth
string
One of quick, standard, deep. Default standard.
max_searches
integer
1 to 200.
max_pages
integer
1 to 400.
language
string
BCP 47 language tag. At most 12 characters.
country
string
ISO 3166-1 alpha-2 country code, case-insensitive.
freshness
string
Only results published within this period. One of hour, day, week, month, year.
date_from
string
Date YYYY-MM-DD (UTC).
date_to
string
Date YYYY-MM-DD (UTC).
include_domains
array of string
Host names; subdomains included. At most 20 items.
exclude_domains
array of string
At most 50 items.
output
object
Show fields
Name
Type
Description
format
string
One of markdown, json. Default markdown.
schema
object
JSON Schema 2020-12 subset; root must be an object; at most 16 KB, depth 5, 200 properties.
max_words
integer
100 to 10,000.
webhook_url
string
Public https URL that receives the final job object, signed with webhook_secret. At most 500 characters.
metadata
object
Your own string values, echoed on the job; at most 4 KB.
Example request
curl https://api.websearch.fast/v1/web/research \
-H "Authorization: Bearer $WEBSEARCH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"query": "How did residential heat pump sales in the EU change in 2025 and why?",
"depth": "standard"
}'
import os
import uuid
import httpx
response = httpx.post(
"https://api.websearch.fast/v1/web/research",
headers={"Authorization": f"Bearer {os.environ['WEBSEARCH_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"query": "How did residential heat pump sales in the EU change in 2025 and why?",
"depth": "standard",
},
timeout=60,
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://api.websearch.fast/v1/web/research", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.WEBSEARCH_API_KEY}`,
"Idempotency-Key": crypto.randomUUID(),
"Content-Type": "application/json",
},
body: JSON.stringify({
query: "How did residential heat pump sales in the EU change in 2025 and why?",
depth: "standard",
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());
Example response
{"object": "web.research","id": "wr_01JD7Q9R2M","status": "queued","created_at": 1795867205,"input":{"query": "How did residential heat pump sales in the EU change in 2025 and why?","depth": "standard","max_searches": 30,"max_pages": 50,"output":{"format": "markdown","max_words": 1500}},"progress":{"steps_done": 0,"searches": 0,"pages_read": 0,"sources_kept": 0
},"poll_after_ms": 5000,"expires_at": 1798459205
}
Response fields
Job created; the ceiling is reserved.
Name
Type
Description
objectrequired
string
Always web.research.
idrequired
string
At most 64 characters. Starts with wr_.
statusrequired
string
One of queued, running, succeeded, failed, cancelled.
stop_reason
string
One of completed, budget, limit, cancelled, deadline, error.
created_atrequired
integer
started_at
integer
completed_at
integer
inputrequired
object
usagerequired
object
Show fields
Name
Type
Description
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
error
object
Show fields
Name
Type
Description
coderequired
string
message
string
poll_after_ms
integer
webhook_secret
string
Only in the create response, when webhook_url was set.
metadata
object
expires_at
integer
progress
object
Show fields
Name
Type
Description
steps_done
integer
searches
integer
pages_read
integer
sources_kept
integer
report
object
Show fields
Name
Type
Description
formatrequired
string
One of markdown, json.
text
string
data
object
sourcesrequired
array of object
Show fields
Name
Type
Description
indexrequired
integer
At least 1.
urlrequired
string
title
string
site_name
string
published_at
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.
409
idempotency_conflict or request_in_progress. 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.
504
timeout. Not charged.
Get a research job
GET https://api.websearch.fast/v1/web/research/{id}
Planned. Until it ships, calls return 501 api_not_implemented.
One of queued, running, succeeded, failed, cancelled.
stop_reason
string
One of completed, budget, limit, cancelled, deadline, error.
created_atrequired
integer
started_at
integer
completed_at
integer
inputrequired
object
usagerequired
object
Show fields
Name
Type
Description
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
error
object
Show fields
Name
Type
Description
coderequired
string
message
string
poll_after_ms
integer
webhook_secret
string
Only in the create response, when webhook_url was set.
metadata
object
expires_at
integer
progress
object
Show fields
Name
Type
Description
steps_done
integer
searches
integer
pages_read
integer
sources_kept
integer
report
object
Show fields
Name
Type
Description
formatrequired
string
One of markdown, json.
text
string
data
object
sourcesrequired
array of object
Show fields
Name
Type
Description
indexrequired
integer
At least 1.
urlrequired
string
title
string
site_name
string
published_at
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.
504
timeout. Not charged.
Cancel a research job
POST https://api.websearch.fast/v1/web/research/{id}/cancel
Planned. Until it ships, calls return 501 api_not_implemented.
Path parameters
Name
Type
Description
idrequired
string
Starts with wr_.
Example request
curl -X POST https://api.websearch.fast/v1/web/research/wr_01JD7Q9R2M/cancel \
-H "Authorization: Bearer $WEBSEARCH_API_KEY"
One of queued, running, succeeded, failed, cancelled.
stop_reason
string
One of completed, budget, limit, cancelled, deadline, error.
created_atrequired
integer
started_at
integer
completed_at
integer
inputrequired
object
usagerequired
object
Show fields
Name
Type
Description
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
error
object
Show fields
Name
Type
Description
coderequired
string
message
string
poll_after_ms
integer
webhook_secret
string
Only in the create response, when webhook_url was set.
metadata
object
expires_at
integer
progress
object
Show fields
Name
Type
Description
steps_done
integer
searches
integer
pages_read
integer
sources_kept
integer
report
object
Show fields
Name
Type
Description
formatrequired
string
One of markdown, json.
text
string
data
object
sourcesrequired
array of object
Show fields
Name
Type
Description
indexrequired
integer
At least 1.
urlrequired
string
title
string
site_name
string
published_at
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.
504
timeout. Not charged.
Progress events of a research job
GET https://api.websearch.fast/v1/web/research/{id}/events
Planned. Until it ships, calls return 501 api_not_implemented.
text/event-stream with Accept: text/event-stream (reconnect with Last-Event-ID), otherwise a JSON list.
Name
Type
Description
objectrequired
string
Always list.
datarequired
array of object
Show fields
Name
Type
Description
seqrequired
integer
eventrequired
string
One of status, search, page, note, report, error, done.
data
object
createdrequired
integer
has_morerequired
boolean
next_cursor
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.