Crawl question answering
POST/crawl/{crawler_uuid}/prompt
A single crawl. Same implementation as POST /crawl/prompt, the UUID comes from the path.
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "scrapfly",
"path": "",
"method": "POST",
"body": {
"prompt": "",
"search": {
"limit":
},
"generation": {
"stream":
}
}
}'
{
"success": true,
"data": {
"answer": "The products listed are:\n* Box of Chocolate Candy [1]\n* Dark Red Energy Potion [1]\n* Teal Energy Potion [1]\n* Red Energy Potion [1]\n* Blue Energy Potion [1]",
"prompt": "What products are listed?",
"search": { … },
"sources": [ 1 item ],
"truncated": false,
"api_credit": 3,
"sources_used": [ 1 item ],
"sources_dropped": 0
}
}
A real response, recorded when Orthogonal checked this endpoint.
$0.000491per call
Path parameters
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
- Crawl structured extractionPOST/crawl/extract$0.000491 per call
- 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