PII Detection & Redaction API
Free tier: 100 requests/mo. Ultra and Mega include per-request overage—see pricing.PII detector, redactor, and log sanitizer API. Find and mask sensitive data (emails, SSN, credentials, secrets) in JSON and text. Detect, redact, or both. Log sanitization, API redaction, CI/CD. Rule-based, stateless.
Why use this API?
Compliance (GDPR, CCPA) and security require identifying and redacting PII before logging, sharing, or storing data.
What the API does
POST /scan with JSON { "payload": { ... } }. Returns detected PII and/or redacted payload.
Request & response schema
View request schema · View response schema · View error & warning codes
Try it in the playground
Add your RapidAPI key and run. Key is sent only to RapidAPI.
Get code
Snippets use the same Request body (JSON) as the playground above. Pick a language and copy, or click Refresh code after editing the JSON (it must parse).
Host: sensitive-data-detection-redaction-api.p.rapidapi.com, POST /scan, Content-Type: application/json.
Replace YOUR_RAPIDAPI_KEY. Generated snippets require valid JSON in the playground textarea.
What to expect
Response format depends on the endpoint. Use your RapidAPI key in headers. Stateless; no data stored. See RapidAPI docs for full response schema.
Pricing & tiers (RapidAPI)
Basic and Pro have fixed monthly quotas with no overage listed on the plan. Ultra and Mega add per-request overage after the included calls.
Basic
$0/mo
100 requests/month included
No overage listed (hard cap unless RapidAPI shows otherwise).
Pro
$9.99/mo
10,000 requests/month included
No overage listed on the plan.
Ultra
$29.99/mo
35,000 requests/month included
Overage: ~$0.003 per extra request.
Mega
$74.99/mo
150,000 requests/month included
Overage: ~$0.002 per extra request.
Confirm current prices on the live Sensitive Data Detection & Redaction API listing.
About this API
Who Should Use This API
Compliance and security teams redacting PII in logs, content, or exports.
Also Known As
PII redaction API, sensitive data detection, PII scrubber API.
PII Detection & Redaction API
A single-call, stateless API that detects sensitive or regulated data in JSON and text—emails, phone numbers, credentials, payment information, internal secrets—and optionally redacts it before it leaves your system. Built for log sanitization, CI/CD pipelines, and data processing workflows.
What This API Does
- **Detects** sensitive data using deterministic, rule-based patterns (regex, heuristics, checksums)
- **Redacts** detected values with configurable strategies: mask, replace, hash, or remove
- Supports **coverage levels** (low, medium, high) or an **explicit list of types** to scan for
- Accepts **JSON** (nested objects and arrays), **plain text**, and **log-style** payloads
- Returns **deterministic**, machine-readable results plus an optional redacted payload and risk score
No persistent storage, no dashboards, no learning or training. Same input always yields the same output. **The API never modifies or persists the original input. Redacted output is always returned as a separate object.**
Key Features
- **Stateless & Deterministic** — No data stored; 10MB max payload
- **Modes** — `detect`, `redact`, `detect_and_redact`
- **Coverage** — `low`, `medium`, `high` or explicit `types` (e.g. `["ssn","date_of_birth"]`)
- **Strategies** — `mask`, `replace`, `hash`, `remove`
- **Metadata** — `effectiveTypes`, `ignoredTypes`, `coverageLevel`
Use Cases
- **Log sanitization** — Redact PII before writing logs or sending to aggregation
- **API response redaction** — Sanitize JSON before sending to clients
- **CI/CD** — Scan configs and artifacts for secrets
- **Compliance** — Detect and remove PII in non-production data
Frequently Asked Questions
-
Basic: 100/mo free. Pro: $9.99 for 10,000/mo (no overage listed). Ultra: $29.99 for 35,000/mo + ~$0.003 overage. Mega: $74.99 for 150,000/mo + ~$0.002 overage. Verify on RapidAPI.
-
No. Fully stateless.
-
Common types; see RapidAPI docs.