{
  "openapi": "3.1.0",
  "info": {
    "title": "MoneyTools x402 Liveness Index",
    "version": "1.0.0",
    "description": "Liveness of x402 paid endpoints from public catalogs, probed without paying."
  },
  "servers": [
    {
      "url": "https://moneytools.dev/index"
    }
  ],
  "paths": {
    "/summary.json": {
      "get": {
        "operationId": "liveness_summary",
        "summary": "Free hourly summary and top lists",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/full": {
      "get": {
        "operationId": "liveness_full",
        "summary": "Full dataset (paid)",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "liveOnly",
            "in": "query",
            "required": false,
            "description": "1 = live only",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "network",
            "in": "query",
            "required": false,
            "description": "base, solana, … or CAIP-2",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "host",
            "in": "query",
            "required": false,
            "description": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "1-5000, default 1000",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK (charged)"
          },
          "400": {
            "description": "Invalid input (not charged)"
          },
          "402": {
            "description": "Payment Required (x402 v2)"
          }
        }
      }
    },
    "/v1/lookup": {
      "get": {
        "operationId": "liveness_lookup",
        "summary": "Probe history of one endpoint (paid)",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.001000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "endpoint URL as listed in the catalog",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK (charged)"
          },
          "400": {
            "description": "Invalid input (not charged)"
          },
          "402": {
            "description": "Payment Required (x402 v2)"
          },
          "404": {
            "description": "Not indexed (not charged)"
          }
        }
      }
    }
  }
}