Docs
PII & Compliance Scanner
Find PII in CSV, JSON, or text with GDPR/CCPA risk flags.
Docs
Find PII in CSV, JSON, or text with GDPR/CCPA risk flags.
Scans data for PII — emails, phones, SSNs, cards, IPs, IBANs, passports, URLs, names — and reports each with a risk level for GDPR/CCPA triage.
POST /api/v1/tools/pii-scan
Scan CSV, JSON, or plain text for PII (emails, phones, SSNs, cards, IPs, IBANs, passports, URLs, names) with GDPR/CCPA risk flags.
Returns: A roll-up of findings per entity/column, plus optionally the per-span detail array when detailed is true.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
input |
string | Yes | — | The data to scan. |
format |
string (csv|json|text) | No | "text" |
How to interpret the input. CSV and JSON scan per-field; text scans the whole string. |
entities |
string[] | No | — | Restrict detection to these entity types (e.g. ["EMAIL","SSN"]). Omit for all recognizers. |
detectNames |
boolean | No | — | Also test whether whole fields are person names. Defaults to true for CSV/JSON, false for text. |
detailed |
boolean | No | false |
Include the per-span detail array (offsets, values) alongside the roll-up. |
curl -X POST https://data-migration-tools.com/api/v1/tools/pii-scan \
-H "Content-Type: application/json" \
-d '{"input":"contact: ada@example.com, +1 555-123-4567","format":"text"}'
See the full API reference for all examples and error codes.