Skip to main content

Fastify

Use Firecrawl with Fastify to build high-performance web scraping and search APIs.
1 min read

Prerequisites#

Setup#

Add your API key to .env:

Search the web#

Scrape a page#

Interact with a page#

Use interact to control a live browser session — click buttons, fill forms, and extract dynamic content.

As a Fastify plugin#

Encapsulate the client in a plugin for reuse across routes:

Register the plugin, then use fastify.firecrawl in any route:

Test it#

Next steps#