How it works
SetredactPII: true on a scrape request. Firecrawl redacts the generated markdown and returns the redacted version in markdown. You do not need to pass formats; markdown is the default output.
Redaction options
For most requests, useredactPII: true. To tune redaction, pass an options object:
| Option | Values | Default | Description |
|---|---|---|---|
mode | accurate, aggressive, fast | accurate | Redaction strategy. accurate uses the model-only path, aggressive increases recall with additional heuristics, and fast skips the model call. |
entities | PERSON, EMAIL, PHONE, LOCATION, FINANCIAL, SECRET | All entities | Limit redaction to specific entity buckets. |
replaceStyle | tag, mask, remove | tag | Replace spans with tags like <EMAIL>, mask them with *, or remove the characters entirely. |
The Firecrawl CLI and MCP server expose simple boolean redaction. Advanced options are available through the API and SDKs that expose the full
redactPII options object.Response
When redaction succeeds,markdown contains the redacted content:
cURL
Billing
PII redaction costs 5 credits per page: 1 base scrape credit plus 4 additional credits for redaction. For parsed PDFs, each additional PDF page still incurs the normal PDF parsing credit and also receives the additional redaction charge.Availability
PII redaction is supported anywhere Firecrawl accepts scrape options:- Scrape - set
redactPIIon/v2/scrape. - Crawl, batch scrape, and search - pass
redactPIIinsidescrapeOptions. - Parse - pass
redactPIIinside the multipartoptionsJSON. - SDKs - Python uses
redact_pii; JavaScript and other SDKs useredactPIIor their native option casing. - CLI - pass
--redact-piitofirecrawl scrape. - MCP server - include
"redactPII": trueinfirecrawl_scrapetool arguments for simple boolean redaction.
Are you an AI agent that needs a Firecrawl API key? See firecrawl.dev/agent-onboarding/SKILL.md for automated onboarding instructions.

