Crawl structured extraction
POST/crawl/extract
The same retrieval as /crawl/prompt with a structured answer: supply a JSON Schema and get back an object that conforms to it.
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "scrapfly",
"path": "/crawl/extract",
"method": "POST",
"body": {
"prompt": "",
"schema": {
"type": "",
"properties": {
"products": {
"type": "",
"items": {
"type": ""
}
}
}
},
"crawl_ids": [
""
],
"search": {
"limit":
}
}
}'
{
"success": true,
"data": {
"data": { … },
"prompt": "List the product names.",
"search": { … },
"sources": [ 1 item ],
"truncated": false,
"sources_used": [],
"sources_dropped": 0
}
}
A real response, recorded when Orthogonal checked this endpoint.
$0.000491per call
Body parameters
More from Scrapfly
- Crawl cancelPOST/crawl/{crawler_uuid}/cancelFree
- Crawl searchGET/crawl/{crawler_uuid}/search$0.000164 per call
- Web scrape headers onlyHEAD/scrape$0.000164 per call
- Crawl archive downloadGET/crawl/{crawler_uuid}/artifactFree
- Web scrape OPTIONS requestOPTIONS/scrape$0.000164 per call
- Crawled page contentGET/crawl/{crawler_uuid}/contentsFree
- Website crawlPOST/crawl$0.000164 per call
- Crawl statusGET/crawl/{crawler_uuid}/statusFree
- Multi-crawl searchPOST/crawl/search$0.000164 per call
- Crawled URL listGET/crawl/{crawler_uuid}/urlsFree
- Multi-crawl question answeringPOST/crawl/prompt$0.000491 per call
- Web scrape with POST bodyPOST/scrape$0.000164 per call