PII Detector & Redactor API
Detect and redact emails, phones, SSNs, credit cards, IPs, and keys in text.
Coming soon on RapidAPI ↗Identify and mask personally identifiable information instantly, with zero data retention.
All processing happens in memory, guaranteeing privacy and compliance.
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /detect | find PII spans |
| POST | /redact | mask/label/remove |
| POST | /analyze | risk summary |
Quick start
cURL (via RapidAPI)
curl --request curl \
--url 'https://pii-detector-redactor.p.rapidapi.com/-X POST "https://pii-detector-redactor.p.rapidapi.com/detect" -H "X-RapidAPI-Key: YOUR_KEY" -H "X-RapidAPI-Host: pii-detector-redactor.p.rapidapi.com" -H "Content-Type: application/json" -d '' \
--header 'X-RapidAPI-Key: YOUR_KEY' \
--header 'X-RapidAPI-Host: pii-detector-redactor.p.rapidapi.com' \
--header 'content-type: application/json' \
--data '{"text":"Contact me at [email protected] or 555-123-4567"}''JavaScript (fetch)
const res = await fetch('https://pii-detector-redactor.p.rapidapi.com/-X POST "https://pii-detector-redactor.p.rapidapi.com/detect" -H "X-RapidAPI-Key: YOUR_KEY" -H "X-RapidAPI-Host: pii-detector-redactor.p.rapidapi.com" -H "Content-Type: application/json" -d '', {
method: 'curl',
headers: {
'X-RapidAPI-Key': 'YOUR_KEY',
'X-RapidAPI-Host': 'pii-detector-redactor.p.rapidapi.com',
'content-type': 'application/json'
},
body: JSON.stringify({"text":"Contact me at [email protected] or 555-123-4567"}')
});
const data = await res.json();Example response
{
"found": [
{
"type": "email",
"value": "[email protected]",
"start": 14,
"end": 30
},
{
"type": "phone",
"value": "555-123-4567",
"start": 34,
"end": 46
}
],
"counts": {
"email": 1,
"phone": 1
},
"total": 2
}Pricing
Subscribe on RapidAPI. Start free; upgrade as you scale.
Basic
Free
1,000 requests / mo
Pro
$5 / mo
100,000 requests / mo
Ultra
$20 / mo
1,000,000 requests / mo
Mega
$50 / mo
2,000,000 requests / mo
Frequently asked questions
Are detected PII stored?
No, results are returned only in the response.
Supported languages?
English text is supported; other languages may have limited coverage.
Performance?
Typical latency under 80 ms for a 1 KB payload.
Ready to build with PII Detector & Redactor?
Grab your key on RapidAPI and start on the free tier.
Coming soon on RapidAPI ↗