PII Detector & Redactor avatar

PII Detector & Redactor

Pricing

from $0.60 / 1,000 record scanneds

Go to Apify Store
PII Detector & Redactor

PII Detector & Redactor

Find or redact emails, phone numbers, SSNs, card numbers (Luhn-checked), IPs and API keys in JSON records or JSONL. Detect mode returns counts only, never the values.

Pricing

from $0.60 / 1,000 record scanneds

Rating

0.0

(0)

Developer

Colton Mcclain

Colton Mcclain

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Categories

Features

Limited permissions

Share

Scan JSON records for personal data, or return a redacted copy, before you share or train on them.

What problem does it solve?

You have JSON/JSONL records (support tickets, logs, exports) and need to know which contain emails, phone numbers, SSNs, card numbers, IPs or API keys, or you need a safe redacted copy.

What it does

  • Scans every string value in each record (nested objects and arrays included).
  • Card numbers are Luhn-validated to cut false positives.
  • Detect mode returns only counts per category; redact mode also returns the record with matches replaced by tokens like [REDACTED_EMAIL].
  • A final recursive redaction pass runs over everything emitted in redact mode.

Pricing (pay per event)

EventPrice
Actor start (once per run, per GB of memory, minimum one)$0.0050
Record scanned (per record processed)$0.0006

You pay only for the events above plus nothing else from ELYRAON; Apify platform usage is covered by the event prices. The start event is charged on every run, including a run rejected for invalid input (nothing else is charged in that case). If you set a maximum charge per run, the Actor stops when it is reached and reports PARTIAL_MAX_CHARGE in the OUTPUT record, so you are never silently billed beyond your cap and never told a partial result is complete.

Input

FieldTitleRequiredDescription
recordsRecordsnoRecords to process. Each item is a JSON object or a plain string.
file_urlFile URLnoPublic http(s) URL of a JSON array or JSONL file. Use instead of Records.
modeModenodetect = counts per record, no values returned. redact = also return each record with PII replaced by [REDACTED_*] tokens.
categoriesCategoriesnoAllowed: email, phone, ssn, credit_card, ip_address, api_key. Defaults to email, phone, ssn, credit_card, api_key.
fieldsOnly these top-level fieldsnoOptional. Restrict scanning/redaction to these top-level keys.

Example input:

{
"records": [
{
"id": 1,
"note": "Contact jane.doe@example.com or 415-555-0132"
}
],
"mode": "redact"
}

Output

Results go to the run's default dataset (download as JSON, CSV or Excel). Each item:

FieldTypeDescription
record_indexinteger1-based position of the record in your input.
pii_foundobjectCategory -> number of matches (never the matched values).
pii_totalintegerTotal matches in the record.
modestringdetect or redact.
redacted_recordobjectPresent in redact mode: the record with PII replaced.

Example item:

{
"record_index": 1,
"pii_found": {
"email": 1,
"phone": 1
},
"pii_total": 2,
"mode": "redact",
"redacted_record": {
"id": 1,
"note": "Contact [REDACTED_EMAIL] or [REDACTED_PHONE]"
}
}

The key-value store holds OUTPUT (run summary: status, counts, warnings, limitations, version, source commit) and REPORT.md (readable summary). OUTPUT.status is SUCCEEDED, PARTIAL_MAX_CHARGE, PARTIAL_RESULT_LIMIT or FAILED (with a structured error code/message/field). Invalid or empty input fails the run immediately with an explanation and returns no results.

Use from code

curl -X POST "https://api.apify.com/v2/acts/colt2822~pii-detector-redactor/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" -d '{"records": [{"id": 1, "note": "Contact jane.doe@example.com or 415-555-0132"}], "mode": "redact"}'
from apify_client import ApifyClient
run = ApifyClient("$APIFY_TOKEN").actor("colt2822/pii-detector-redactor").call(run_input={"records": [{"id": 1, "note": "Contact jane.doe@example.com or 415-555-0132"}], "mode": "redact"})

This Actor can also be called by AI agents through the Apify MCP server (https://mcp.apify.com), which exposes Actors as tools.

Limitations

  • Pattern-based: personal names and street addresses are NOT detected.
  • Not a legal-compliance guarantee; review output before sharing.
  • Max 10,000 records per run.

Support

Questions or problems: https://elyraon.com.co/contact/ (ELYRAON). Source revision: 64dbaa5. Actor version 1.0.