# ScanPay x402 Auditor

> ScanPay x402 Auditor is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.0001/call, status unknown (last checked 2026-11-04).

Fetches a public paid endpoint unpaid, validates its x402 payment challenge compliance, and returns a scored checklist covering version, accepts fields, resource match, CORS, and latency.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/x402-check?utm_source=zero.xyz
- Price: $0.0001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scanpay-x402-auditor-642447c3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CCyfvbBeDI7TnEIa1JtnH

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 scanpay-x402-auditor-642447c3
```

Example prompt: Can you run an x402 compliance audit on my paid API endpoint at https://myapi.example.com/premium — I want to see if the 402 challenge, accepts fields, resource match, CORS, and latency all pass the x402 spec?

## When to prefer this

Use this endpoint when you need to verify that a specific public HTTP endpoint correctly implements the x402 payment protocol spec — covering challenge format, field completeness, CORS safety, and latency. Prefer this over manual inspection or generic HTTP testing tools when you want a machine-readable, scored compliance report specifically calibrated to the x402 standard.

## Known failure modes

- Target endpoint is not publicly accessible or times out — latency check fails
- Target endpoint does not return a 402 status at all — no challenge to validate
- Malformed or missing x402Version field in the 402 response — flagged as non-compliant
- CORS headers absent or misconfigured — CORS check fails with warning
- Network error reaching the target from the Cloudflare Worker edge — returns error
- Input URL missing or invalid — request rejected before audit begins

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

A scored compliance checklist detailing: x402Version correctness, accepts field validity, resource match between request URL and challenge, GET/POST parity, CORS header exposure, and latency measurement — each item marked pass/warn/fail with an overall compliance score.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "target"
     ],
     "properties": {
      "target": {
       "type": "string",
       "format": "uri",
       "pattern": "^https://",
       "maxLength": 2048,
       "minLength": 8,
       "description": "Public HTTPS paid endpoint to check before paying it; probes its unpaid GET challenge, never sends payment"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Unpaid fetch only. Reports whether an autonomous x402 client can parse and pay your 402 challenge.",
  "score": 0,
  "checks": [
   {
    "ok": false,
    "check": "reachability",
    "detail": "request failed: timed out"
   },
   {
    "ok": false,
    "check": "cors_exposes_payment_headers",
    "detail": "access-control-expose-headers=missing (JS clients cannot read the challenge in browsers)"
   }
  ],
  "target": "https://example.com/api/paid",
  "accepts": null,
  "product": "scanpay.x402check",
  "verdict": "broken",
  "findings": [],
  "price_usd": 0.0001,
  "latency_ms": 125,
  "http_status": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scanpay-x402-auditor-642447c3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
