Docs

PII & Compliance Scanner

Find PII in CSV, JSON, or text with GDPR/CCPA risk flags.

Overview

Scans data for PII — emails, phones, SSNs, cards, IPs, IBANs, passports, URLs, names — and reports each with a risk level for GDPR/CCPA triage.

Features

  • Nine entity types.
  • Per-entity risk classification.
  • Optional entity filter.
  • Per-span detail mode.

Use cases

  • Auditing an export before sharing.
  • Triaging regulated columns.

API reference

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.

Parameters

NameTypeRequiredDefaultDescription
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.

Example

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.