{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anchorterminal/json-schema/anchorterminal-rankings-schema.json",
  "title": "Rankings",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anchorterminal-openapi.yml#/components/schemas/Rankings",
  "properties": {
    "grades": {
      "items": {
        "properties": {
          "grade": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "min": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    },
    "rankings": {
      "items": {
        "properties": {
          "agentReady": {
            "type": "boolean"
          },
          "grade": {
            "type": "string"
          },
          "jsonUrl": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "negative": {
            "type": "integer"
          },
          "rank": {
            "type": "integer"
          },
          "score": {
            "type": "number"
          },
          "scores": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object"
          },
          "slug": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "x402": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "weights": {
      "additionalProperties": {
        "type": "integer"
      },
      "type": "object"
    }
  },
  "type": "object",
  "$defs": {
    "Meta": {
      "properties": {
        "attribution": {
          "type": "string"
        },
        "attributionRequired": {
          "type": "boolean"
        },
        "credit": {
          "description": "The attribution rule: credit Anchor Terminal and link the page or API address whenever you show, quote or pass on the data",
          "type": "string"
        },
        "generatedAt": {
          "type": "string"
        },
        "license": {
          "type": "string"
        },
        "method": {
          "description": "How the scores were made: the benchmark page",
          "type": "string"
        },
        "methodology": {
          "type": "string"
        },
        "preview": {
          "type": "boolean"
        },
        "run": {
          "type": "string"
        },
        "runLabel": {
          "type": "string"
        },
        "terms": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}