Skip to main content
Firecrawl lets an agent scrape and crawl websites into clean, LLM-ready markdown.

Overview

Firecrawl is a powerful web scraping API that converts websites into clean, LLM-ready markdown or structured data.

Installation

Environment Variables

Get your API key from Firecrawl.

How It Works

Quick Start

1

Simple Usage

2

With Configuration

Use the same tool with an agent — see Usage with Agent below, or pass env vars and options from the sections above.

Usage with Agent

Available Methods

scrape(url)

Scrape a single URL and get markdown content.

crawl(url, limit=10)

Crawl a website and get multiple pages.

Configuration Options

Function-Based Usage

CLI Usage

Error Handling

Common Errors

Best Practices

FirecrawlTool() defaults to the FIRECRAWL_API_KEY env var. Set it in your shell or .env rather than passing api_key= inline.
crawl(url, limit=10) follows links up to the limit. Keep it small so the agent does not pull an entire site into context.
Firecrawl returns HTTP 429 when the plan quota is exceeded. Check for an error key in the result and back off or fall back to another scraper.

Crawl4AI

Open-source crawler

Spider

Fast web crawler

Jina

Reader API