Docs
Extract
POST /v1/extract returns structured data from a page using a prompt and optional JSON schema. Costs 3 credits. View as Markdown
POST /v1/extract reads a page and returns data shaped by your prompt and JSON schema. Costs 3 credits (1 page + 2 extraction).
You can also pass prompt and schema on a scrape request to get Markdown and structured data together.
Example
curl -s -X POST https://webcrawl.app/v1/extract \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/pricing","prompt":"List each plan with its monthly price."}'
Request body
url(string): Page to readurls(string[]): The first URL is usedprompt(string): What to extractschema(object): JSON Schema for a fixed response shape