Answer a question from the live web, with the source of each value.
GET/v1/web-search
- Takes: Name
- Takes: URL
- Passive: the target is not contacted
- Cost: $5 per 1,000 searches of up to 10 results; $1 per 1,000 with speed=fast
Supports site:, -site:, filetype:, after: and before: operators in q. kind is list or fact; for lists, handoff points to a full table. Send an Idempotency-Key header to be charged once per id.
Query parameters
qThe question in everyday words, 1 to 2000 characters
passagesReturn text of the top pages with highlights
compactCompact sources with no answer, rows, handoff or passages
numNumber of results, 1 to 200 (200 only with images=true)
pageResults page, 1 to 10
speedfast returns results without an answer, rows or passages
newsReturn news items instead of web results
languageTwo-letter ISO 639-1 result language
countryTwo-letter ISO 3166-1 country the results are for
safeSafe search level
Response fields · 12ShowHide
request_id
Request id
query
The question asked
kind
list or fact, when the question was classified
columns[]
Column names of the rows
answer
The answer value, with its source
rows[]
Result rows, each value with its source
url
Result page address
title
Result page title
snippet
Result snippet
took_ms
Time taken in milliseconds
price_usd
Price of the call in US dollars
next_page
Next results page, if any
curl 'https://api.specstream.ai/v1/web-search?q=who%20is%20the%20registrar%20of%20example.com' \
-H 'Authorization: Bearer YOUR_API_KEY'{
"data": {
"request_id": "req_example1",
"query": "who is the registrar of example.com",
"kind": "fact",
"sources": [
{
"url": "https://example.com/about",
"title": "About Example",
"snippet": "Made-up snippet text."
}
],
"took_ms": 1800,
"price_usd": 0.005,
"next_page": null
}
}