← Back to dashboard
firecrawltoolingfreshReader view (for NotebookLM)

Firecrawl Integration Guide

What is Firecrawl?

The real model

v2 API, SDK 4.50: `scrape · search · map · crawl · agent · interact · parse`, billed per credit.

`new Firecrawl({ apiKey })` (npm `firecrawl` 4.50.0 / pip `firecrawl-py` 4.53.2). `scrape(url, { formats, onlyMainContent, maxAge })` supports `markdown`, `branding`, `product`, `json`, `question`, `highlights` and more; `scrape({ alexandria })` runs one of 100+ third-party data providers. `/extract` is in maintenance mode: use the `json` format for a known URL or `agent({ prompt, maxCredits })` (spark-2) when the sources are unknown. Scrape, search, parse and interact also work keyless under per-IP daily caps; the hosted MCP (`mcp.firecrawl.dev/v2/mcp`, or `/v2/mcp-oauth`) exposes only search/scrape/parse without a key. For codeAmani it's the ingestion edge of RAG: `map` (1 credit per call) before `crawl`, explicit `limit`, verify `X-Firecrawl-Signature` webhooks, cap spend per key. Standard plan: 100k credits, 25 concurrent browsers.

Six Firecrawl verbs

One API key: a page, a search, a site map, a whole site, an autonomous agent, and data providers.

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

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

ToolReach for it when…Cost shape
FirecrawlRAG ingestion, agent web-browsing, many sites, JS-heavy pages, markdown/JSON output, no proxy/anti-bot infra to runPer credit (managed)
CheerioOne known static site, server-rendered HTML, a few selectors, zero budgetFree (your CPU)
Playwright / PuppeteerFull browser control, custom auth flows, screenshots of your own app, happy to run proxies yourselfFree (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

  • RAG ingestion: map → filter → crawl or batchScrape into markdown, chunk, embed, store in Pinecone/pgvector.
  • Agent web access: give an agent search + scrape through the MCP server or firecrawl-aisdk tools.
  • Structured extraction: scrape with a json format for known URLs; agent when the sources are unknown.
  • Change tracking: monitors run scheduled scrape/crawl/search checks and notify by webhook, email or Slack.

Official Documentation


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.

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

Non-secret settings:

SettingDefaultNotes
FIRECRAWL_API_URLhttps://api.firecrawl.devPoint the SDK or local MCP server at a self-hosted instance
HTTP_STREAMABLE_SERVERunsettrue makes the local firecrawl-mcp serve Streamable HTTP on :3000/mcp instead of stdio
FIRECRAWL_NO_SEARCH_FEEDBACK / FIRECRAWL_NO_ENDPOINT_FEEDBACKunset1 stops the local MCP server registering its feedback tools

Node / TypeScript

Bash
npm install firecrawl@4.50.0
# @mendable/firecrawl-js@4.50.0 is the same code under the older scoped name
TypeScript
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

Bash
pip install firecrawl-py==4.53.2   # the docs now say `pip install firecrawl`; same 4.53.2 release
Python
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.

SurfaceWorks keyless
Hosted MCP (https://mcp.firecrawl.dev/v2/mcp, no header)firecrawl_search, firecrawl_scrape, firecrawl_parse only
SDKs, CLI, RESTscrape, search, interact, parse, plus the research / developer / government index searches
Needs a keycrawl, 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

TypeScript
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):

FormatReturnsExtra credits
markdown, summary, html, rawHtml, links, imagesPage content in that shape0
rawBase64Original response body, Base64. Must be the only format0
screenshot (fullPage, quality, viewport)Screenshot URL, expires after 24 h0
brandingBrand profile: colours, fonts, typography, spacing, components0
productDeterministic product record (title, price, availability, variants), no LLM0
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 / videoSigned MP3 / video URL for supported sites (expires after 1 h)+4
changeTracking (modes: ["git-diff","json"])Diff against the previous scrape; bypasses the cache0 (+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)

  • Default maxAge is 2 days (172,800,000 ms). A cached copy younger than that comes back instantly.
  • maxAge: 0 forces a fresh fetch (slower, more likely to fail). Use it only when freshness matters, and remember a successful scrape is not proof the content is current.
  • minAge does a cache-only lookup; a miss returns 404 SCRAPE_NO_CACHED_DATA. minAge: 1 accepts any cached age.
  • storeInCache: false stops Firecrawl storing this result.
  • lockdown: true serves from cache only and never touches the target: +4 credits on a hit, 1 credit on a miss.

Actions and Interact (dynamic pages)

Pass an actions array to drive the browser before extraction:

TypeScript
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:

TypeScript
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

TypeScript
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);
  • 2 credits per 10 results (rounded up per 10), plus normal scrape credits for each result you scrape.
  • categories: research, pdf, developer (Developer Index: issues, merged PRs, READMEs, docs), gov (Government Index; adds no search credits). developer and gov cannot be combined with other categories.
  • Breaking on 2026-11-16: categories: ["research"] switches to the Research Index (PubMed, bioRxiv, medRxiv, arXiv). Results move from data.web to data.research as paper records. If you want academic web pages instead, switch to includeDomains now.

