Skip to main content

Prerequisites

  • Ruby 3.0+ and Rails 7+
  • A Firecrawl API key — get one free

Configuration

Add your API key to your Rails credentials or environment:

Create a service

Create app/services/firecrawl_service.rb:

Create a controller

Generate a controller:
Edit app/controllers/firecrawl_controller.rb:

Add routes

In config/routes.rb:

Test it

Next steps

Search docs

Search the web and get full page content

Scrape docs

All scrape options including formats, actions, and proxies

Interact docs

Click, fill forms, and extract dynamic content

API Reference

Complete REST API documentation