API reference
Answers
Ask a research question and get a sourced, structured answer.
POSThttps://api.scrapeflow.dev/v1/web/answers5 credits
Runs multi-step web research and returns a synthesized answer with the source URLs it used. Pass a `schema` to shape the answer into your own JSON.
Request
curl -X POST ${SCRAPEFLOW_API_URL}/v1/web/answers \
-H "Authorization: Bearer $SCRAPEFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "query": "What are Linear's main product features?" }'Parameters
| Parameter | Type | Description |
|---|---|---|
| queryrequired | string | The research question. |
| schema | object | JSON schema to structure the answer. |
| maxSources | number | How many sources to consult. Default 8. |
Response
json
{
"success": true,
"credits_used": 5,
"answer": "Linear's core features are Issues, Projects, and Roadmaps.",
"sources": ["https://linear.app", "https://linear.app/features"]
}