/map: URL discovery

TypeScript
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)

TypeScript
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:

  • Children only by default. Use crawlEntireDomain, allowSubdomains, allowExternalLinks to widen. regexOnFullURL: true makes path filters see query strings; ignoreQueryParameters avoids duplicates.
  • Results live for 24 hours in the API (expiresAt), then only in the activity logs.
  • completed == total does not mean every page succeeded: read getCrawlErrors.
  • The Node SDK auto-paginates getCrawlStatus; pass { autoPaginate: false } or maxPages / maxResults / maxWaitTime to stop early. firecrawl.watcher(id, { kind: "crawl" }) streams pages over WebSocket.
  • batchScrape(urls, { options }) / startBatchScrape scrape a known URL list in parallel with the same async model.

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

You have…UseCost
One known URLscrape 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() codeMigrate. /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
TypeScript
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.

TypeScript
// 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);
  • Up to 10 calls per request (alexandria: [...]); each result has data or error, so check each one.
  • Send an x-request-id header (SDK: requestId) to make retries idempotent for Alexandria calls; without it a retry is a new charge.
  • THIRD_PARTY_DATA_TERMS_REQUIRED returns requiresAction.url: an org admin accepts the provider's terms in the dashboard. An agent must not accept terms itself.
  • domainTools: true on a search or URL scrape returns tools matched to that website.

Monitors: scheduled change detection

TypeScript
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

TypeScript
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)

PackageVersionNotes
npm firecrawl4.50.0Docs-recommended name
npm @mendable/firecrawl-js4.50.0Same releases under the old scoped name; still published, not deprecated
PyPI firecrawl-py4.53.2Python ≥3.8; Firecrawl and AsyncFirecrawl
PyPI firecrawl4.53.2Same SDK; the Python docs now pip install firecrawl
npm firecrawl-aisdk0.13.1Vercel AI SDK tools; peer ai ^6 or ^7
npm firecrawl-mcp3.33.4Local MCP server (docs pin 3.33.2); Node ≥22
npm firecrawl-cli1.26.15firecrawl 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)

TypeScript
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

ModeURL / commandTools
Hosted keylesshttps://mcp.firecrawl.dev/v2/mcp (no header)firecrawl_search, firecrawl_scrape, firecrawl_parse
Hosted API keysame URL + Authorization: Bearer fc-...Full surface (plan / team policy permitting)
Hosted OAuthhttps://mcp.firecrawl.dev/v2/mcp-oauthFull surface; browser sign-in, revoke in MCP settings
Localnpx -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 / ChatGPTNative Firecrawl connector (claude.ai/directory/connectors/firecrawl)Full surface after sign-in
Bash
# 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
Free10102102500
Hobby10010020100205,000
Standard50050010050010025,000
Growth5,0005,0001,0005,0001,000250,000
Scale10,00010,0002,00010,0002,000500,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)

