Prerequisites
- Java 11+
- A Firecrawl API key — get one free
Install the SDK
- Gradle (Kotlin DSL)
- Maven
Search the web
Scrape a page
Example response
Example response
Interact with a page
Open a browser session, run Playwright code against it, and close it when done:Environment variable
Instead of passingapiKey directly, set the FIRECRAWL_API_KEY environment variable:
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

