{
  "name": "APIHub",
  "description": "Marketplace for AI agent APIs. Search, discover, and pay for APIs via MCP or REST. Supports autonomous registration via wallet signature.",
  "url": "https://apihub.io",
  "version": "1.0.0",
  "registration": {
    "autonomous": {
      "challenge_url": "https://api.apihub.io/v1/register/challenge",
      "register_url": "https://api.apihub.io/v1/register",
      "method": "EVM wallet signature (personal_sign)",
      "description": "Sign a challenge message with your EVM wallet to receive an API key instantly. No email or human approval required."
    },
    "human_managed": {
      "url": "https://apihub.io/agents/login",
      "method": "Magic link email"
    }
  },
  "capabilities": {
    "cli": {
      "npm_package": "@apihubio/cli",
      "install": "npm install -g @apihubio/cli",
      "commands": [
        "register",
        "balance",
        "topup",
        "search",
        "call",
        "add",
        "install"
      ],
      "description": "Terminal CLI and convenience wrapper. Handles registration, credits, calls, and MCP config for Claude/Cursor/Codex."
    },
    "mcp": {
      "url": "https://mcp.apihub.io/mcp",
      "tools": [
        {
          "name": "apihub_search",
          "description": "Search native APIs by capability, category, or price"
        },
        {
          "name": "apihub_list_services",
          "description": "Browse all available native API services"
        },
        {
          "name": "apihub_get_service",
          "description": "Get full details for a native service including schemas and pricing"
        },
        {
          "name": "apihub_call",
          "description": "Make a paid API call to a native APIHub service"
        },
        {
          "name": "apihub_search_external",
          "description": "Search external x402 marketplace services"
        },
        {
          "name": "apihub_call_external",
          "description": "Call any external x402 URL via APIHub's proxy (credits pay the provider, no wallet needed)"
        },
        {
          "name": "apihub_read_content",
          "description": "Read web content through a paid content gateway"
        },
        {
          "name": "apihub_topup",
          "description": "Purchase credits via x402. Returns payment instructions for browser, CLI, or direct x402 signing"
        },
        {
          "name": "apihub_balance",
          "description": "Check credit balance, spending, and rate limits"
        }
      ]
    },
    "rest": {
      "base_url": "https://api.apihub.io",
      "auth": "Bearer token (ahk_ prefix)",
      "docs": "https://apihub.io/docs",
      "external_listings": "https://api.apihub.io/v1/external"
    },
    "proxy": {
      "base_url": "https://proxy.apihub.io",
      "native_pattern": "/{service_slug}/{endpoint_path}",
      "external_endpoint": "https://proxy.apihub.io/external",
      "external_description": "POST with { url, method, body, headers } to call any x402-protected URL; APIHub signs the payment from the platform wallet and debits your credit balance."
    }
  },
  "payment": {
    "methods": [
      {
        "name": "prepaid_credits",
        "description": "Pre-purchase credits via POST /v1/credits/purchase (USDC on Base). Each API call debits from balance with no gas cost. Covers both native APIHub APIs and external x402 APIs (via the /external proxy route).",
        "purchase_url": "https://api.apihub.io/v1/credits/purchase"
      },
      {
        "name": "x402",
        "network": "eip155:8453",
        "currency": "USDC",
        "client_library": "@x402/fetch",
        "description": "Per-request on-chain payment. Works for both native and external APIs if you bring your own EVM wallet."
      }
    ]
  },
  "federation": {
    "sources": [
      "on-chain records",
      "third-party indexes"
    ],
    "description": "The marketplace includes external x402-compatible APIs discovered from public on-chain records. External APIs can be called via the APIHub proxy (credits) or directly with your own wallet (x402).",
    "discovery": "https://apihub.io/.well-known/agent-skills/index.json"
  },
  "rate_limits": {
    "free_tier": "100 requests per minute",
    "paid_tier": "1,000 requests per minute (credit balance > 0)"
  },
  "catalog": "https://apihub.io/marketplace",
  "contact": {
    "email": "support@apihub.io"
  }
}