Data Anonymizer API
Mask, hash, and pseudonymize (HMAC) sensitive values, plus k‑anonymity checks for datasets.
Get it on RapidAPI ↗Data Anonymizer helps you de-identify sensitive data before you store, log, or share it. Mask values (with smart handling for emails), hash with salted SHA-256/512, and pseudonymize a batch of values into deterministic, reversible-only-with-the-secret HMAC tokens — so the same input always maps to the same token within a project, without exposing the original.
It also runs a k-anonymity check over a dataset: group records by their quasi-identifiers and tell you the smallest group size and whether the set satisfies a given k. Pure compute, nothing stored — aligned with GDPR data-minimization. Great for analytics pipelines, log scrubbing, and sharing datasets safely.
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /mask | mask |
| POST | /hash | hash |
| POST | /pseudonymize | deterministic HMAC tokens |
| POST | /k-anonymity | dataset check |
Quick start
curl --request curl \
--url 'https://data-anonymizer.p.rapidapi.com/-X POST "https://data-anonymizer.p.rapidapi.com/pseudonymize" -H "X-RapidAPI-Key: YOUR_KEY" -H "X-RapidAPI-Host: data-anonymizer.p.rapidapi.com" -H "Content-Type: application/json" -d '' \
--header 'X-RapidAPI-Key: YOUR_KEY' \
--header 'X-RapidAPI-Host: data-anonymizer.p.rapidapi.com' \
--header 'content-type: application/json' \
--data '{"values":["[email protected]","[email protected]"],"secret":"my-rotation-secret"}''const res = await fetch('https://data-anonymizer.p.rapidapi.com/-X POST "https://data-anonymizer.p.rapidapi.com/pseudonymize" -H "X-RapidAPI-Key: YOUR_KEY" -H "X-RapidAPI-Host: data-anonymizer.p.rapidapi.com" -H "Content-Type: application/json" -d '', {
method: 'curl',
headers: {
'X-RapidAPI-Key': 'YOUR_KEY',
'X-RapidAPI-Host': 'data-anonymizer.p.rapidapi.com',
'content-type': 'application/json'
},
body: JSON.stringify({"values":["[email protected]","[email protected]"],"secret":"my-rotation-secret"}')
});
const data = await res.json();{
"tokens": [
{
"value": "[email protected]",
"token": "tok_3f9a1c2b7e4d5a6f"
},
{
"value": "[email protected]",
"token": "tok_9b2e7c1a4f8d3e6b"
}
]
}Pricing
Subscribe on RapidAPI. Start free; upgrade as you scale.
Frequently asked questions
Is the HMAC secret stored?
No, the secret is supplied per request and not retained.
Can I process bulk data?
Yes. /pseudonymize takes a values array and /k-anonymity takes a records array, so batching happens server‑side.
Does it comply with GDPR?
Since no data is stored, it aligns with GDPR minimal‑storage principles.
Ready to build with Data Anonymizer?
Grab your key on RapidAPI and start on the free tier.
Get it on RapidAPI ↗