Multi-crawl question answering
POST/crawl/prompt
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "scrapfly",
"path": "/crawl/prompt",
"method": "POST",
"body": {
"prompt": "",
"crawl_ids": [
""
],
"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
Every call costs the same.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
About this endpoint
Answer questions using the pages one or many crawls collected, returning a cited answer (streamed as Server-Sent Events or one JSON object).
Body parameters
promptrequiredstringYour question or instruction. This is the only text that is treated as an instruction.crawl_idsrequiredarrayCrawls to retrieve from. Same authorization, same per-request cap and same skipped semantics as /crawl/search.searchobjectThe retrieval request: limit, mode and filters, with the same meanings and the same cap of 50. limit defaults to 30 here.generationobjectGeneration options.More from Scrapfly
- Crawl cancelPOST/crawl/{crawler_uuid}/cancelFree
- Crawl searchGET/crawl/{crawler_uuid}/search$0.000164 per callFixed
- Web scrape headers onlyHEAD/scrapeUp to $0.1635 per callResponse-based
- Crawl archive downloadGET/crawl/{crawler_uuid}/artifactFree
- Web scrape OPTIONS requestOPTIONS/scrapeUp to $0.1635 per callResponse-based
- Crawled page contentGET/crawl/{crawler_uuid}/contentsFree
- Crawl structured extractionPOST/crawl/extractFree
- Website crawlPOST/crawlFrom $0.000164 per callRequest-based · up to $5.7225
- Crawl statusGET/crawl/{crawler_uuid}/statusFree
- Multi-crawl searchPOST/crawl/search$0.000164 per callFixed
- Crawled URL listGET/crawl/{crawler_uuid}/urlsFree
- Web scrape with POST bodyPOST/scrapeUp to $0.1635 per callResponse-based