Prerequisites
- Bun 1.0+
- A Firecrawl API key — get one free
Install the SDK
.env:
Search the web
Bun has a built-in HTTP server. Createindex.ts:
Scrape a page
Add a/scrape route to the same server:
Interact with a page
Use interact to control a live browser session — click buttons, fill forms, and extract dynamic content.Script usage
Use Firecrawl in a standalone Bun script: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
Node SDK reference
Full SDK reference with crawl, map, batch scrape, and more

