Web
Ask a question about a web page
Ask a natural-language question about a web page and get an LLM-generated answer.
Operation
GET
/v1/web/askHeaders
x-api-keystringrequired(header)
API key (`sfk_...`)
Parameters
urlstringrequired(query)
Absolute http or https URL to fetch.
min 1 chars · max 2083 chars
qstringrequired(query)
Natural-language question to answer about the page content.
min 1 chars · max 500 chars
Response fields
data
objectrequired
Endpoint-specific response payload.
dataurl
stringrequired
URL that was analyzed.
dataanswer
stringrequired
LLM-generated answer to the question about the page.
meta
objectrequired
Metadata describing the request and billing outcome.
metarequestId
stringrequired
Unique request identifier for tracing this API call.
min 1 chars
metacreditsCharged
integerrequired
Credits charged for this request.
≥ 0
metaversion
stringrequired
Public API version that served the response.
one of: v1
Code example
Responses
LLM answer for the question about the page.
Error codes
bad_requestinsufficient_creditsinternal_errorlookup_failedtemporarily_unavailableunauthorized