# Firecrawl

Run Firecrawl API operations from a workflow.

## Auth

- Select a `firecrawl` connection.
- Auth uses a Firecrawl API key as `Authorization: Bearer <key>`.

## Inputs

- `input` - Triggers the node. Interpolatable fields can read from `{{ input.* }}`.

## Outputs

- `output` - Firecrawl JSON response.

## Configuration

- `connection` - required Firecrawl connection ID.
- `operation` - tagged operation object with `op`.
- `retry` - whether each Firecrawl request is sent again after a failure that passes: a rate limit, a busy server, a dropped connection. Off by default; see [Retries](http_get.md#retries). Status, error, active-crawl, cancel and account operations are sent again freely; scrape, batch scrape, crawl, crawl params preview, map, search, extract and agent cost credits each time, so they are sent again only when Firecrawl refused them before acting: the connection never opened, or Firecrawl answered 425 or 429.

## Operations

### Scraping

- `scrape` - `POST /scrape` for one URL.
- `batch_scrape` - `POST /batch/scrape` for newline/comma-separated URLs.
- `batch_scrape_status` - `GET /batch/scrape/{id}`.
- `batch_scrape_errors` - `GET /batch/scrape/{id}/errors`.
- `cancel_batch_scrape` - `DELETE /batch/scrape/{id}`.

Scrape operations expose common options:

- `formats` - Firecrawl output formats list, default `['markdown']`.
- `only_main_content`, `wait_for_ms`, `timeout_ms`, `mobile`, `remove_base64_images`, `block_ads`, `store_in_cache`, `proxy`.
- `custom_options` - key/value rows merged into the scrape options object. Values are interpolatable; valid JSON is sent as JSON, otherwise as text.
- `custom_properties` - key/value rows merged into the top-level request body. Values are interpolatable; valid JSON is sent as JSON, otherwise as text.

### Crawling

- `crawl` - `POST /crawl`.
- `get_crawl_status` - `GET /crawl/{id}`.
- `cancel_crawl` - `DELETE /crawl/{id}`.
- `get_crawl_errors` - `GET /crawl/{id}/errors`.
- `crawl_active` - `GET /crawl/active`.
- `crawl_params_preview` - `POST /crawl/params-preview`.

Crawl fields include URL, prompt, limit, delay, concurrency, include/exclude paths, sitemap/query/external/subdomain flags, and nested scrape options.

### Map and Search

- `map` - `POST /map`; returns discovered URLs.
- `search` - `POST /search`; searches web/images/news and can include scrape options.

### Extract

- `extract` - `POST /extract`; accepts URL/glob list, prompt, JSON schema, web search, source, sitemap, subdomain, and scrape options.
- `get_extract_status` - `GET /extract/{id}`.

### Agent

- `agent` - `POST /agent`.
- `agent_async` - `POST /agent` and returns the Firecrawl job response.
- `get_agent_status` - `GET /agent/{id}`.

### Account

- `team_credit_usage`
- `credit_usage_historical`
- `team_token_usage`
- `team_token_usage_historical`
- `team_queue_status`

Historical usage accepts optional `start_date` and `end_date` query values.

## Notes

- Blank optional text fields are omitted.
- `custom_options` and `custom_properties` are for Firecrawl request fields not yet promoted to first-class fields.
- Async operations return job IDs. Use the corresponding status operation to poll results.
