Skip to main content

Spring Boot

Use Firecrawl with Spring Boot to search, scrape, and interact with web data using the official Java SDK.
1 min read

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#