{
  "openapi": "3.1.0",
  "info": {
    "title": "AI Race Scoreboard open data API",
    "version": "1.0.0",
    "summary": "Weekly AI lab standings, sourced revenue and valuation facts, and history as static JSON.",
    "description": "Read-only static JSON over HTTPS: no key, no auth, CORS open (Access-Control-Allow-Origin: *). Scheduled every 6 hours (00:00, 06:00, 12:00 and 18:00 Europe/Bucharest). GitHub starts scheduled jobs late and sometimes skips one, so the real update time is the \"Updated\" time on each page. A weekly snapshot is saved on Mondays. Polymarket and Artificial Analysis are fetched on each run; Arena is a manual snapshot (arena.ai blocks automated fetches); revenue, valuation and funding are updated by hand when a sourced figure changes. Within v1, fields are only added, never renamed or removed; a breaking change gets /data/v2/. Human docs: https://airacescoreboard.com/data/. Methodology: https://airacescoreboard.com/methodology/.",
    "contact": {
      "name": "AI Race Scoreboard",
      "url": "https://airacescoreboard.com/",
      "email": "contact@airacescoreboard.com"
    },
    "license": {
      "name": "CC BY 4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    }
  },
  "externalDocs": {
    "description": "Open data and JSON API docs",
    "url": "https://airacescoreboard.com/data/"
  },
  "servers": [
    {
      "url": "https://airacescoreboard.com"
    }
  ],
  "tags": [
    {
      "name": "v1",
      "description": "Stable, versioned API."
    },
    {
      "name": "internal",
      "description": "Older raw files kept for existing users. Not a stable contract."
    }
  ],
  "paths": {
    "/data/v1/standings.json": {
      "get": {
        "operationId": "getStandings",
        "summary": "This week's standings",
        "description": "Rank, score, components, model ranks, revenue, valuation, odds and weekly changes per lab, plus weights, formula and source timestamps.",
        "tags": [
          "v1"
        ],
        "responses": {
          "200": {
            "description": "This week's standings",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string",
                  "const": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Standings"
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/labs.json": {
      "get": {
        "operationId": "getLabs",
        "summary": "Sourced facts for every lab",
        "description": "Revenue (reported and claimed), valuation (closed and in talks), total funding, compute and dated receipts. Each fact has value, basis, as_of and source_url.",
        "tags": [
          "v1"
        ],
        "responses": {
          "200": {
            "description": "Sourced facts for every lab",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string",
                  "const": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LabsFile"
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/labs/{id}.json": {
      "get": {
        "operationId": "getLab",
        "summary": "One lab",
        "description": "One lab's current standing plus its sourced facts.",
        "tags": [
          "v1"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Lab id.",
            "schema": {
              "type": "string",
              "enum": [
                "google",
                "anthropic",
                "openai",
                "meta",
                "xai",
                "alibaba",
                "moonshot",
                "zai",
                "deepseek",
                "mistral"
              ]
            },
            "example": "google"
          }
        ],
        "responses": {
          "200": {
            "description": "One lab",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string",
                  "const": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LabFile"
                }
              }
            }
          },
          "404": {
            "description": "Unknown id or date (HTML 404 page)."
          }
        }
      }
    },
    "/data/v1/history/index.json": {
      "get": {
        "operationId": "getHistoryIndex",
        "summary": "Weekly snapshot index",
        "description": "All weekly snapshots, newest first.",
        "tags": [
          "v1"
        ],
        "responses": {
          "200": {
            "description": "Weekly snapshot index",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string",
                  "const": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryIndex"
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/history/{date}.json": {
      "get": {
        "operationId": "getSnapshot",
        "summary": "One weekly snapshot",
        "description": "Standings for one week, same row shape as standings.json.",
        "tags": [
          "v1"
        ],
        "parameters": [
          {
            "name": "date",
            "in": "path",
            "required": true,
            "description": "Snapshot date (a Monday-run date from history/index.json).",
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "enum": [
                "2026-10-10",
                "2026-10-17",
                "2026-10-19",
                "2026-10-22",
                "2026-10-26",
                "2026-10-29",
                "2026-10-30",
                "2026-11-02",
                "2026-11-09",
                "2026-11-16",
                "2026-11-23",
                "2026-11-30"
              ]
            },
            "example": "2026-11-30"
          }
        ],
        "responses": {
          "200": {
            "description": "One weekly snapshot",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string",
                  "const": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Snapshot"
                }
              }
            }
          },
          "404": {
            "description": "Unknown id or date (HTML 404 page)."
          }
        }
      }
    },
    "/data/scoreboard.json": {
      "get": {
        "operationId": "getScoreboardInternal",
        "summary": "Raw scoreboard (internal)",
        "description": "Internal build format of the current standings. Prefer /data/v1/standings.json.",
        "tags": [
          "internal"
        ],
        "deprecated": true,
        "responses": {
          "200": {
            "description": "Raw scoreboard (internal)",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string",
                  "const": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalFile"
                }
              }
            }
          }
        }
      }
    },
    "/data/labs.json": {
      "get": {
        "operationId": "getLabsInternal",
        "summary": "Raw lab facts (internal)",
        "description": "Internal build format of the lab facts. Prefer /data/v1/labs.json.",
        "tags": [
          "internal"
        ],
        "deprecated": true,
        "responses": {
          "200": {
            "description": "Raw lab facts (internal)",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string",
                  "const": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalFile"
                }
              }
            }
          }
        }
      }
    },
    "/data/history/{date}.json": {
      "get": {
        "operationId": "getSnapshotInternal",
        "summary": "Raw weekly snapshot (internal)",
        "description": "Internal build format. Prefer /data/v1/history/{date}.json.",
        "tags": [
          "internal"
        ],
        "deprecated": true,
        "parameters": [
          {
            "name": "date",
            "in": "path",
            "required": true,
            "description": "Snapshot date (a Monday-run date from history/index.json).",
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "enum": [
                "2026-10-10",
                "2026-10-17",
                "2026-10-19",
                "2026-10-22",
                "2026-10-26",
                "2026-10-29",
                "2026-10-30",
                "2026-11-02",
                "2026-11-09",
                "2026-11-16",
                "2026-11-23",
                "2026-11-30"
              ]
            },
            "example": "2026-11-30"
          }
        ],
        "responses": {
          "200": {
            "description": "Raw weekly snapshot (internal)",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string",
                  "const": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalFile"
                }
              }
            }
          },
          "404": {
            "description": "Unknown id or date (HTML 404 page)."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "License": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "attribution": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "url"
        ]
      },
      "Meta": {
        "type": "object",
        "description": "Fields present in every v1 file.",
        "properties": {
          "schema_version": {
            "type": "integer",
            "const": 1,
            "description": "Bumped only with a new path (/data/v2/)."
          },
          "source": {
            "type": "string"
          },
          "site_url": {
            "type": "string",
            "format": "uri"
          },
          "docs_url": {
            "type": "string",
            "format": "uri"
          },
          "methodology_url": {
            "type": "string",
            "format": "uri"
          },
          "license": {
            "$ref": "#/components/schemas/License"
          }
        },
        "required": [
          "schema_version",
          "source",
          "license"
        ]
      },
      "Standing": {
        "type": "object",
        "properties": {
          "rank": {
            "type": "integer",
            "description": "Position this week (1 = leader)."
          },
          "id": {
            "type": "string",
            "description": "Lab id.",
            "enum": [
              "google",
              "anthropic",
              "openai",
              "meta",
              "xai",
              "alibaba",
              "moonshot",
              "zai",
              "deepseek",
              "mistral"
            ]
          },
          "name": {
            "type": "string"
          },
          "score": {
            "type": [
              "number",
              "null"
            ],
            "description": "Composite score, 0-100: weighted average over all five weights, a missing component counting as a neutral 50. null if no component has data."
          },
          "coverage": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How many of the 5 components have real data (the rest count as a neutral 50)."
          },
          "components": {
            "type": [
              "object",
              "null"
            ],
            "description": "Each component scaled 0-100.",
            "properties": {
              "arena": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "arena, scaled 0-100; weight 35%. null = no reliable public data (scored as a neutral 50)."
              },
              "aa": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "aa, scaled 0-100; weight 15%. null = no reliable public data (scored as a neutral 50)."
              },
              "revenue": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "revenue, scaled 0-100; weight 20%. null = no reliable public data (scored as a neutral 50)."
              },
              "valuation": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "valuation, scaled 0-100; weight 10%. null = no reliable public data (scored as a neutral 50)."
              },
              "odds": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "odds, scaled 0-100; weight 20%. null = no reliable public data (scored as a neutral 50)."
              }
            },
            "required": []
          },
          "prev_rank": {
            "type": [
              "integer",
              "null"
            ]
          },
          "rank_change": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Positive = moved up."
          },
          "score_change": {
            "type": [
              "number",
              "null"
            ]
          },
          "arena": {
            "type": "object",
            "description": "Best Arena text leaderboard row for the lab.",
            "properties": {
              "rank": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "score": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "model": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": []
          },
          "artificial_analysis": {
            "type": "object",
            "description": "Best Artificial Analysis Intelligence Index for the lab.",
            "properties": {
              "index": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "position": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "model": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "cost_per_task_usd": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Artificial Analysis cost to run the Intelligence Index, per task, USD, for the same model. Display only."
              },
              "list_price_per_1m_input_usd": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "List price per 1M input tokens, USD (AA). Not blended into cost per task."
              },
              "list_price_per_1m_output_usd": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "List price per 1M output tokens, USD (AA)."
              }
            },
            "required": []
          },
          "arena_unranked_models": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Lab models confirmed not yet ranked on Arena (no Arena score for them; the lab's Arena component uses its best ranked model)."
          },
          "value": {
            "type": "object",
            "description": "Value score. Display only: not part of the composite score.",
            "properties": {
              "display_only": {
                "type": "boolean",
                "const": true
              },
              "score": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "0-100: index points per $ scaled vs the best lab."
              },
              "index_points_per_usd": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "AA Index ÷ cost per task."
              }
            },
            "required": [
              "display_only"
            ]
          },
          "momentum": {
            "type": "object",
            "description": "Momentum. Display only: not part of the composite score.",
            "properties": {
              "display_only": {
                "type": "boolean",
                "const": true
              },
              "d7": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Score change, points, vs the d7 baseline."
              },
              "d30": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Score change, points, vs the d30 baseline."
              },
              "d7_baseline": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "d30_baseline": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "display_only"
            ]
          },
          "coding": {
            "type": [
              "object",
              "null"
            ],
            "description": "Display only: not part of the composite score.",
            "properties": {
              "display_only": {
                "type": "boolean",
                "const": true
              },
              "source": {
                "type": "string"
              },
              "source_url": {
                "type": "string",
                "format": "uri"
              },
              "as_of": {
                "type": "string"
              },
              "stale": {
                "type": "boolean"
              },
              "rank": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "model": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "score": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "preliminary": {
                "type": "boolean"
              }
            },
            "required": [
              "display_only"
            ]
          },
          "revenue_usd": {
            "type": [
              "number",
              "null"
            ],
            "description": "Scored revenue run-rate, USD."
          },
          "valuation_usd": {
            "type": [
              "number",
              "null"
            ],
            "description": "Scored valuation, USD."
          },
          "polymarket_odds": {
            "type": [
              "number",
              "null"
            ],
            "description": "Yes price, 0-1, in the scored Polymarket market."
          },
          "odds_change_pp": {
            "type": [
              "number",
              "null"
            ],
            "description": "Weekly change, percentage points."
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "data_url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "rank",
          "id",
          "name",
          "score",
          "url",
          "data_url"
        ]
      },
      "Fact": {
        "type": "object",
        "description": "One sourced figure.",
        "properties": {
          "value_usd": {
            "type": "number",
            "description": "US dollars."
          },
          "basis": {
            "type": "string"
          },
          "as_of": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "source_name": {
            "type": "string"
          },
          "source_url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "value_usd"
        ]
      },
      "LabFacts": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "google",
              "anthropic",
              "openai",
              "meta",
              "xai",
              "alibaba",
              "moonshot",
              "zai",
              "deepseek",
              "mistral"
            ]
          },
          "name": {
            "type": "string"
          },
          "hq": {
            "type": [
              "string",
              "null"
            ]
          },
          "parent": {
            "type": [
              "string",
              "null"
            ]
          },
          "revenue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Fact"
              },
              {
                "type": "null"
              }
            ]
          },
          "revenue_claimed": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Fact"
              },
              {
                "type": "null"
              }
            ]
          },
          "valuation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Fact"
              },
              {
                "type": "null"
              }
            ]
          },
          "valuation_talks": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Fact"
              },
              {
                "type": "null"
              }
            ]
          },
          "funding_total": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Fact"
              },
              {
                "type": "null"
              }
            ]
          },
          "compute": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                },
                "as_of": {
                  "type": "string"
                },
                "source_name": {
                  "type": "string"
                },
                "source_url": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "required": [
                "label",
                "value"
              ]
            }
          },
          "receipts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "date": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "source_name": {
                  "type": "string"
                },
                "source_url": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "required": [
                "text"
              ]
            }
          }
        },
        "required": [
          "id",
          "name",
          "compute",
          "receipts"
        ]
      },
      "Standings": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Meta"
          },
          {
            "type": "object",
            "properties": {
              "generated_at": {
                "type": "string",
                "format": "date-time"
              },
              "date": {
                "type": "string",
                "format": "date",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "scoring": {
                "type": "string",
                "description": "Scoring rule the scores were published under: \"drop-rescale\" (before 11 Nov 2026: a missing component was dropped and the other weights rescaled) or \"neutral-50\" (a missing component counts as 50). Scores under different rules are not comparable.",
                "enum": [
                  "drop-rescale",
                  "neutral-50"
                ]
              },
              "compared_to": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "compared_to_backfilled": {
                "type": "boolean"
              },
              "update_cadence": {
                "type": "string"
              },
              "citation": {
                "type": "string"
              },
              "weights": {
                "type": "object",
                "description": "Component weights, percent.",
                "properties": {
                  "arena": {
                    "type": "number"
                  },
                  "aa": {
                    "type": "number"
                  },
                  "revenue": {
                    "type": "number"
                  },
                  "valuation": {
                    "type": "number"
                  },
                  "odds": {
                    "type": "number"
                  }
                },
                "required": [
                  "arena",
                  "aa",
                  "revenue",
                  "valuation",
                  "odds"
                ]
              },
              "formula": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "new_number_one": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "dethroned": {
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ]
              },
              "movers": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sources": {
                "type": "object"
              },
              "markets": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "primary": {
                      "type": "boolean"
                    },
                    "volume_usd": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "end_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "top": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "lab_id": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "yes": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "name",
                          "yes"
                        ]
                      }
                    }
                  },
                  "required": [
                    "title",
                    "url",
                    "top"
                  ]
                }
              },
              "standings": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Standing"
                }
              }
            },
            "required": [
              "generated_at",
              "date",
              "weights",
              "standings"
            ]
          }
        ]
      },
      "LabsFile": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Meta"
          },
          {
            "type": "object",
            "properties": {
              "generated_at": {
                "type": "string"
              },
              "labs": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LabFacts"
                }
              }
            },
            "required": [
              "labs"
            ]
          }
        ]
      },
      "LabFile": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Meta"
          },
          {
            "type": "object",
            "properties": {
              "generated_at": {
                "type": "string"
              },
              "date": {
                "type": "string",
                "format": "date",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "citation": {
                "type": "string"
              },
              "standing": {
                "$ref": "#/components/schemas/Standing"
              },
              "facts": {
                "$ref": "#/components/schemas/LabFacts"
              }
            },
            "required": [
              "date",
              "standing",
              "facts"
            ]
          }
        ]
      },
      "HistoryIndex": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Meta"
          },
          {
            "type": "object",
            "properties": {
              "snapshots": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                    },
                    "backfilled": {
                      "type": "boolean"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "date",
                    "url"
                  ]
                }
              }
            },
            "required": [
              "snapshots"
            ]
          }
        ]
      },
      "Snapshot": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Meta"
          },
          {
            "type": "object",
            "properties": {
              "date": {
                "type": "string",
                "format": "date",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "backfilled": {
                "type": "boolean"
              },
              "note": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "scoring": {
                "type": "string",
                "description": "Scoring rule the scores were published under: \"drop-rescale\" (before 11 Nov 2026: a missing component was dropped and the other weights rescaled) or \"neutral-50\" (a missing component counts as 50). Scores under different rules are not comparable.",
                "enum": [
                  "drop-rescale",
                  "neutral-50"
                ]
              },
              "standings": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Standing"
                }
              }
            },
            "required": [
              "date",
              "standings"
            ]
          }
        ]
      },
      "InternalFile": {
        "type": "object",
        "description": "Internal build format. Not a stable contract: fields may change without notice. Use /data/v1/ instead."
      }
    }
  }
}
