Skip to main content

Cloudflare Workers

Use Firecrawl with Cloudflare Workers to search, scrape, and interact with web data at the edge.
1 min read

Prerequisites#

  • Wrangler CLI (npm install -g wrangler)
  • A Firecrawl API key — get one free

Setup#

Add your API key as a secret:

Search the web#

Create a handler that searches the web and returns results with full page content.

Edit src/index.ts:

Scrape a page#

Add a /scrape route to extract clean markdown from any URL.

Interact with a page#

Add an /interact route to control a live browser session — click buttons, fill forms, and extract dynamic content.

Deploy#

Test it#

Next steps#