Prerequisites#
- Node.js 22+
- A Firecrawl API key — get one free
Install the SDK#
Environment variable#
Instead of passing apiKey directly, set the FIRECRAWL_API_KEY environment variable:
Search the web#
Scrape a page#
Example response
Interact with a page#
Use interact to control a live browser session — click buttons, fill forms, and extract dynamic content.

