Skip to main content

Rails

Use Firecrawl with Ruby on Rails to search, scrape, and interact with web data using the REST API.
1 min read

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#