JSON
// 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.

PlanAnnual (eff. /mo)Monthly billingCredits / moConcurrent browsersPAYG credits per 5 USD
Free$0, no cardn/a1,0002not available
Hobby$16$195,00051,000
Standard (recommended)$83≈$99 †100,000252,000
Growth$333≈$399 †500,000502,500
Scale$599≈$749 †1,000,0001005,000
EnterpriseCustomCustomCustomCustomSSO, 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

ActionCredits
Scrape / crawl / batch scrape1 per page
Map1 per call
Search2 per 10 results (+ scrape cost per scraped result)
Interact / Browser2 per browser-minute (code) · 7 (with prompt) · +2 with ZDR · 1-minute minimum
AgentDynamic; 5 free runs/day; "a few hundred" per typical run
MonitorUnderlying scrape/crawl/search + 1 per judged changed page
Alexandria executionThe 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 scan2 per scanned URL
x.com via Grok30 per request
LinkedIn via enrichment providers5-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

  • Free: 402 until the monthly reset.
  • Paid with pay-as-you-go off (limit 0): 402, card not charged.
  • Paid with pay-as-you-go on: Firecrawl buys a 5 USD increment each time you hit zero, up to your monthly pay-as-you-go limit (blank = no cap). An overage allowance keeps bursts running while a top-up settles (1,500 Hobby, 30,000 Standard, 150,000 Growth, 600,000 Scale).
  • Per-key spend limits (credits per day/week/month) cap any single key.
  • Rollover: plan credits reset monthly; annual Scale rolls over 1 month, annual Enterprise 2 months. Purchased credits persist until you cancel.
  • Upgrades apply immediately (full price, no proration, unused credits carry over); downgrades apply at renewal.

Usage Monitoring

  • Dashboard: usage, activity logs (firecrawl.dev/app/logs), per-key usage and spend limits.
  • API: GET /v2/team/credit-usage (SDK getCreditUsage()) and the historical endpoint (SDK getCreditUsageHistorical(byApiKey?), which can break usage down per key). Every scrape reports metadata.creditsUsed; crawl/agent status report creditsUsed.
  • Before a big job: check remainingCredits, set an explicit limit / maxCredits, and confirm the per-key spend limit.

