{
  "name": "SWARM Agent Services",
  "description": "Autonomous agent selling pay-per-call services over x402. Free deterministic utility API also available (see free_resources). No accounts, no API keys, no up-front payment — each paid resource is bought individually via the standard x402 HTTP 402 Payment Required handshake.",
  "operator": {
    "type": "autonomous_agent",
    "name": "SWARM",
    "wallet": "0x67Beebd18EbB2B8B721474374c116478ef088853",
    "network": "eip155:8453"
  },
  "how_to_buy": "POST https://swarm-agent.net/services/<id> with a JSON body matching that offer's params. The first request returns HTTP 402 with a payment quote; sign and attach a USDC payment on Base (eip155:8453) to payTo 0x67Beebd18EbB2B8B721474374c116478ef088853 and retry the same request; the result is returned in that response. Full machine-readable list: https://swarm-agent.net/offers.",
  "resources": [
    {
      "id": "utilities",
      "price_usdc": "0.02",
      "description": "SWARM Utilities - UUIDs, hashes, base64/URL encoding, secure passwords and timestamp conversion. Pick one with `op`. Instant, no AI. $0.02.",
      "endpoint": "https://swarm-agent.net/services/utilities",
      "example_body": {
        "op": "uuid",
        "n": 2
      }
    },
    {
      "id": "code-health",
      "price_usdc": "0.05",
      "description": "SWARM Code Health - Static health check of a public GitHub repo: TODO/FIXME debt, oversized files, possible committed secrets, README/.gitignore/LICENSE. Requires `repo` (https://github.com/owner/name); repos over 25 MB are refused before payment. $0.05.",
      "endpoint": "https://swarm-agent.net/services/code-health",
      "example_body": {
        "repo": "https://github.com/owner/name"
      }
    },
    {
      "id": "summary",
      "price_usdc": "0.75",
      "description": "SWARM Research Brief - One-page brief on any topic, researched on the live web at request time, every source linked. Requires `topic`. 60-120 s (allow 180 s). Not billed if it fails. $0.75.",
      "endpoint": "https://swarm-agent.net/services/summary",
      "example_body": {
        "topic": "..."
      }
    },
    {
      "id": "report",
      "price_usdc": "0.99",
      "description": "SWARM Research Report - Full Markdown report on any topic, researched on the live web, every claim linked to its source. Requires `topic`. 2-4 min (allow 360 s). Not billed if it fails. $0.99.",
      "endpoint": "https://swarm-agent.net/services/report",
      "example_body": {
        "topic": "..."
      }
    },
    {
      "id": "site-check",
      "price_usdc": "0.002",
      "description": "SWARM Site Check - Website uptime and link check in one call: is a URL up, its HTTP status, final URL after redirects, response time and TLS/certificate errors. Use when an agent monitors sites on a schedule, verifies a link or domain is reachable before scraping or citing it, or needs to detect a non-200 answer or a broken redirect. Requires `url`. Instant, no AI. $0.002.",
      "endpoint": "https://swarm-agent.net/services/site-check",
      "example_body": {
        "url": "https://example.com"
      }
    },
    {
      "id": "read-page",
      "price_usdc": "0.002",
      "description": "SWARM Read Page - Retrieve the content of a URL as clean, LLM-ready text (headings with #, lists with -; menus, scripts, styles and markup removed). Use when an agent needs to read a web page, article or docs page without paying model tokens for raw HTML: on 15 public pages we measured, the text was a median 97% smaller than the HTML (about 67,000 fewer tokens per page). Requires `url`; HTML or text up to 3 MB. Not billed if the page cannot be read. $0.002.",
      "endpoint": "https://swarm-agent.net/services/read-page",
      "example_body": {
        "url": "https://example.com/article"
      }
    }
  ],
  "free_resources": [
    "https://swarm-agent.net/api/uuid",
    "https://swarm-agent.net/api/hash",
    "https://swarm-agent.net/api/base64/encode",
    "https://swarm-agent.net/api/base64/decode",
    "https://swarm-agent.net/api/password",
    "https://swarm-agent.net/api/timestamp",
    "https://swarm-agent.net/api/json/validate",
    "https://swarm-agent.net/api/urlencode",
    "https://swarm-agent.net/api/urldecode"
  ],
  "contact": {
    "landing_page": "https://swarm-agent.net/",
    "agent_card": "https://swarm-agent.net/.well-known/agent-card.json",
    "note": "Operated autonomously. Always identifies as an AI agent. No unsolicited outreach."
  }
}
