Firecrawl Integration Guide

Technology: firecrawl · Category: tooling · Last reviewed: 2026-10-20

Source: https://tech-stack.codeamanilabs.org/guide/firecrawl

Insight:

Firecrawl is the web-context API for AI agents: give it a URL, a search query, a file, or a data-provider call and get back clean markdown or schema-shaped JSON, with proxies, anti-bot, JS rendering and caching handled. Core verbs on the v2 API: scrape, search, map, crawl, batchScrape, parse, interact, agent, plus monitors and the Alexandria catalogue of 100+ third-party data providers (run through scrape). /extract is now in maintenance mode: use the json format on scrape for a known URL, or agent when Firecrawl must find the sources. Billing is per credit (1 credit = 1 page; the LLM formats add +4). Scrape, search, parse and interact also work keyless under per-IP daily caps; hitting those caps is the cue to sign up for a free key (1,000 credits/month) or connect the MCP server with OAuth. Verified 2026-10-20: npm firecrawl / @mendable/firecrawl-js 4.50.0, PyPI firecrawl-py / firecrawl 4.53.2, firecrawl-mcp 3.33.4, firecrawl-aisdk 0.13.1.

███████╗██╗██████╗ ███████╗ ██████╗██████╗  █████╗ ██╗    ██╗██╗
██╔════╝██║██╔══██╗██╔════╝██╔════╝██╔══██╗██╔══██╗██║    ██║██║
█████╗  ██║██████╔╝█████╗  ██║     ██████╔╝███████║██║ █╗ ██║██║
██╔══╝  ██║██╔══██╗██╔══╝  ██║     ██╔══██╗██╔══██║██║███╗██║██║
██║     ██║██║  ██║███████╗╚██████╗██║  ██║██║  ██║╚███╔███╔╝███████╗
╚═╝     ╚═╝╚═╝  ╚═╝╚══════╝ ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝ ╚══╝╚══╝ ╚══════╝

Firecrawl Integration Guide

Focus: Turning URLs, web searches, files and data-provider calls into clean, LLM-ready markdown or schema-shaped JSON, with proxies, anti-bot, JS rendering and caching handled for you. The managed alternative to hand-rolled Playwright/Puppeteer for RAG and agents.

Verification note (2026-10-20): Endpoints, SDK method names, credit costs, plan limits and MCP URLs below come from docs.firecrawl.dev (fetched as .md via sitemap.xml), firecrawl.dev/pricing, firecrawl.dev/changelog, the npm and PyPI registries, and the SDK 4.50.0 type definitions. Biggest changes since the 2026-08-23 review: /extract is in maintenance mode (SDK marks it @deprecated; use scrape + json or agent), concurrency was cut on paid plans (Standard 50→25, Growth 100→50, Scale 150→100), pay-as-you-go now tops up in 5 USD increments, a keyless tier exists for scrape/search/parse/interact, Alexandria (third-party data providers through scrape) launched on 2026-09-22, and map costs 1 credit per call, not per URL. Re-check firecrawl.dev/pricing before quoting a client.

Overview

Firecrawl is a context API for AI agents. Hand it a URL and it returns the page as markdown, HTML, a screenshot, links, images, brand tokens, a product record, or JSON matching your schema. It already handles rotating proxies, anti-bot challenges, JavaScript/SPA rendering, PDFs and Office files, and a cache layer.

For codeAmani, Firecrawl is the "web → context" lever: it feeds external pages into a RAG pipeline (pairs with the pinecone / pgvector guides), lets an agent read a page it was asked about, pulls structured facts off sites that have no API, and, through Alexandria, reaches official data providers (SEC filings, FRED, Apollo, and more) without a second API key.

When Firecrawl wins, and when raw Playwright/Cheerio wins

