Book a call

How-to

Web data API for AI agents: a 3-hour setup

Firecrawl is a web data API for AI agents that turns a URL into clean markdown or JSON, and the free plan gives you 1,000 credits a month to test it. This guide follows the docs: an API key, one page scraped to JSON, and the status code check that stops bad data reaching your CRM.

By 4 min read

What a web data API for AI agents does

A web data API for AI agents turns a URL into clean, structured text an agent can read instead of raw HTML it has to parse. Firecrawl does this through the scrape endpoint, returning markdown or JSON, and crawl, which walks the reachable subpages, handling sitemaps, JavaScript rendering and rate limits on its own.

The repo lists 205.3k stars, 550+ data providers, SDKs for nine languages including Python and Node.js, and n8n and Zapier integrations: one HTTP call where you used to keep a browser script.

Web data API vs a scraper you maintain

The parts that break stop being yours. Proxies, JavaScript rendering and anti-bot handling move behind someone else's endpoint; you keep two decisions: which pages are worth reading, and what counts as a valid answer.

The second one is the real work. I built a datasheet pipeline for a lighting manufacturer across 6 product families and 32 dimension sheets, and fetching pages was never the hard part. Deciding a page was wrong was. If the target needs a login, a plain scrape will not reach it; that is browser automation for supplier portals territory instead.

The three-hour setup

Three hours gets you one verified supplier page in your own system, not a production pipeline; times below are estimates.

  1. Key and first scrape, 20 minutes. POST one page to /v2/scrape with formats: ["markdown"] and read the result before automating.
  2. One page into a schema you define, 40 minutes. Ask for json with a schema for the five fields you want; structured output adds 4 credits a page on top of the 1 credit scrape.
  3. Crawl one site, 30 minutes. Point crawl at one supplier domain and see what it discovers unprompted.
  4. Wire it in, under an hour: n8n, Zapier or an SDK, with a timeout and a non-duplicating retry, as in n8n API rate limits and retries without duplicates.
  5. The failure gate, 30 minutes: below, do not skip it, for the reason in n8n AI agent guardrails for CRM writes.
  6. The credit math, 15 minutes: below.

That is 180 minutes.

How much does Firecrawl cost for a small team

Firecrawl's free plan gives a small team 1,000 credits a month, concurrency 2 and 10 scrape requests a minute, enough to test real pages. Hobby is 19 dollars for 5,000 credits and 100 scrape requests a minute. Standard is 99 dollars for 100,000 credits.

Apply it to your own numbers, say 40 supplier pages a day across a working month:

  • Markdown only: comfortably inside the free plan.
  • With JSON extraction at 5 credits a page: past the free plan, inside the Hobby tier.
  • Hourly instead of daily: past Hobby; with JSON, past Standard.

Does a Firecrawl scrape always mean a successful page load?

A Firecrawl call can succeed while the page fails. The scrape docs say an accepted request returns HTTP 200 with success: true even if the page itself returned a non-2xx code; the real status sits in data.metadata.statusCode, where 2xx or 304 means a clean load.

So a supplier page that refused you arrives looking like a win, and a blank record lands in the CRM. Four lines fix that:

r = scrape(url, formats=["markdown"])
code = r["data"]["metadata"]["statusCode"]
if code not in OK_CODES: park(url); return
if len(r["data"]["markdown"]) < MIN_CHARS: park(url); return
crm.write(r["data"]["markdown"])

Also handle the 429 at the rate limit, and park anything missing an expected field instead of writing half a record.

Limitations

  • I have not run this against a live RFQ portal or a logged-in account; everything above comes from the docs and the repo.
  • The self-host quickstart disables API authentication and is not production-ready: no durable storage, no TLS, and no screenshots or page actions by default.
  • The licence is AGPL-3.0, so check that before you embed it. Firecrawl respects robots.txt by default, but reading a given supplier's pages is your call, not the vendor's.
  • Prices and rate limits change; check the pricing page on the day you decide.

My take

Worth three hours if you run an agent or workflow that needs outside pages and are maintaining a scraper to feed it. Not worth it yet if your data sits behind a login, or nobody has defined what a valid supplier record looks like. Write the gate first, buy the credits second.

Questions people ask

Is Firecrawl free to use?

There is a free plan with 1,000 credits a month, a concurrency of 2 and 10 scrape requests a minute. One scrape of one page costs one credit, so that is roughly 1,000 pages a month before you pay anything.

Can I self-host Firecrawl instead of paying for the cloud?

Yes. The repo holds a self-hosted server that runs with Docker Compose alongside Redis, PostgreSQL and a browser service, under the AGPL-3.0 licence. The docs state the quickstart disables API authentication and is not a production architecture, and that screenshots and page actions are not available in the default stack.

Does Firecrawl work with n8n or Zapier?

The repo lists n8n, Zapier and Lovable integrations, plus a CLI and an MCP server. It also ships SDKs for nine languages including Python, Node.js, Go, Java and .NET, so you can call it from whatever your automation already runs on.

Have a process like this leaking time or leads?Thirty minutes, no deck, and you leave with a plan.

Book a call