Skip to main content

Prerequisites

  • Java 17+ and Spring Boot 3+
  • A Firecrawl API key — get one free

Add the dependency

Configuration

Add your API key to application.properties:
Or set it as an environment variable:

Create a configuration bean

Create FirecrawlConfig.java:

Create a REST controller

Create FirecrawlController.java:

Run it

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

Java SDK reference

Full SDK reference with crawl, map, batch scrape, and more