145 lines · 3.1 KB · Text
RawDownload
# Pick your baseUrl here:# @baseUrl = http://localhost:3002@baseUrl = https://api.firecrawl.dev ### Scrape Website# @name scrapePOST {{baseUrl}}/v2/scrape HTTP/1.1Authorization: Bearer {{$dotenv TEST_API_KEY}}content-type: application/json {  "url": "https://firecrawl.dev"} ### Crawl Website# @name crawlPOST {{baseUrl}}/v2/crawl HTTP/1.1Authorization: Bearer {{$dotenv TEST_API_KEY}}content-type: application/json {  "url":"https://firecrawl.dev"} ### Check Crawl Status@crawlId = {{crawl.response.body.$.id}}# @name crawlStatusGET {{baseUrl}}/v2/crawl/{{crawlId}} HTTP/1.1Authorization: Bearer {{$dotenv TEST_API_KEY}} ### Cancel Crawl@crawlId = {{crawl.response.body.$.id}}# @name cancelCrawlDELETE {{baseUrl}}/v2/crawl/{{crawlId}} HTTP/1.1Authorization: Bearer {{$dotenv TEST_API_KEY}} ### Extract website# @name extractPOST {{baseUrl}}/v2/extract HTTP/1.1Authorization: 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 extractStatusGET {{baseUrl}}/v2/extract/{{extractId}} HTTP/1.1Authorization: Bearer {{$dotenv TEST_API_KEY}} ### Batch Scrape Websites# @name batchScrapePOST {{baseUrl}}/v2/batch/scrape HTTP/1.1Authorization: Bearer {{$dotenv TEST_API_KEY}}content-type: application/json {  "urls": [    "firecrawl.dev",    "mendable.ai"  ]} ### Check Batch Scrape Status@batchScrapeId = {{batchScrape.response.body.$.id}}# @name batchScrapeStatusGET {{baseUrl}}/v2/batch/scrape/{{batchScrapeId}} HTTP/1.1Authorization: Bearer {{$dotenv TEST_API_KEY}} ### Map Website# @name mapPOST {{baseUrl}}/v2/map HTTP/1.1Authorization: Bearer {{$dotenv TEST_API_KEY}}content-type: application/json {  "url": "firecrawl.dev",  "sitemapOnly": true} ### Search# @name searchPOST {{baseUrl}}/v2/search HTTP/1.1Authorization: Bearer {{$dotenv TEST_API_KEY}}content-type: application/json {  "query": "firecrawl",  "limit": 50} ### Get Active Crawls# @name activeCrawlsGET {{baseUrl}}/v2/crawl/active HTTP/1.1Authorization: Bearer {{$dotenv TEST_API_KEY}} ### Generate LLMs TXT# @name generateLlmsTxtPOST {{baseUrl}}/v1/llmstxt HTTP/1.1Authorization: Bearer {{$dotenv TEST_API_KEY}}content-type: application/json {  "url": "https://firecrawl.dev",  "maxUrls": 1,  "showFullText": false,  "cache": true}  ### Check Generate LLMs TXT Status@generateLlmsTxtId = {{generateLlmsTxt.response.body.$.id}}# @name generateLlmsTxtStatusGET {{baseUrl}}/v1/llmstxt/{{generateLlmsTxtId}} HTTP/1.1Authorization: Bearer {{$dotenv TEST_API_KEY}} ### Search with Wallet@paymentHeaderSearch = 'EXAMPLE-PAYMENT-HEADER'# @name searchWithWalletPOST {{baseUrl}}/v1/x402/search HTTP/1.1Authorization: Bearer {{$dotenv TEST_API_KEY}}content-type: application/jsonX-Payment: {{paymentHeaderSearch}} {  "query": "Premier League fixtures for the 2025/26 season",  "limit": 2}