{"uid":"cap_xCvu7txDcILje2fdRnR9C","slug":"agentstools-dev-pii-scanner-db25d30b","name":"agentstools.dev PII Scanner","description":"Detect structured PII in a text blob: emails, phones, credit cards, bank and tax ids, IP and MAC addresses, crypto addresses, dates of birth, geo coordinates and secrets. Returns findings with a confidence score plus a compliance summary. No transformed text. Structured PII indicators, not legal advice.","url":"https://api.agentstools.dev/pii/scan","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"The text to scan for PII"},"entities":{"type":"array","items":{"type":"string"},"description":"Optional allow-list of entity types to scan for (default: all). See GET /pii/recognizers."},"include_positions":{"type":"boolean","description":"Include character start/end offsets per finding (off by default for privacy)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OAGZAuPcVFLpcrSZJPpjj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans a text blob for structured PII (emails, phones, credit cards, IDs, addresses, crypto addresses, etc.) and returns typed findings with confidence scores plus a compliance summary.","exampleAgentPrompt":"Scan this text for any PII — emails, phone numbers, credit card numbers, tax IDs, crypto addresses, and secrets: 'Contact John at john@example.com or 555-123-4567. His SSN is 123-45-6789 and he paid with card 4111111111111111.'","exampleUseCases":[{"title":"Pre-storage compliance check","prompt":"Before we save this user support ticket to our database, scan it for any PII like emails, phone numbers, or credit card numbers so we know what sensitive data it contains: 'Hi, I'm Sarah at sarah@gmail.com, my card ending 4111111111111111 was charged twice, call me at 212-555-9876.'"},{"title":"Log file secret detection","prompt":"Check these application logs for accidentally exposed credentials, IP addresses, or API secrets: 'User 192.168.1.45 authenticated with token sk-abc123XYZ, dob 1990-03-15, and wallet 0x71C7656EC7ab88b098defB751B7401B5f6d8976F.'"},{"title":"GDPR data audit on free-text field","prompt":"I need to audit our survey responses for GDPR compliance — scan this response for any personal data including names, emails, geo coordinates, or national IDs: 'My name is Marco Rossi, tax code RSSMRC80A01H501U, I live near 41.9028° N, 12.4964° E and you can reach me at marco.rossi@email.it.'"}],"resultDescription":"A structured JSON object listing each PII finding with its entity type (e.g. EMAIL, PHONE_NUMBER, CREDIT_CARD), the matched text, a confidence score (0–1), and optionally character start/end offsets. Also includes a compliance summary indicating which categories of sensitive data were found, without transforming or redacting the original text.","failureModes":["Missing required 'text' field returns a 400 validation error","Empty string input returns an empty findings array with no detections","Overly short or ambiguous text may produce low-confidence or false-positive findings","Requesting an entity type not supported by /pii/recognizers returns an error or is silently ignored","Very long text blobs may hit payload size limits","Confidence scores may vary — low-confidence findings require manual review"],"whenToPreferThis":"Choose this endpoint when you need structured, typed PII detection with confidence scores from a single API call without building your own NLP pipeline. It covers a broad set of entity types (emails, phones, credit cards, bank/tax IDs, IP/MAC addresses, crypto addresses, dates of birth, geo coordinates, secrets) in one call. Prefer it over general-purpose LLM prompts for PII detection when you need deterministic structured output and a compliance summary. It does not redact or transform text — use it purely for detection and auditing workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:03:04.167Z","isFirstParty":false}