codeAmani notes

  • Secrets server-side only. FIRECRAWL_API_KEY and FIRECRAWL_WEBHOOK_SECRET live in .env.local / Vercel env vars (or the Hazina vault) and are used only from API routes, server actions, edge functions or workers. Keyless mode is not a way to avoid key handling in the browser: per-IP caps make it unreliable for production, and the browser would need its own key anyway.
  • Keyless is for agents and spikes, not apps. Claude Code sessions can start on the keyless MCP (/v2/mcp), but once rate limits bite (we hit them in this session), connect with OAuth (/v2/mcp-oauth) on the codeAmani team so usage counts against the paid plan and the full tool surface (map, crawl, agent, Alexandria) appears.
  • One team, separate keys. Give each app its own key with a spend limit, so a runaway crawl in one project cannot drain the team balance. Turn pay-as-you-go on with a monthly cap, not blank.
  • Verify webhook signatures (X-Firecrawl-Signature, HMAC-SHA256, timing-safe compare) before trusting any crawl, agent or monitor callback, per CLAUDE.md. See examples/webhook-route.ts.
  • Migrate off /extract. Any extract() call in our repos should become scrape + json (known URL) or agent with maxCredits (unknown sources).
  • Zod version. SDK 4.50 depends on zod 3. Our apps are on zod 4, so pass z.toJSONSchema(schema) and validate the result with safeParse.
  • Cost-aware patterns for low-bandwidth / African-market products (Kenya-targeted projects):
    • map (1 credit/call) before crawl; scrape only what users will actually read on 2G/3G.
    • Lean on the default 2-day cache; set maxAge longer for slow-moving docs instead of 0.
    • onlyMainContent + includeTags/excludeTags cut tokens, which cuts Claude/OpenAI spend and response size.
    • Prefer the question format (5 credits) over scraping a whole page into a prompt when you need one fact; prefer plain markdown + local parsing over JSON mode when the structure is simple.
    • Kenya (KE) is not on the proxy location list (as of 2026-10-20 the only African location is EG, basic proxy only). Kenyan-only pages are fetched from the US by default; if a site geo-blocks or localises prices, test it and ask Firecrawl (help@firecrawl.com) for KE before promising Kenyan pricing data.
  • TypeScript-first. Wrap Firecrawl in lib/firecrawl.ts with named exports, async/await, and structured logging (no console.log in production). examples/scrape.ts is the template.
  • AI routing fit. Firecrawl is retrieval, not generation: map/crawl/search → markdown → chunk → embed → Pinecone/pgvector → answer with Anthropic Claude. Firecrawl's agent (spark-2) is a research tool billed in Firecrawl credits; it does not replace Claude in the routing table.
  • Payments. Firecrawl bills codeAmani in USD by card (Stripe checkout). Nothing here touches M-Pesa.

Troubleshooting

IssueFix
429 with no key / KEYLESS_* MCP errorKeyless per-IP daily cap or a refused network (VPN). Add FIRECRAWL_API_KEY, or switch MCP to /v2/mcp-oauth
401 UnauthorizedKey missing or wrong (fc- prefix). For MCP, /v2/mcp-oauth → sign in again; /v2/mcp → replace the bearer key
402 Payment RequiredOut of credits, PAYG off or capped, or a per-key spend limit. Raise the cap, upgrade, or wait for reset
429 Rate limit exceededBack off and honour Retry-After; upgrade if sustained
429 Concurrency limit reached / jobs stuck queuedToo 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-convertedSDK bundles zod 3. Pass z.toJSONSchema(schema) from zod 4
Empty / nav-only markdownJS-heavy SPA: add waitFor, actions, or use Interact
Stale contentDefault cache is 2 days. Pass a smaller maxAge or 0
404 SCRAPE_NO_CACHED_DATAYou set minAge (cache-only) and nothing was cached
THIRD_PARTY_DATA_TERMS_REQUIREDOrg admin accepts the provider terms at requiresAction.url
Crawl missing sibling/parent pagesChildren-only by default: set crawlEntireDomain / allowSubdomains
Crawl results goneAPI keeps results 24 h; then use activity logs
Research category results movedAfter 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)

  • ✅ Versions: npm firecrawl and @mendable/firecrawl-js 4.50.0 (published 2026-10-19), PyPI firecrawl-py and firecrawl 4.53.2, firecrawl-mcp 3.33.4, firecrawl-aisdk 0.13.1, firecrawl-cli 1.26.15.
  • ✅ SDK surface checked against the 4.50.0 .d.ts: extract/startExtract/getExtractStatus and the query format are @deprecated; map().links is an object array; findTools, createMonitor, parse, interact, getCreditUsage exist. All TypeScript in this folder type-checks with tsc --strict.
  • ✅ Billing, rate limits, keyless rules, MCP modes from docs.firecrawl.dev .md pages.
  • ✅ Plan prices (annual) and Hobby monthly ($19) from firecrawl.dev/pricing.
  • ⚠️ Standard/Growth/Scale monthly-billed prices are derived, not stated.
  • ⚠️ Keyless daily caps are not published.
  • ⚠️ See NOTES.md for source disagreements (crawl 402 pre-check, batch-scrape rate-limit bucket, PDF credit wording, query format status).