Skip to content

Commit 4740254

Browse files
committed
feat(rquests.http): add extract
1 parent c713251 commit 4740254

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

apps/api/requests.http

+31-5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,37 @@ Authorization: Bearer {{$dotenv TEST_API_KEY}}
3434
DELETE {{baseUrl}}/v1/crawl/{{crawlId}} HTTP/1.1
3535
Authorization: Bearer {{$dotenv TEST_API_KEY}}
3636

37+
### Extract website
38+
# @name extract
39+
POST {{baseUrl}}/v1/extract HTTP/1.1
40+
Authorization: Bearer {{$dotenv TEST_API_KEY}}
41+
content-type: application/json
42+
43+
{
44+
"urls": ["https://firecrawl.dev"],
45+
"schema": {
46+
"type": "object",
47+
"properties": {
48+
"companyName": {
49+
"type": "string"
50+
},
51+
"companyDescription": {
52+
"type": "string"
53+
}
54+
}
55+
},
56+
"agent": {
57+
"model": "fire-1"
58+
},
59+
"origin": "api-sdk"
60+
}
61+
62+
### Check Extract Status
63+
@extractId = {{extract.response.body.$.id}}
64+
# @name extractStatus
65+
GET {{baseUrl}}/v1/extract/{{extractId}} HTTP/1.1
66+
Authorization: Bearer {{$dotenv TEST_API_KEY}}
67+
3768
### Batch Scrape Websites
3869
# @name batchScrape
3970
POST {{baseUrl}}/v1/batch/scrape HTTP/1.1
@@ -53,7 +84,6 @@ content-type: application/json
5384
GET {{baseUrl}}/v1/crawl/{{batchScrapeId}} HTTP/1.1
5485
Authorization: Bearer {{$dotenv TEST_API_KEY}}
5586

56-
5787
### Map Website
5888
# @name map
5989
POST {{baseUrl}}/v1/map HTTP/1.1
@@ -65,10 +95,6 @@ content-type: application/json
6595
"sitemapOnly": true
6696
}
6797

68-
###
69-
DELETE {{baseUrl}}/v1/crawl/c94136f9-86c1-4a97-966c-1c8e0274778f HTTP/1.1
70-
Authorization: Bearer {{$dotenv TEST_API_KEY}}
71-
7298
### Generate LLMs TXT
7399
# @name generateLlmsTxt
74100
POST {{baseUrl}}/v1/llmstxt HTTP/1.1

0 commit comments

Comments
 (0)