# agentstools.dev PII Scanner

> agentstools.dev PII Scanner is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

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.

## Facts

- Endpoint: POST https://api.agentstools.dev/pii/scan
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstools-dev-pii-scanner-db25d30b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xCvu7txDcILje2fdRnR9C

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 agentstools-dev-pii-scanner-db25d30b -d '<json body>'
```

Example prompt: 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.'

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentstools-dev-pii-scanner-db25d30b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
