Skip to main content

PHP

Get started with Firecrawl in PHP. Scrape, search, and interact with web data using the REST API.
1 min read

Prerequisites#

  • PHP 8.0+ with cURL extension
  • A Firecrawl API key — get one free

Search the web#

Firecrawl works with PHP through the REST API using cURL.

Example response

Scrape a page#

Example response

Interact with a page#

Start a browser session, interact with the page using natural-language prompts, then close the session.

Step 1 — Scrape to start a session#

Step 2 — Send interactions#

Step 3 — Stop the session#

Reusable helper class#

For repeated use, wrap the API in a class:

Next steps#