flowchart TD
  A["Need data from the web"] --> B{"Is there an official<br/>API or data provider?"}
  B -->|"yes, we have a key"| C["Call it directly"]
  B -->|"yes, via Alexandria"| D["firecrawl.scrape({ alexandria })"]
  B -->|"no"| E{"LLM-ready output?<br/>anti-bot? many sites?"}
  E -->|"yes: RAG / agents"| F["Firecrawl<br/>scrape · search · map · crawl"]
  E -->|"no: 1 static site,<br/>full DOM control"| G["Cheerio / Playwright<br/>self-hosted"]
  F --> H{"Know the URL?"}
  H -->|"yes"| I["scrape + json format"]
  H -->|"no"| J["agent (spark-2)"]
Tool Reach for it when… Cost shape
Firecrawl RAG ingestion, agent web-browsing, many sites, JS-heavy pages, markdown/JSON output, no proxy/anti-bot infra to run Per credit (managed)
Cheerio One known static site, server-rendered HTML, a few selectors, zero budget Free (your CPU)
Playwright / Puppeteer Full browser control, custom auth flows, screenshots of your own app, happy to run proxies yourself Free (your infra)

Firecrawl also sells a managed browser (Interact / Browser Sandbox) with a CDP URL, for when you need Playwright control without running Chromium.

Primary use cases

Official Documentation

Resource URL
Introduction https://docs.firecrawl.dev/introduction
Node SDK https://docs.firecrawl.dev/sdks/node
Python SDK https://docs.firecrawl.dev/sdks/python
CLI https://docs.firecrawl.dev/sdks/cli
Scrape (formats, caching, actions) https://docs.firecrawl.dev/features/scrape
Search https://docs.firecrawl.dev/features/search
Crawl https://docs.firecrawl.dev/features/crawl
Agent https://docs.firecrawl.dev/features/agent
Choosing the data extractor https://docs.firecrawl.dev/developer-guides/usage-guides/choosing-the-data-extractor
Alexandria (data providers) https://docs.firecrawl.dev/features/alexandria
Interact / Browser Sandbox https://docs.firecrawl.dev/features/interact
Monitoring https://docs.firecrawl.dev/features/monitoring
Parse (files) https://docs.firecrawl.dev/features/parse
Billing & credits https://docs.firecrawl.dev/billing
Rate limits (incl. keyless) https://docs.firecrawl.dev/rate-limits
Errors & retry guidance https://docs.firecrawl.dev/api-reference/errors
Webhook security https://docs.firecrawl.dev/webhooks/security
MCP server https://docs.firecrawl.dev/mcp-server
Vercel AI SDK tools https://docs.firecrawl.dev/developer-guides/llm-sdks-and-frameworks/vercel-ai-sdk
Changelog https://www.firecrawl.dev/changelog

Setup

Get an API key at firecrawl.dev/app/api-keys (keys start with fc-). Both SDKs read FIRECRAWL_API_KEY from the environment, or take it explicitly.

# .env.local (never commit)
FIRECRAWL_API_KEY=fc-...
FIRECRAWL_WEBHOOK_SECRET=...

Non-secret settings:

Setting Default Notes
FIRECRAWL_API_URL https://api.firecrawl.dev Point the SDK or local MCP server at a self-hosted instance
HTTP_STREAMABLE_SERVER unset true makes the local firecrawl-mcp serve Streamable HTTP on :3000/mcp instead of stdio
FIRECRAWL_NO_SEARCH_FEEDBACK / FIRECRAWL_NO_ENDPOINT_FEEDBACK unset 1 stops the local MCP server registering its feedback tools

Node / TypeScript

npm install firecrawl@4.50.0
# @mendable/firecrawl-js@4.50.0 is the same code under the older scoped name
import { Firecrawl } from "firecrawl";

const firecrawl = new Firecrawl({
  apiKey: process.env.FIRECRAWL_API_KEY,
  maxRetries: 3, // also: timeoutMs, backoffFactor, apiUrl
});

