Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

chore: update requests.http to be on v2

Gergő Móriczc36bbc54fcb7
diff --git a/apps/api/requests.http b/apps/api/requests.http
index b33e94055..1507fd99a 100644
--- a/apps/api/requests.http
+++ b/apps/api/requests.http
@@ -4,7 +4,7 @@
### Scrape Website
# @name scrape
-POST {{baseUrl}}/v1/scrape HTTP/1.1
+POST {{baseUrl}}/v2/scrape HTTP/1.1
Authorization: Bearer {{$dotenv TEST_API_KEY}}
content-type: application/json
@@ -14,7 +14,7 @@ content-type: application/json
### Crawl Website
# @name crawl
-POST {{baseUrl}}/v1/crawl HTTP/1.1
+POST {{baseUrl}}/v2/crawl HTTP/1.1
Authorization: Bearer {{$dotenv TEST_API_KEY}}
content-type: application/json
@@ -25,18 +25,18 @@ content-type: application/json
### Check Crawl Status
@crawlId = {{crawl.response.body.$.id}}
# @name crawlStatus
-GET {{baseUrl}}/v1/crawl/{{crawlId}} HTTP/1.1
+GET {{baseUrl}}/v2/crawl/{{crawlId}} HTTP/1.1
Authorization: Bearer {{$dotenv TEST_API_KEY}}
### Cancel Crawl
@crawlId = {{crawl.response.body.$.id}}
# @name cancelCrawl
-DELETE {{baseUrl}}/v1/crawl/{{crawlId}} HTTP/1.1
+DELETE {{baseUrl}}/v2/crawl/{{crawlId}} HTTP/1.1
Authorization: Bearer {{$dotenv TEST_API_KEY}}
### Extract website
# @name extract
-POST {{baseUrl}}/v1/extract HTTP/1.1
+POST {{baseUrl}}/v2/extract HTTP/1.1
Authorization: Bearer {{$dotenv TEST_API_KEY}}
content-type: application/json
@@ -62,12 +62,12 @@ content-type: application/json
### Check Extract Status
@extractId = {{extract.response.body.$.id}}
# @name extractStatus
-GET {{baseUrl}}/v1/extract/{{extractId}} HTTP/1.1
+GET {{baseUrl}}/v2/extract/{{extractId}} HTTP/1.1
Authorization: Bearer {{$dotenv TEST_API_KEY}}
### Batch Scrape Websites
# @name batchScrape
-POST {{baseUrl}}/v1/batch/scrape HTTP/1.1
+POST {{baseUrl}}/v2/batch/scrape HTTP/1.1
Authorization: Bearer {{$dotenv TEST_API_KEY}}
content-type: application/json
@@ -81,12 +81,12 @@ content-type: application/json
### Check Batch Scrape Status
@batchScrapeId = {{batchScrape.response.body.$.id}}
# @name batchScrapeStatus
-GET {{baseUrl}}/v1/crawl/{{batchScrapeId}} HTTP/1.1
+GET {{baseUrl}}/v2/batch/scrape/{{batchScrapeId}} HTTP/1.1
Authorization: Bearer {{$dotenv TEST_API_KEY}}
### Map Website
# @name map
-POST {{baseUrl}}/v1/map HTTP/1.1
+POST {{baseUrl}}/v2/map HTTP/1.1
Authorization: Bearer {{$dotenv TEST_API_KEY}}
content-type: application/json
@@ -95,6 +95,22 @@ content-type: application/json
"sitemapOnly": true
}
+### Search
+# @name search
+POST {{baseUrl}}/v2/search HTTP/1.1
+Authorization: Bearer {{$dotenv TEST_API_KEY}}
+content-type: application/json
+
+{
+ "query": "firecrawl",
+ "limit": 50
+}
+
+### Get Active Crawls
+# @name activeCrawls
+GET {{baseUrl}}/v2/crawl/active HTTP/1.1
+Authorization: Bearer {{$dotenv TEST_API_KEY}}
+
### Generate LLMs TXT
# @name generateLlmsTxt
POST {{baseUrl}}/v1/llmstxt HTTP/1.1
@@ -115,23 +131,6 @@ content-type: application/json
GET {{baseUrl}}/v1/llmstxt/{{generateLlmsTxtId}} HTTP/1.1
Authorization: Bearer {{$dotenv TEST_API_KEY}}
-
-### Search
-# @name search
-POST {{baseUrl}}/v1/search HTTP/1.1
-Authorization: Bearer {{$dotenv TEST_API_KEY}}
-content-type: application/json
-
-{
- "query": "firecrawl",
- "limit": 50
-}
-
-### Get Active Crawls
-# @name activeCrawls
-GET {{baseUrl}}/v1/crawl/active HTTP/1.1
-Authorization: Bearer {{$dotenv TEST_API_KEY}}
-
### Search with Wallet
@paymentHeaderSearch = 'EXAMPLE-PAYMENT-HEADER'
# @name searchWithWallet