Social Fetch
Web

Ask a question about a web page

Ask a natural-language question about a web page and get an LLM-generated answer.

GET/v1/web/ask
1credit
x-api-key*stringheader

API key (`sfk_...`)

Parameters
2
url*stringquery

Web page URL to fetch.

min 1 chars · max 2083 chars

q*stringquery

Natural-language question to answer about the page content.

min 1 chars · max 500 chars

Response fields
8

Endpoint-specific response payload.

datalookupStatus
string

Whether page content could be extracted. Restricted means bot protection or similar access controls blocked automated fetching.

one of: found, restricted

dataurl
string

URL that was analyzed.

dataanswer
stringnullable

LLM-generated answer when lookupStatus is found; null when restricted.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/web/ask?url=https://www.socialfetch.dev&q=What is this page about?" \
  -H "x-api-key: YOUR_API_KEY"

Responses

LLM answer for the question about the page. Check data.lookupStatus: found returns answer; restricted means bot or access protection blocked the fetch (answer is null).

On this page

No Headings