/v1/detect
Detect PII in text
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/redact-api/v1/detect" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/redact-api/v1/detect", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/redact-api/v1/detect");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/redact-api/v1/detect",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"total": 2,
"counts": {
"email": 1,
"phone": 1
},
"matches": [
{
"end": 28,
"type": "email",
"start": 8,
"value": "[email protected]"
},
{
"end": 54,
"type": "phone",
"start": 37,
"value": "+1 (555) 123-4567"
}
]
},
"meta": {
"timestamp": "2026-06-03T09:25:09.330Z",
"request_id": "9e35543d-206a-46ca-9437-e393f806c55f"
},
"status": "ok",
"message": "Detect PII in text",
"success": true
}