# NoJunk Moderate PII Detection

> NoJunk Moderate PII Detection is a paid API for AI agents from nojunk-moderate.mick8511.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-30).

Detects and optionally redacts personal data (email, phone, SSN, credit card, IP, IBAN, crypto address, name, address, DOB, passport) with character offsets in free text

## Facts

- Endpoint: POST https://nojunk-moderate.mick8511.workers.dev/pii?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nojunk-moderate-pii-detection-e40436a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_syvRIYbiRvh3zYZMBGJJG

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nojunk-moderate-pii-detection-e40436a0 -d '<json body>'
```

Example prompt: Scan this customer support message for any personal data like emails, phone numbers, SSNs, or credit card numbers, and return the text with all of them replaced by [TYPE]: 'Hi, my name is John Smith, reach me at john@example.com or 555-123-4567, SSN 123-45-6789.'

## When to prefer this

Choose this endpoint when you need character-level PII detection with precise offsets for highlighting or downstream processing, and especially when you need Luhn-validated credit card detection or IBAN/crypto address recognition alongside traditional regex-based types. It also supports LLM-powered detection of harder-to-regex entities like names, addresses, and passport numbers in the same call. Prefer it over generic regex scripts when you need a managed, pay-per-call API with optional in-place redaction.

## Known failure modes

- Text exceeds 20,000 character limit — returns validation error
- Empty or missing text field — returns 400 error
- Invalid type enum value in types array — returns schema validation error
- LLM-based types (name, address, date_of_birth, passport) may have lower recall or produce false positives on ambiguous text
- Credit card detection uses Luhn check — invalid card-like numbers are correctly excluded
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Text Moderation pii: Detect personal data (email, phone, SSN, credit card with Luhn check, IP, IBAN, crypto address, name, address, date of birth, passport) with character offsets; optional redaction to [TYPE].

## Output

Returns a list of detected PII entities, each with its type (e.g. email, phone, ssn, credit_card, ip, iban, crypto_address, name, address, date_of_birth, passport) and character offsets indicating where in the text it was found. If redact=true, also returns a redacted version of the input text with each entity replaced by [TYPE].

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 20000,
   "minLength": 1,
   "description": "The text to scan (1 to 20000 characters)"
  },
  "types": {
   "type": "array",
   "items": {
    "enum": [
     "email",
     "phone",
     "ssn",
     "credit_card",
     "ip",
     "iban",
     "crypto_address",
     "name",
     "address",
     "date_of_birth",
     "passport"
    ],
    "type": "string"
   },
   "description": "Subset of types to detect (default all). Regex types: email, phone, ssn, credit_card, ip, iban, crypto_address. LLM types: name, address, date_of_birth, passport"
  },
  "redact": {
   "type": "boolean",
   "default": false,
   "description": "true also returns `redacted`: the text with each entity replaced by [TYPE]"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nojunk-moderate-pii-detection-e40436a0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nojunk-moderate.mick8511.workers.dev](https://www.zero.xyz/host/nojunk-moderate.mick8511.workers.dev/llms.txt)
