Skip to main content

Prerequisites

Setup

Add your API key to .env:

Create the API

Create main.py:

Run it

Test it

FastAPI auto-generates interactive docs at http://localhost:8000/docs.

Async variant

For better concurrency under load, use AsyncFirecrawl:

Next steps

Scrape docs

All scrape options including formats, actions, and proxies

Search docs

Search the web and get full page content

Interact docs

Click, fill forms, and extract dynamic content

Python SDK reference

Full SDK reference with crawl, map, async, and more