const doc = await firecrawl.scrape("https://firecrawl.dev", {
  formats: ["markdown"],
  onlyMainContent: true,
});
console.log(doc.markdown);

Python

pip install firecrawl-py==4.53.2   # the docs now say `pip install firecrawl`; same 4.53.2 release
from firecrawl import Firecrawl  # AsyncFirecrawl is also exported

firecrawl = Firecrawl(api_key="fc-YOUR-API-KEY")  # or omit to read FIRECRAWL_API_KEY

doc = firecrawl.scrape("https://firecrawl.dev", formats=["markdown"], only_main_content=True)
print(doc.markdown)

Node uses camelCase options (onlyMainContent, scrapeOptions, maxCredits); Python uses snake_case (only_main_content, scrape_options, max_credits). The REST API is camelCase.

Keyless mode (no API key)

Both SDKs, the CLI and the REST API can run without a key for a small set of endpoints. This is what an agent uses before anyone has signed up, and it is easy to outgrow.

Surface Works keyless
Hosted MCP (https://mcp.firecrawl.dev/v2/mcp, no header) firecrawl_search, firecrawl_scrape, firecrawl_parse only
SDKs, CLI, REST scrape, search, interact, parse, plus the research / developer / government index searches
Needs a key crawl, map, batchScrape, extract, agent, monitors, Alexandria, everything else

Keyless calls are capped per IP address per day by two limits: a maximum number of requests and a maximum number of credits. Exceeding either returns 429 (the onboarding skill also mentions 403s, a signup_url / firecrawl.dev/k/... link, and MCP KEYLESS_* errors). Heavier operations (interact, JSON extraction) burn the credit cap faster. Calls from some networks (VPNs, proxies) are refused outright. Firecrawl does not publish the numeric daily caps, so do not design around them.

Upgrade path when keyless runs out:

  1. Free account (no card): 1,000 credits/month, 10 req/min on scrape/map/search, 2 concurrent browsers, and every core endpoint. The SDK/CLI pick up FIRECRAWL_API_KEY automatically; the CLI also has firecrawl login --browser.
  2. MCP: switch the connection from keyless to OAuth (https://mcp.firecrawl.dev/v2/mcp-oauth) or add Authorization: Bearer fc-... to the existing /v2/mcp entry. Either unlocks the full tool surface.
  3. Hobby (5,000 credits, 100 req/min, 5 browsers) once the free 1,000 credits are not enough; turn on pay-as-you-go with a monthly cap for bursts.

Core Endpoints

All endpoints live under https://api.firecrawl.dev/v2/ and authenticate with Authorization: Bearer fc-....

/scrape: one URL, file, or data-provider call → LLM-ready output

const page = await firecrawl.scrape("https://example.com/article", {
  formats: ["markdown", "links", { type: "screenshot", fullPage: true }],
  onlyMainContent: true,
  includeTags: ["article", "main"],
  excludeTags: ["nav", "footer", ".ad"],
  maxAge: 600_000, // accept a cached copy up to 10 minutes old
});
console.log(page.metadata?.statusCode, page.metadata?.scrapeId);

Check two status layers: the API call (HTTP 200 + success: true) and the target page (metadata.statusCode). A 403/404 from the target still comes back as a document and is billed.

Formats (request several at once; output keys match the format names):

Format Returns Extra credits
markdown, summary, html, rawHtml, links, images Page content in that shape 0
rawBase64 Original response body, Base64. Must be the only format 0
screenshot (fullPage, quality, viewport) Screenshot URL, expires after 24 h 0
branding Brand profile: colours, fonts, typography, spacing, components 0
product Deterministic product record (title, price, availability, variants), no LLM 0
json (schema and/or prompt) LLM extraction into your schema +4
question (question) LLM answer in answer +4
highlights (query) LLM-selected passages +4
query (prompt, mode: "freeform" | "directQuote") Answer in answer; marked @deprecated in SDK 4.50 in favour of question / highlights +4
audio / video Signed MP3 / video URL for supported sites (expires after 1 h) +4
changeTracking (modes: ["git-diff","json"]) Diff against the previous scrape; bypasses the cache 0 (+4 if JSON mode)

The SDK types also list attributes (CSS selector → attribute values) and menu (restaurant menus); they are not on the docs format list yet.

Universal Scrape (2026-10-08): the same endpoint reads PDFs, images, Word, Excel and PowerPoint by URL, and runs Alexandria provider calls (below). LinkedIn profile/company URLs are not scraped: they are answered by enrichment providers your org enables (Apollo 30, Data Legion 10/40, FullEnrich 5 credits per lookup). x.com / twitter.com URLs go through xAI's Grok API at 30 credits per request.

Caching (maxAge, minAge, storeInCache, lockdown)

Actions and Interact (dynamic pages)

Pass an actions array to drive the browser before extraction:

const dynamicPage = await firecrawl.scrape("https://example.com", {
  actions: [
    { type: "wait", milliseconds: 1000 },
    { type: "click", selector: "#accept" },
    { type: "write", text: "firecrawl" },
    { type: "press", key: "Enter" },
    { type: "scroll", direction: "down" },
    { type: "screenshot" },
  ],
  formats: ["markdown"],
});

For multi-step work, keep the browser alive with Interact on the scrape's scrapeId, by prompt or by code:

const scrapeId = dynamicPage.metadata?.scrapeId;
if (scrapeId) {
  const step = await firecrawl.interact(scrapeId, {
    prompt: "Click the pricing tab and list each plan name",
  });
  console.log(step.stdout);
  await firecrawl.stopInteraction(scrapeId); // always release the session
}

Interact bills per browser minute with a one-minute minimum: 7 credits/min with a prompt, 2 credits/min for code only (+2/min with ZDR). The standalone Browser Sandbox (firecrawl.browser({ ttl }) → cdpUrl, liveViewUrl; browserExecute, listBrowsers, deleteBrowser) gives you a CDP URL for Playwright. Persistent profile: { name, saveChanges } keeps cookies across sessions.

/search: web search → scraped results

const results = await firecrawl.search("best dash cams 2026", {
  limit: 5,                 // applies per source
  sources: ["web", "news"], // also "images", "alexandria"
  tbs: "qdr:m",             // time filter; web results only
  location: "Germany",
  scrapeOptions: { formats: ["markdown"], onlyMainContent: true },
});
console.log(results.web?.length, results.news?.length);

/map: URL discovery

const siteMap = await firecrawl.map("https://docs.firecrawl.dev", {
  search: "webhook", // rank URLs by relevance
  limit: 100,
  sitemap: "include", // "include" | "skip" | "only"
});
const urls = siteMap.links.map((link) => link.url); // links are objects in SDK v4

map costs 1 credit per call, however many URLs it returns. It is the cheap reconnaissance step before a crawl.

/crawl: recursive site crawl (async job)

const crawlJob = await firecrawl.crawl("https://docs.firecrawl.dev", {
  limit: 100, // default is 10,000: always set it
  includePaths: ["^/features/.*"], // regex on the pathname
  excludePaths: ["^/blog/.*"],
  maxDiscoveryDepth: 3,
  sitemap: "include",
  scrapeOptions: { formats: ["markdown"], onlyMainContent: true },
});
console.log(crawlJob.status, crawlJob.data.length);

// Start-and-poll for long crawls (or attach a webhook)
const { id: crawlId } = await firecrawl.startCrawl("https://docs.firecrawl.dev", { limit: 500 });
const crawlStatus = await firecrawl.getCrawlStatus(crawlId);
const crawlErrors = await firecrawl.getCrawlErrors(crawlId); // pages that never made it into data
console.log(crawlStatus.completed, crawlStatus.total, crawlErrors.errors.length);

Crawl gotchas:

Structured extraction: json format, agent, and the retired /extract

You have… Use Cost
One known URL scrape with { type: "json", schema, prompt } 5 credits/page (1 + 4)
A prompt, no URLs (or a few seed URLs) agent({ prompt, schema, maxCredits }) Dynamic; 5 free runs/day
Old extract() code Migrate. /extract is in maintenance mode and extract / startExtract / getExtractStatus are @deprecated in SDK 4.50. It bills by tokens (1 credit = 15 tokens) Token-based
import { z } from "zod";

const Plan = z.object({ name: z.string(), monthlyPrice: z.string() });
const Pricing = z.object({ plans: z.array(Plan) });

const pricingPage = await firecrawl.scrape("https://example.com/pricing", {
  formats: [
    {
      type: "json",
      schema: z.toJSONSchema(Pricing), // SDK 4.50 bundles zod 3; pass JSON Schema from zod 4
      prompt: "Extract every plan and its monthly price.",
    },
  ],
});
const pricing = Pricing.safeParse(pricingPage.json);

const research = await firecrawl.agent({
  prompt: "Find the founders of Firecrawl and their roles",
  schema: z.toJSONSchema(z.object({ founders: z.array(z.object({ name: z.string(), role: z.string() })) })),
  maxCredits: 150,
});
if (research.status === "failed" && research.stopReason === "credit_limit_reached") {
  // research.partial is best-effort; continue the thread with a follow-up prompt and a new budget
}
console.log(pricing.success, research.creditsUsed);

Agent notes: every run uses spark-2 (Spark 1 names are deprecated and route to spark-2). Most runs use "a few hundred" credits; the dashboard caps maxCredits at 2,500 (higher values only through the API, always billed). A run returns roughly 150-200 rows; split bigger jobs. Use startAgent + getAgentStatus (or agent.* webhooks) for long runs; getAgentTrace / getAgentSnapshot show what it did. Send exchange: { enabled: true } to let an agent call your team's Alexandria providers.

JSON extraction tips from the docs: use type: "array" for lists, skip minItems/maxItems (they cause hallucinated items), and remember HTML attributes are invisible to JSON mode (use rawHtml or the attributes format). Opt-in checkPromptInjection (+4 credits) screens page content before your LLM sees it.

Alexandria: third-party data providers through scrape

Alexandria (launched 2026-09-22) is Firecrawl's catalogue of 100+ official data providers (Particle podcasts, CoinGecko, FRED, SEC EDGAR, Yahoo Finance, Apollo, FullEnrich, Data Legion, Fiscal.ai, Benzinga, and more). It needs an API key; keyless sessions get no Alexandria tools.

// 1. Discover (free): tools only
const found = await firecrawl.search("podcast conversations about AI agents", {
  sources: ["alexandria"],
  limit: 3,
});
console.log(found.tools?.map((t) => `${t.provider}/${t.capability} ${t.creditsCost ?? "?"}cr`));

// 2. Inspect contracts (free)
const catalogue = await firecrawl.findTools({ providers: ["particle"], expand: ["options", "response"] });

// 3. Execute (billed at the tool's listed price)
const run = await firecrawl.scrape({
  alexandria: {
    provider: "particle",
    capability: "podcasts/episodes/search",
    options: { semantic_search: "AI agents", limit: 2 },
  },
});
for (const item of run.alexandria) {
  if (item.error) console.error(item.error.code, item.error.message);
  else console.log(item.data);
}
console.log(catalogue.total);

Monitors: scheduled change detection

const monitor = await firecrawl.createMonitor({
  name: "Competitor pricing",
  schedule: { text: "daily at 9am", timezone: "America/New_York" }, // or { cron: "*/30 * * * *" }
  goal: "Alert when a plan name or price changes.",
  judgeEnabled: true,
  targets: [{ type: "scrape", urls: ["https://example.com/pricing"] }],
  notification: { email: { enabled: true, recipients: ["alerts@example.com"], includeDiffs: true } },
});
console.log(monitor.id, monitor.estimatedCreditsPerMonth);

Targets are scrape (known URLs), crawl (whole site) or search (new web results), 1-50 per monitor, minimum interval 5 minutes, retentionDays 30 (max 365). No per-monitor fee: 1 credit per URL per check for scrape, 1 per discovered page for crawl, 2 per 10 results for search, plus 1 credit per changed page the AI judge validates. Out of credits → checks are recorded as skipped_no_credits (not charged, not paused).

/parse: local files → markdown / JSON

const parsed = await firecrawl.parse(
  { data: "<html><body><h1>Invoice</h1></body></html>", filename: "invoice.html", contentType: "text/html" },
  { formats: ["markdown"] },
);
console.log(parsed.markdown);

PDF, Word, Excel, PowerPoint, OpenDocument, EPUB, CSV and HTML; max 50 MB per request; layout-aware with OCR fallback; PDFs bill 1 credit per page. Parse also works keyless.

Proxies

proxy: "auto" (default and recommended) tries a basic proxy and escalates to enhanced on failure. Enhanced costs the same 1 credit as basic, and an escalated retry is not charged separately. Manual proxy selection is deprecated; "stealth" is still accepted as a legacy alias. Without location, requests go out through US proxies.


Developer Resources

Official packages (verified 2026-10-20)

Package Version Notes
npm firecrawl 4.50.0 Docs-recommended name
npm @mendable/firecrawl-js 4.50.0 Same releases under the old scoped name; still published, not deprecated
PyPI firecrawl-py 4.53.2 Python ≥3.8; Firecrawl and AsyncFirecrawl
PyPI firecrawl 4.53.2 Same SDK; the Python docs now pip install firecrawl
npm firecrawl-aisdk 0.13.1 Vercel AI SDK tools; peer ai ^6 or ^7
npm firecrawl-mcp 3.33.4 Local MCP server (docs pin 3.33.2); Node ≥22
npm firecrawl-cli 1.26.15 firecrawl CLI; npx -y firecrawl-cli@latest init --all --browser installs agent skills

Official SDKs also exist for Go, Rust, Java, .NET, PHP, Ruby and Elixir. The deprecated v1 method names (crawlUrl, scrapeUrl, asyncCrawlUrl) only exist on the legacy FirecrawlAppV1 export.

Account/usage helpers on the Node client: getCreditUsage() (remainingCredits, planCredits, billing period), getTokenUsage(), getConcurrency(), getQueueStatus().

Vercel AI SDK (firecrawl-aisdk)

import { generateText, stepCountIs } from "ai";
import { FirecrawlTools } from "firecrawl-aisdk";

const { systemPrompt, ...tools } = FirecrawlTools(); // search + scrape + interact by default
const { text } = await generateText({
  model: "anthropic/claude-sonnet-5.5", // AI Gateway string; or anthropic("...") from @ai-sdk/anthropic
  system: systemPrompt,
  tools,
  stopWhen: stepCountIs(20),
  prompt: "Find Firecrawl's current pricing page and explain the plans.",
});
console.log(text);

Individual exports: search, scrape, map, crawl, batchScrape, agent, interact (with start(url) / close() / live view), job helpers poll, status, cancel, and stepLogger / logStep. Opt in with FirecrawlTools({ crawl: true, agent: true }) or { all: true }. browser() is deprecated in favour of interact(). Alternatively, connect the hosted MCP server with createMCPClient from @ai-sdk/mcp (see examples/ai-sdk-tools.ts).

MCP server

Mode URL / command Tools
Hosted keyless https://mcp.firecrawl.dev/v2/mcp (no header) firecrawl_search, firecrawl_scrape, firecrawl_parse
Hosted API key same URL + Authorization: Bearer fc-... Full surface (plan / team policy permitting)
Hosted OAuth https://mcp.firecrawl.dev/v2/mcp-oauth Full surface; browser sign-in, revoke in MCP settings
Local npx -y firecrawl-mcp with FIRECRAWL_API_KEY (stdio) or HTTP_STREAMABLE_SERVER=true (http://localhost:3000/mcp) API-backed tools; local-file parse needs a self-hosted API
Claude.ai / ChatGPT Native Firecrawl connector (claude.ai/directory/connectors/firecrawl) Full surface after sign-in
# Claude Code: sign in once with OAuth (recommended over pasting a key)
claude mcp add --transport http firecrawl https://mcp.firecrawl.dev/v2/mcp-oauth

Full tool surface: firecrawl_scrape (incl. json format and alexandria), firecrawl_search, firecrawl_map, firecrawl_crawl + firecrawl_check_crawl_status, firecrawl_agent + firecrawl_agent_status, firecrawl_interact + firecrawl_interact_stop, firecrawl_parse, firecrawl_find_tools, firecrawl_research_*, firecrawl_developer_search, firecrawl_gov_search, firecrawl_monitor_*, firecrawl_search_feedback, firecrawl_feedback. The old Extract MCP tool is gone. A 401 on /v2/mcp-oauth means sign in again; on /v2/mcp it means the key is wrong.

Self-hosting / open source

github.com/firecrawl/firecrawl is open source (AGPL-3.0) and self-hostable for data residency. The cloud adds managed proxies/anti-bot, Alexandria, the indexes, and services such as product extraction (self-hosters must set PRODUCT_EXTRACTION_SERVICE_URL). Decision guide: docs.firecrawl.dev/contributing/open-source-or-cloud.

Rate limits and concurrency (verified 2026-10-20)

Two independent ceilings, applied per team (all keys share them); exceeding either returns 429.

Requests per minute:

Plan /scrape /map /crawl /search /agent /crawl/status, /agent/status
Free 10 10 2 10 2 500
Hobby 100 100 20 100 20 5,000
Standard 500 500 100 500 100 25,000
Growth 5,000 5,000 1,000 5,000 1,000 250,000
Scale 10,000 10,000 2,000 10,000 2,000 500,000

Extract shares the /agent limits. Interact: /interact 2 / 20 / 100 / 1,000 / 1,500 and /interact/{id}/execute 10 / 100 / 500 / 5,000 / 7,500 per minute (Free → Scale).

Concurrent browsers / max queued jobs: Free 2 / 50k, Hobby 5 / 50k, Standard 25 / 50k, Growth 50 / 100k, Scale/Enterprise 100+ / 200k+. Jobs over the ceiling queue (queue time counts against timeout; queued jobs expire after 48 h). Check headroom with getQueueStatus() / getConcurrency().

Retry / backoff

The SDK retries transient failures (maxRetries, backoffFactor). In your own loops, retry 408, 429, 500, 502, 503, 504 with exponential backoff + jitter and honour the Retry-After header on 429. For 429 Concurrency limit reached, lower concurrency instead of hammering. 402 means out of credits (or a per-key spend limit) and is not transient.

Webhooks (crawl, batch scrape, extract, agent, monitor)

// POST https://api.firecrawl.dev/v2/crawl
{
  "url": "https://docs.firecrawl.dev",
  "limit": 100,
  "webhook": {
    "url": "https://your-domain.com/api/webhooks/firecrawl",
    "metadata": { "tenant": "acme" },
    "events": ["started", "page", "completed"]
  }
}

Event types: crawl.started|page|completed, batch_scrape.started|page|completed, extract.started|completed|failed, agent.started|action|completed|failed|cancelled, monitor.page, monitor.check.completed. Payload: { success, type, id, webhookId, data, metadata, error? }. Every request carries X-Firecrawl-Signature: sha256=<hex>, an HMAC-SHA256 of the raw body with the account webhook secret (Settings → Advanced). Verify with a timing-safe compare before processing (see examples/webhook-route.ts).


Pricing (verify live before quoting)

Figures from firecrawl.dev/pricing and docs.firecrawl.dev/billing on 2026-10-20. The pricing page shows annual billing by default. All invoices are in USD.

Plan Annual (eff. /mo) Monthly billing Credits / mo Concurrent browsers PAYG credits per 5 USD
Free $0, no card n/a 1,000 2 not available
Hobby $16 $19 5,000 5 1,000
Standard (recommended) $83 ≈$99 † 100,000 25 2,000
Growth $333 ≈$399 † 500,000 50 2,500
Scale $599 ≈$749 † 1,000,000 100 5,000
Enterprise Custom Custom Custom Custom SSO, ZDR, SLA, SIEM

† Derived from the "Save $X/yr" figures on the pricing page; only the Hobby monthly price is stated outright. Confirm before quoting.

Plans can also be bought through AWS Marketplace and Google Cloud Marketplace (private offers, draws down cloud commits).

Credit costs

Action Credits
Scrape / crawl / batch scrape 1 per page
Map 1 per call
Search 2 per 10 results (+ scrape cost per scraped result)
Interact / Browser 2 per browser-minute (code) · 7 (with prompt) · +2 with ZDR · 1-minute minimum
Agent Dynamic; 5 free runs/day; "a few hundred" per typical run
Monitor Underlying scrape/crawl/search + 1 per judged changed page
Alexandria execution The tool's listed price (discovery free)
json, question, query, highlights, audio, video, redactPII, checkPromptInjection +4 per page each (they stack)
PDF +1 per PDF page
ZDR +1 per page
lockdown +4 on a cache hit, 1 on a miss
Enhanced proxy +0
Threat protection scan 2 per scanned URL
x.com via Grok 30 per request
LinkedIn via enrichment providers 5-40 per lookup

Credits are charged when Firecrawl returns a document, including target-side 403/404 pages; outright failures are free. Batch and crawl credits post asynchronously as pages finish.

Running out, overage and rollover


Usage Monitoring


codeAmani notes


Troubleshooting

Issue Fix
429 with no key / KEYLESS_* MCP error Keyless per-IP daily cap or a refused network (VPN). Add FIRECRAWL_API_KEY, or switch MCP to /v2/mcp-oauth
401 Unauthorized Key missing or wrong (fc- prefix). For MCP, /v2/mcp-oauth → sign in again; /v2/mcp → replace the bearer key
402 Payment Required Out of credits, PAYG off or capped, or a per-key spend limit. Raise the cap, upgrade, or wait for reset
429 Rate limit exceeded Back off and honour Retry-After; upgrade if sustained
429 Concurrency limit reached / jobs stuck queued Too many parallel browsers for the plan (Standard is now 25). Lower maxConcurrency or batch size
extract() shows deprecated /extract is in maintenance mode. Move to scrape + json or agent
map result .links is not string[] SDK v4 returns { url, title?, description? } objects: map to link.url
Zod schema ignored or mis-converted SDK bundles zod 3. Pass z.toJSONSchema(schema) from zod 4
Empty / nav-only markdown JS-heavy SPA: add waitFor, actions, or use Interact
Stale content Default cache is 2 days. Pass a smaller maxAge or 0
404 SCRAPE_NO_CACHED_DATA You set minAge (cache-only) and nothing was cached
THIRD_PARTY_DATA_TERMS_REQUIRED Org admin accepts the provider terms at requiresAction.url
Crawl missing sibling/parent pages Children-only by default: set crawlEntireDomain / allowSubdomains
Crawl results gone API keeps results 24 h; then use activity logs
Research category results moved After 2026-11-16 categories: ["research"] returns data.research paper records
Old crawlUrl() / scrapeUrl() v1 method names. Use scrape, crawl, getCrawlStatus on SDK v4

Verification Status (2026-10-20)

Official docs: