Multi-crawl question answering

POST/crawl/prompt

Answer questions using the pages one or many crawls collected, returning a cited answer (streamed as Server-Sent Events or one JSON object).

Listed by OrthogonalPublished by ScrapflyPublisher docs
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

Body parameters

More from Scrapfly

  1. Crawl cancelPOST/crawl/{crawler_uuid}/cancelFree
  2. Crawl searchGET/crawl/{crawler_uuid}/search$0.000164 per call
  3. Web scrape headers onlyHEAD/scrape$0.000164 per call
  4. Crawl archive downloadGET/crawl/{crawler_uuid}/artifactFree
  5. Web scrape OPTIONS requestOPTIONS/scrape$0.000164 per call
  6. Crawled page contentGET/crawl/{crawler_uuid}/contentsFree
  7. Crawl structured extractionPOST/crawl/extract$0.000491 per call
  8. Website crawlPOST/crawl$0.000164 per call
  9. Crawl statusGET/crawl/{crawler_uuid}/statusFree
  10. Multi-crawl searchPOST/crawl/search$0.000164 per call
  11. Crawled URL listGET/crawl/{crawler_uuid}/urlsFree
  12. Web scrape with POST bodyPOST/scrape$0.000164 per call
All 20 Scrapfly endpoints