{
  "service": "extract402",
  "description": "URL -> clean markdown/text extraction for AI agents. No signup. Pay per call in USDC on Base.",
  "endpoints": {
    "GET /extract?url=<url>&format=markdown|text": "$0.001/call. 25 free calls/day per IP.",
    "POST /claim {txHash}": "Convert an on-chain USDC payment into an API key.",
    "GET /balance": "Remaining credits for your key.",
    "GET /stats": "Public usage counters."
  },
  "payment": {
    "how_to_pay": [
      "1. Send at least 1 USDC (Base mainnet) to 0x5131d05528F53620de73A068F0c7485486fecCb4",
      "2. POST /claim with {\"txHash\":\"0x...\"} to convert that payment into an API key",
      "3. Call /extract with header  Authorization: Bearer <your key>  (or ?key=<your key>)"
    ],
    "pay_to": "0x5131d05528F53620de73A068F0c7485486fecCb4",
    "chain": "Base mainnet (chainId 8453)",
    "token": "USDC (0x833589fcd6edb6e08f4c7c32d4f71b54bda02913)",
    "rate": "$0.001 per call — 1 USDC = 1000 calls",
    "minimum": "1 USDC",
    "free_tier": "25 calls/day per IP, no signup"
  },
  "docs": "https://smeltworks.com/extract402/"
}