From 4740254b89e72c54eaef68c1d867bd6065c57078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Wed, 16 Apr 2025 12:32:02 -0700 Subject: [PATCH] feat(rquests.http): add extract --- apps/api/requests.http | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/apps/api/requests.http b/apps/api/requests.http index 9183ad24..7627979d 100644 --- a/apps/api/requests.http +++ b/apps/api/requests.http @@ -34,6 +34,37 @@ Authorization: Bearer {{$dotenv TEST_API_KEY}} DELETE {{baseUrl}}/v1/crawl/{{crawlId}} HTTP/1.1 Authorization: Bearer {{$dotenv TEST_API_KEY}} +### Extract website +# @name extract +POST {{baseUrl}}/v1/extract HTTP/1.1 +Authorization: Bearer {{$dotenv TEST_API_KEY}} +content-type: application/json + +{ + "urls": ["https://firecrawl.dev"], + "schema": { + "type": "object", + "properties": { + "companyName": { + "type": "string" + }, + "companyDescription": { + "type": "string" + } + } + }, + "agent": { + "model": "fire-1" + }, + "origin": "api-sdk" +} + +### Check Extract Status +@extractId = {{extract.response.body.$.id}} +# @name extractStatus +GET {{baseUrl}}/v1/extract/{{extractId}} HTTP/1.1 +Authorization: Bearer {{$dotenv TEST_API_KEY}} + ### Batch Scrape Websites # @name batchScrape POST {{baseUrl}}/v1/batch/scrape HTTP/1.1 @@ -53,7 +84,6 @@ content-type: application/json GET {{baseUrl}}/v1/crawl/{{batchScrapeId}} HTTP/1.1 Authorization: Bearer {{$dotenv TEST_API_KEY}} - ### Map Website # @name map POST {{baseUrl}}/v1/map HTTP/1.1 @@ -65,10 +95,6 @@ content-type: application/json "sitemapOnly": true } -### -DELETE {{baseUrl}}/v1/crawl/c94136f9-86c1-4a97-966c-1c8e0274778f HTTP/1.1 -Authorization: Bearer {{$dotenv TEST_API_KEY}} - ### Generate LLMs TXT # @name generateLlmsTxt POST {{baseUrl}}/v1/llmstxt HTTP/1.1