Skip to main content

Bun

Use Firecrawl with Bun to build fast web scraping and search servers.
1 min read

Prerequisites#

Install the SDK#

Add your API key to .env:

Search the web#

Bun has a built-in HTTP server. Create index.ts:

Run it:

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#