{
  "version": "1",
  "protocol": "L402",
  "provider": "Agent Paywire",
  "name": "Agent Paywire library API",
  "description": "Paid convenience API over the free Agent Paywire library. 100 sats per 100-credit token for 30 days. One credit is one request. Prepaid packs are POST /v1/credits. The files on https://agentpaywire.com stay free.",
  "public_url": "https://api.agentpaywire.com",
  "packs": [
    {
      "calls": 15,
      "sats": 120,
      "usd": "0.12",
      "days": 90,
      "break_even_singles": 12
    },
    {
      "calls": 100,
      "sats": 800,
      "usd": "0.80",
      "days": 90,
      "break_even_singles": 80
    },
    {
      "calls": 1000,
      "sats": 7000,
      "usd": "7.00",
      "days": 90,
      "break_even_singles": 700
    }
  ],
  "upgrade": {
    "method": "POST",
    "url": "https://api.agentpaywire.com/v1/credits",
    "note": "One x402 payment buys one call. Packs are bought with POST /v1/credits using x402 or L402."
  },
  "services": [
    {
      "name": "search",
      "description": "Search the library and articles. 100 sats per 100-credit token for 30 days. One credit is one request.",
      "endpoint": "/v1/search",
      "url": "https://api.agentpaywire.com/v1/search",
      "method": "GET",
      "protocol": "L402",
      "price_sats": 100,
      "credits": 100,
      "ttl_days": 30,
      "unit": "100 sats per 100-credit token for 30 days. One credit is one request.",
      "payment_asset": "BTC",
      "payment_network": "Lightning",
      "category": "reference",
      "request_schema": {
        "q": {
          "type": "string",
          "required": false,
          "description": "Search text. Example: bitcoin.",
          "example": "bitcoin"
        },
        "category": {
          "type": "string",
          "required": false,
          "description": "Category id. Example: bitcoin-lightning.",
          "example": "bitcoin-lightning"
        },
        "status": {
          "type": "string",
          "required": false,
          "description": "Exact library status: proposal, individual_draft, working_group_draft, standard, spec_released, product_docs, news, research, or unknown. When set, article hits are left out.",
          "example": "spec_released"
        },
        "since": {
          "type": "string",
          "required": false,
          "description": "Inclusive lower bound that Date.parse accepts. Example: 2026-10-01.",
          "example": "2026-10-01"
        },
        "limit": {
          "type": "integer",
          "required": false,
          "description": "Maximum hits, 1 to 100. Default 50. Example: 20.",
          "example": "20"
        }
      }
    },
    {
      "name": "updates",
      "description": "Records whose verified_at is on or after since. 100 sats per 100-credit token for 30 days. One credit is one request.",
      "endpoint": "/v1/updates",
      "url": "https://api.agentpaywire.com/v1/updates",
      "method": "GET",
      "protocol": "L402",
      "price_sats": 100,
      "credits": 100,
      "ttl_days": 30,
      "unit": "100 sats per 100-credit token for 30 days. One credit is one request.",
      "payment_asset": "BTC",
      "payment_network": "Lightning",
      "category": "reference",
      "request_schema": {
        "since": {
          "type": "string",
          "required": true,
          "description": "Required. Inclusive lower bound that Date.parse accepts. Example: 2026-10-01.",
          "example": "2026-10-01"
        }
      }
    },
    {
      "name": "digest",
      "description": "Digest of records from the last N days. 100 sats per 100-credit token for 30 days. One credit is one request.",
      "endpoint": "/v1/digest",
      "url": "https://api.agentpaywire.com/v1/digest",
      "method": "GET",
      "protocol": "L402",
      "price_sats": 100,
      "credits": 100,
      "ttl_days": 30,
      "unit": "100 sats per 100-credit token for 30 days. One credit is one request.",
      "payment_asset": "BTC",
      "payment_network": "Lightning",
      "category": "reference",
      "request_schema": {
        "days": {
          "type": "integer",
          "required": false,
          "description": "Window in days, 1 to 90. Default 7. Example: 7.",
          "example": "7"
        }
      }
    },
    {
      "name": "changes",
      "description": "Library sources in an inclusive verified_at window, grouped by tag, as JSON or Markdown. Same credit price as search. A probe is HTTP 402. The 5-call trial is opt-in: header X-APW-Trial: 1 or query trial=1 on GET. HEAD and a directory-probe User-Agent stay on HTTP 402. 100 sats per 100-credit token for 30 days. One credit is one request.",
      "endpoint": "/v1/changes",
      "url": "https://api.agentpaywire.com/v1/changes",
      "method": "GET",
      "protocol": "L402",
      "price_sats": 100,
      "credits": 100,
      "ttl_days": 30,
      "unit": "100 sats per 100-credit token for 30 days. One credit is one request.",
      "payment_asset": "BTC",
      "payment_network": "Lightning",
      "category": "reference",
      "request_schema": {
        "since": {
          "type": "string",
          "required": false,
          "description": "Optional. Inclusive lower bound on verified_at, normalised to a UTC date. YYYY-MM-DD, an ISO 8601 datetime with Z or an offset, or a unix timestamp in seconds or milliseconds. Omit it for the last 7 UTC days through today. Example: 2026-10-01.",
          "example": "2026-10-01"
        },
        "until": {
          "type": "string",
          "required": false,
          "description": "Optional inclusive upper bound on verified_at, normalised to a UTC date. YYYY-MM-DD, an ISO 8601 datetime with Z or an offset, or a unix timestamp in seconds or milliseconds. Example: 2026-10-20.",
          "example": "2026-10-20"
        },
        "protocols": {
          "type": "string",
          "required": false,
          "description": "Comma-separated library tags. A source is listed under each matching tag. Example: l402,x402.",
          "example": "l402,x402"
        },
        "categories": {
          "type": "string",
          "required": false,
          "description": "Comma-separated library category ids. Example: payments.",
          "example": "payments"
        },
        "type": {
          "type": "string",
          "required": false,
          "description": "new or updated. new means date_published is inside the window. Example: new.",
          "example": "new"
        },
        "format": {
          "type": "string",
          "required": false,
          "description": "json or markdown. Default json. Example: json.",
          "example": "json"
        }
      }
    }
  ],
  "products": [
    {
      "endpoint": "/v1/verify",
      "method": "POST",
      "price_sats": 1000,
      "price_usd": "1.00",
      "unit": "One provider verification. GET /v1/verify/{id} is free."
    },
    {
      "endpoint": "/v1/check",
      "method": "GET",
      "price_sats": 50,
      "price_usd": "0.05",
      "unit": "One report after 2 free reports per client per 24 hours."
    },
    {
      "endpoint": "/v1/alerts",
      "method": "POST",
      "price_sats": 2000,
      "price_usd": "2.00",
      "unit": "Signed webhooks for 30 days."
    },
    {
      "endpoint": "/v1/credits",
      "method": "POST",
      "price_sats": 800,
      "price_usd": "0.80",
      "calls": 100,
      "ttl_days": 90
    },
    {
      "endpoint": "/v1/credits",
      "method": "POST",
      "price_sats": 7000,
      "price_usd": "7.00",
      "calls": 1000,
      "ttl_days": 90
    }
  ]
}
