{"uid":"cap_syvRIYbiRvh3zYZMBGJJG","slug":"nojunk-moderate-pii-detection-e40436a0","name":"NoJunk Moderate PII Detection","description":"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].","url":"https://nojunk-moderate.mick8511.workers.dev/pii?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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]"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_H5N5vI5JJsDynmK7BhkUa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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","exampleAgentPrompt":"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.'","exampleUseCases":[{"title":"Redacting PII before logging","prompt":"Before we store this user chat message in our logs, scan it for any personal info — emails, phone numbers, names, addresses — and give me a redacted version with everything replaced by its type label."},{"title":"Compliance audit of uploaded document","prompt":"I need to check this contract text for any personally identifiable information like SSNs, passport numbers, dates of birth, or credit card numbers, and tell me exactly where in the text each one appears."},{"title":"Filtering crypto addresses from posts","prompt":"Can you scan these user-submitted forum posts and flag any cryptocurrency wallet addresses or IBAN numbers, including their character positions so I can highlight them in my UI?"}],"resultDescription":"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].","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:41:37.776Z","isFirstParty":false,"canonicalSlug":"nojunk-moderate-pii-detection-e40436a0"}