PII Detector & Redactor
Pricing
from $0.60 / 1,000 record scanneds
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
9 days ago
Last modified
Categories
Features
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)
| Event | Price |
|---|---|
| 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
| Field | Title | Required | Description |
|---|---|---|---|
records | Records | no | Records to process. Each item is a JSON object or a plain string. |
file_url | File URL | no | Public http(s) URL of a JSON array or JSONL file. Use instead of Records. |
mode | Mode | no | detect = counts per record, no values returned. redact = also return each record with PII replaced by [REDACTED_*] tokens. |
categories | Categories | no | Allowed: email, phone, ssn, credit_card, ip_address, api_key. Defaults to email, phone, ssn, credit_card, api_key. |
fields | Only these top-level fields | no | Optional. 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:
| Field | Type | Description |
|---|---|---|
record_index | integer | 1-based position of the record in your input. |
pii_found | object | Category -> number of matches (never the matched values). |
pii_total | integer | Total matches in the record. |
mode | string | detect or redact. |
redacted_record | object | Present 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 ApifyClientrun = 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.