Personally Identifiable Information (PII) includes any data that can identify an individual:
pip install safekeylab
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}
# ]
# }