PII Detection in 5 Minutes

⏱️ 5 minute guide

What is PII?

Personally Identifiable Information (PII) includes any data that can identify an individual:

Step 1: Get Your API Key (1 min)

  1. Sign up at safekeylab.com
  2. Go to your dashboard
  3. Click "Create New Key"

Step 2: Install SDK (1 min)

pip install safekeylab

Step 3: Detect PII (3 mins)

from safekeylab import Client

# Initialize client
client = Client(api_key="sk_live_...")

# Detect PII in text
text = "John Doe's SSN is 123-45-6789"
result = client.detect_pii(text)

# Result shows detected PII types and locations
print(result)
# {
#   "entities": [
#     {"type": "PERSON", "value": "John Doe", "start": 0, "end": 8},
#     {"type": "SSN", "value": "***-**-6789", "start": 19, "end": 30}
#   ]
# }

Advanced Features

Ready to protect your data?

Start Free Trial