Statshawk · Schema

PublicStatResponseStatDetail

Successful response envelope: resource data and source-free request metadata.

CompanySportsStatisticsMCPArtificial Intelligence

Properties

Name Type Description
data object Resource payload returned by this endpoint, inside the success envelope.
meta object Request identifier, fetch timestamp, response cache state and version; never a source.
View JSON Schema on GitHub

JSON Schema

statshawk-ai-public-stat-response-stat-detail-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/statshawk-ai/json-schema/statshawk-ai-public-stat-response-stat-detail-schema.json",
  "title": "PublicStatResponseStatDetail",
  "description": "Successful response envelope: resource data and source-free request metadata.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/statshawk-ai-openapi.json#/components/schemas/PublicStatResponseStatDetail",
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "$ref": "#/$defs/StatDetail",
      "description": "Resource payload returned by this endpoint, inside the success envelope."
    },
    "meta": {
      "$ref": "#/$defs/PublicMeta",
      "description": "Request identifier, fetch timestamp, response cache state and version; never a source."
    }
  },
  "$defs": {
    "AuditContestContext": {
      "type": "object",
      "description": "Contest facts stored with a stat; finality comes from the status alone.",
      "required": [
        "contest_id",
        "edition_id",
        "scheduled_at",
        "stage",
        "status",
        "finality"
      ],
      "properties": {
        "contest_id": {
          "$ref": "#/$defs/ContestId"
        },
        "edition_id": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/EditionId"
            }
          ]
        },
        "finality": {
          "$ref": "#/$defs/PublicFinality"
        },
        "scheduled_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "stage": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/ContestStage"
            }
          ]
        },
        "status": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/ContestStatus"
            }
          ]
        }
      }
    },
    "AuditSupport": {
      "type": "object",
      "description": "Which measures the audit covers.",
      "required": [
        "status",
        "policy_version",
        "enabled_measures",
        "unsupported_measures",
        "enabled_from"
      ],
      "properties": {
        "enabled_from": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "enabled_measures": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QualifiedMeasure"
          }
        },
        "policy_version": {
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/SupportStatus"
        },
        "unsupported_measures": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QualifiedMeasure"
          }
        }
      }
    },
    "BeforeStart": {
      "type": "string",
      "description": "Extent before the history start.",
      "enum": [
        "unknown"
      ]
    },
    "CacheStatus": {
      "type": "string",
      "description": "Response cache status, serialized as an uppercase token.\n`HIT` means a relevant store read or handler response cache returned a cached payload; `MISS` means a cache miss or an uncached read.\n`STALE` means a cached payload passed its fresh TTL but remains inside the allowed stale interval. It does not guarantee a refresh has started. Current entity-store caching records HIT or MISS.\nComposite reads report the last store-call outcome; this does not prove every nested resource shares one fetch time.",
      "enum": [
        "HIT",
        "MISS",
        "STALE"
      ]
    },
    "CalculationMetadata": {
      "type": "object",
      "description": "The registered rule behind a calculated value.",
      "required": [
        "rule_id",
        "version",
        "formula",
        "inputs",
        "aggregation",
        "rounding"
      ],
      "properties": {
        "aggregation": {
          "$ref": "#/$defs/PublicAggregation"
        },
        "formula": {
          "type": "string"
        },
        "inputs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QualifiedMeasure"
          }
        },
        "rounding": {
          "$ref": "#/$defs/PublicRounding"
        },
        "rule_id": {
          "$ref": "#/$defs/QualifiedMeasure"
        },
        "version": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        }
      }
    },
    "CompetitionId": {
      "type": "string",
      "description": "Canonical competition identifier (`comp_…`); competition URL paths generally use the human-readable slug instead.\nCanonical entity identifier (`comp_<base32>`). The suffix is exactly 26 Crockford base32 symbols encoding a UUID. Output uses lowercase without padding. The prefix is case-sensitive; another entity type’s prefix and bare UUID/source identifiers are rejected. Treat the full identifier as opaque."
    },
    "CompletenessStatus": {
      "type": "string",
      "description": "Contest completeness level.",
      "enum": [
        "complete",
        "incomplete",
        "unknown"
      ]
    },
    "ContestId": {
      "type": "string",
      "description": "Canonical contest identifier (`cst_…`) for a team match, individual match, or field event; used by public contest routes.\nCanonical entity identifier (`cst_<base32>`). The suffix is exactly 26 Crockford base32 symbols encoding a UUID. Output uses lowercase without padding. The prefix is case-sensitive; another entity type’s prefix and bare UUID/source identifiers are rejected. Treat the full identifier as opaque."
    },
    "ContestStage": {
      "type": "string",
      "description": "The competitive stage of a [`Contest`] within its edition:\npreseason/exhibition play folds separately from the regular-season and\npostseason aggregates it would otherwise pollute. Stored nullable — `NULL`\nmeans \"unknown stage\" and is treated as regular-season for fold/read\npurposes so a deploy of this column can precede any backfill.",
      "enum": [
        "preseason",
        "regular",
        "postseason",
        "exhibition",
        "allstar"
      ]
    },
    "ContestStatus": {
      "type": "string",
      "description": "Lifecycle status of a [`Contest`]. Renamed from the legacy `GameStatus`\nwith stable snake_case tokens: `scheduled` means not started; `in_progress` means play has started;\n`final` means completed; `postponed` means delayed to a later start; `cancelled` means cancelled;\n`suspended` means started play has paused.",
      "enum": [
        "scheduled",
        "in_progress",
        "final",
        "postponed",
        "cancelled",
        "suspended"
      ]
    },
    "CoverageStatus": {
      "type": "string",
      "description": "Measure coverage level.",
      "enum": [
        "complete",
        "partial",
        "unknown"
      ]
    },
    "CoverageUnit": {
      "type": "string",
      "description": "What a coverage count counts.",
      "enum": [
        "eligible_appearance_phase_measure",
        "eligible_contest_phase_measure"
      ]
    },
    "EditionId": {
      "type": "string",
      "description": "Edition (season instance of a competition) id (`edt_...`).\nCanonical entity identifier (`edt_<base32>`). The suffix is exactly 26 Crockford base32 symbols encoding a UUID. Output uses lowercase without padding. The prefix is case-sensitive; another entity type’s prefix and bare UUID/source identifiers are rejected. Treat the full identifier as opaque."
    },
    "FactState": {
      "$ref": "#/$defs/FactStateRepr",
      "description": "Participation or completeness state."
    },
    "FactStateRepr": {
      "oneOf": [
        {
          "type": "object",
          "required": [
            "status",
            "reason",
            "kind"
          ],
          "properties": {
            "kind": {
              "type": "string",
              "description": "Union discriminator `kind`: the literal \"participation\" selects this member.",
              "enum": [
                "participation"
              ]
            },
            "reason": {
              "$ref": "#/$defs/PublicStateReason"
            },
            "status": {
              "$ref": "#/$defs/ParticipationStatus"
            }
          }
        },
        {
          "type": "object",
          "required": [
            "status",
            "required_observed",
            "required_expected",
            "reason",
            "kind"
          ],
          "properties": {
            "kind": {
              "type": "string",
              "description": "Union discriminator `kind`: the literal \"completeness\" selects this member.",
              "enum": [
                "completeness"
              ]
            },
            "reason": {
              "$ref": "#/$defs/PublicStateReason"
            },
            "required_expected": {
              "type": [
                "integer",
                "null"
              ],
              "format": "int64",
              "minimum": 0
            },
            "required_observed": {
              "type": [
                "integer",
                "null"
              ],
              "format": "int64",
              "minimum": 0
            },
            "status": {
              "$ref": "#/$defs/CompletenessStatus"
            }
          }
        }
      ]
    },
    "HistoryExtent": {
      "type": "object",
      "description": "Where retained history starts; earlier history is always unknown.",
      "required": [
        "status",
        "started_at",
        "before_start"
      ],
      "properties": {
        "before_start": {
          "$ref": "#/$defs/BeforeStart"
        },
        "started_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "status": {
          "$ref": "#/$defs/HistoryStatus"
        }
      }
    },
    "HistoryStatus": {
      "type": "string",
      "description": "Whether history exists.",
      "enum": [
        "retained_from",
        "unavailable"
      ]
    },
    "InjuryReportKind": {
      "type": "string",
      "description": "The kind of report behind a pregame injury status.",
      "enum": [
        "reported_status",
        "transaction_record"
      ]
    },
    "KeyAspect": {
      "type": "string",
      "description": "The fact a key addresses.",
      "enum": [
        "participation",
        "completeness"
      ]
    },
    "KeyContext": {
      "type": "string",
      "description": "Fact key scope.",
      "enum": [
        "contest"
      ]
    },
    "MeasureCoverage": {
      "type": "object",
      "description": "How much of the expected set was observed.",
      "required": [
        "status",
        "observed",
        "expected",
        "unit"
      ],
      "properties": {
        "expected": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "minimum": 0
        },
        "observed": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "minimum": 0
        },
        "status": {
          "$ref": "#/$defs/CoverageStatus"
        },
        "unit": {
          "$ref": "#/$defs/CoverageUnit"
        }
      }
    },
    "ParticipationStatus": {
      "type": "string",
      "description": "Participation level.",
      "enum": [
        "played",
        "did_not_play",
        "unknown"
      ]
    },
    "PersonId": {
      "type": "string",
      "description": "Canonical sport-agnostic person id (`per_...`).\nCanonical entity identifier (`per_<base32>`). The suffix is exactly 26 Crockford base32 symbols encoding a UUID. Output uses lowercase without padding. The prefix is case-sensitive; another entity type’s prefix and bare UUID/source identifiers are rejected. Treat the full identifier as opaque."
    },
    "PregameContext": {
      "type": "object",
      "description": "Pregame forecast context. It never decides participation.",
      "required": [
        "as_of",
        "injury_report"
      ],
      "properties": {
        "as_of": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "The contest's scheduled start: the cut for what was known pregame. It always equals\n`context.contest_context.scheduled_at`. Null when the contest has no scheduled start;\nthen nothing else is served."
        },
        "injury_report": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/PregameInjuryReport",
              "description": "The injury report open at `as_of`. Null when no report was open, when the report history\nstarts after `as_of`, or when `as_of` is null. Null does not prove health."
            }
          ],
          "description": "The injury report open at `as_of`. Null when no report was open, when the report history\nstarts after `as_of`, or when `as_of` is null. Null does not prove health."
        }
      }
    },
    "PregameInjuryReport": {
      "type": "object",
      "description": "The injury report that was open at the contest's scheduled start.",
      "required": [
        "status",
        "kind",
        "reported_through"
      ],
      "properties": {
        "kind": {
          "$ref": "#/$defs/InjuryReportKind",
          "description": "The kind of report. A transaction record precedes a reported status."
        },
        "reported_through": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "The report history of this kind is complete through this time, at most `as_of`. It covers\nevery competition together and does not prove that this competition is covered. Null\nwhen no coverage window is recorded."
        },
        "status": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/ReportedInjuryStatus",
              "description": "Last known status of the open report. Null means no status was recorded."
            }
          ],
          "description": "Last known status of the open report. Null means no status was recorded."
        }
      }
    },
    "PublicAggregation": {
      "type": "string",
      "description": "How a rule combines games.",
      "enum": [
        "additive",
        "additive_observed",
        "ratio_of_sums",
        "formula",
        "max"
      ]
    },
    "PublicAuditFact": {
      "type": "object",
      "description": "An accepted participation or completeness fact.",
      "required": [
        "key",
        "revision_id",
        "state",
        "updated_at",
        "last_checked_at",
        "history",
        "contest_context"
      ],
      "properties": {
        "contest_context": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/AuditContestContext"
            }
          ]
        },
        "history": {
          "$ref": "#/$defs/HistoryExtent"
        },
        "key": {
          "$ref": "#/$defs/PublicFactKey"
        },
        "last_checked_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "revision_id": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/PublicRevisionId"
            }
          ]
        },
        "state": {
          "$ref": "#/$defs/FactState"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "PublicAvailability": {
      "type": "string",
      "description": "Measure availability.",
      "enum": [
        "observed",
        "unreported",
        "unsupported",
        "not_applicable",
        "undefined",
        "unknown"
      ]
    },
    "PublicCursor": {
      "type": "string",
      "description": "An opaque continuation token."
    },
    "PublicFactKey": {
      "type": "object",
      "description": "Identity of a participation or completeness fact.",
      "required": [
        "context",
        "contest_id",
        "subject",
        "competition_id",
        "season",
        "stage",
        "aspect",
        "phase",
        "measure_id"
      ],
      "properties": {
        "aspect": {
          "$ref": "#/$defs/KeyAspect"
        },
        "competition_id": {
          "$ref": "#/$defs/CompetitionId"
        },
        "contest_id": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/ContestId"
            }
          ]
        },
        "context": {
          "$ref": "#/$defs/KeyContext"
        },
        "measure_id": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/QualifiedMeasure"
            }
          ]
        },
        "phase": {
          "type": [
            "string",
            "null"
          ]
        },
        "season": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "stage": {
          "type": [
            "string",
            "null"
          ]
        },
        "subject": {
          "$ref": "#/$defs/PublicSubject"
        }
      }
    },
    "PublicFinality": {
      "type": "string",
      "description": "Whether the contest is over.",
      "enum": [
        "final",
        "not_final",
        "unknown"
      ]
    },
    "PublicMeta": {
      "type": "object",
      "description": "Response metadata: exactly four fields, and no source.",
      "required": [
        "request_id",
        "fetched_at",
        "cache",
        "version"
      ],
      "properties": {
        "cache": {
          "$ref": "#/$defs/CacheStatus"
        },
        "fetched_at": {
          "type": "string",
          "format": "date-time"
        },
        "request_id": {
          "type": "string",
          "format": "uuid"
        },
        "version": {
          "type": "string"
        }
      }
    },
    "PublicNumber": {
      "type": "number"
    },
    "PublicPageLimit": {
      "type": "integer",
      "format": "int32",
      "description": "The number of history items requested.",
      "minimum": 0
    },
    "PublicRevisionId": {
      "type": "string",
      "format": "uuid",
      "description": "A revision identifier."
    },
    "PublicRevisionReason": {
      "type": "string",
      "description": "Why a revision was recorded.",
      "enum": [
        "baseline",
        "observation_changed",
        "availability_changed",
        "coverage_changed",
        "evidence_changed",
        "participation_changed",
        "completeness_changed",
        "calculation_changed",
        "withdrawal",
        "identity_deferred"
      ]
    },
    "PublicRounding": {
      "type": "string",
      "description": "How a rule rounds.",
      "enum": [
        "finite_f64"
      ]
    },
    "PublicSnapshotNo": {
      "type": "string",
      "description": "A committed snapshot number, as a decimal string."
    },
    "PublicStateReason": {
      "type": "string",
      "description": "Why a state holds.",
      "enum": [
        "reported",
        "confirmed_absence",
        "no_evidence",
        "baseline_unverified",
        "identity_deferred",
        "inputs_missing",
        "expectation_unknown",
        "audit_not_enabled",
        "capability_rule",
        "role_rule",
        "zero_denominator"
      ]
    },
    "PublicSubject": {
      "oneOf": [
        {
          "type": "object",
          "required": [
            "id",
            "kind"
          ],
          "properties": {
            "id": {
              "type": "string",
              "description": "Canonical contest identifier (`cst_…`) for a team match, individual match, or field event; used by public contest routes.\nCanonical entity identifier (`cst_<base32>`). The suffix is exactly 26 Crockford base32 symbols encoding a UUID. Output uses lowercase without padding. The prefix is case-sensitive; another entity type’s prefix and bare UUID/source identifiers are rejected. Treat the full identifier as opaque.",
              "pattern": "^cst_"
            },
            "kind": {
              "type": "string",
              "description": "Union discriminator `kind`: the literal \"contest\" selects this member. A subject's kind and typed id as one value, so a kind cannot carry another kind's id.",
              "enum": [
                "contest"
              ]
            }
          }
        },
        {
          "type": "object",
          "required": [
            "id",
            "kind"
          ],
          "properties": {
            "id": {
              "type": "string",
              "description": "Canonical sport-agnostic person id (`per_...`).\nCanonical entity identifier (`per_<base32>`). The suffix is exactly 26 Crockford base32 symbols encoding a UUID. Output uses lowercase without padding. The prefix is case-sensitive; another entity type’s prefix and bare UUID/source identifiers are rejected. Treat the full identifier as opaque.",
              "pattern": "^per_"
            },
            "kind": {
              "type": "string",
              "description": "Union discriminator `kind`: the literal \"person\" selects this member. A subject's kind and typed id as one value, so a kind cannot carry another kind's id.",
              "enum": [
                "person"
              ]
            }
          }
        },
        {
          "type": "object",
          "required": [
            "id",
            "kind"
          ],
          "properties": {
            "id": {
              "type": "string",
              "description": "Sport-scoped team id (`team_...`).\nCanonical entity identifier (`team_<base32>`). The suffix is exactly 26 Crockford base32 symbols encoding a UUID. Output uses lowercase without padding. The prefix is case-sensitive; another entity type’s prefix and bare UUID/source identifiers are rejected. Treat the full identifier as opaque.",
              "pattern": "^team_"
            },
            "kind": {
              "type": "string",
              "description": "Union discriminator `kind`: the literal \"team\" selects this member. A subject's kind and typed id as one value, so a kind cannot carry another kind's id.",
              "enum": [
                "team"
              ]
            }
          }
        }
      ],
      "description": "A subject's kind and typed id as one value, so a kind cannot carry another kind's id."
    },
    "PublicUnit": {
      "type": "string",
      "description": "Numeric domain of a value.",
      "enum": [
        "count",
        "flag",
        "dimensionless",
        "minutes",
        "seconds",
        "yards",
        "metres",
        "innings",
        "runs_per_nine_innings",
        "baserunners_per_inning",
        "bases_per_at_bat",
        "yards_per_attempt",
        "yards_per_carry",
        "yards_per_reception",
        "yards_per_punt",
        "rating_points",
        "strokes_per_round",
        "place"
      ]
    },
    "QualifiedMeasure": {
      "type": "string",
      "description": "A registered measure id such as `pitching.hld`."
    },
    "ReportedInjuryStatus": {
      "type": "string",
      "description": "Reported status token, such as `Out`, `Day-To-Day` or `10-Day-IL`. The vocabulary is not a closed set.",
      "maxLength": 64
    },
    "StatContext": {
      "type": "object",
      "description": "The contest, person and team a revision describes.",
      "required": [
        "contest_id",
        "person_id",
        "team_id",
        "competition_id",
        "contest_context"
      ],
      "properties": {
        "competition_id": {
          "$ref": "#/$defs/CompetitionId"
        },
        "contest_context": {
          "$ref": "#/$defs/AuditContestContext"
        },
        "contest_id": {
          "$ref": "#/$defs/ContestId"
        },
        "person_id": {
          "$ref": "#/$defs/PersonId"
        },
        "team_id": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/TeamId"
            }
          ]
        }
      }
    },
    "StatCurrent": {
      "type": "object",
      "description": "The accepted head of a stat, or an explicit unknown when none exists.",
      "required": [
        "revision_id",
        "value",
        "status",
        "reason",
        "coverage",
        "calculation",
        "updated_at",
        "last_checked_at"
      ],
      "properties": {
        "calculation": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/CalculationMetadata"
            }
          ]
        },
        "coverage": {
          "$ref": "#/$defs/MeasureCoverage"
        },
        "last_checked_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "reason": {
          "$ref": "#/$defs/PublicStateReason"
        },
        "revision_id": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/PublicRevisionId"
            }
          ]
        },
        "status": {
          "$ref": "#/$defs/PublicAvailability"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "value": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/PublicNumber"
            }
          ]
        }
      }
    },
    "StatDescriptor": {
      "type": "object",
      "description": "Generated name, description and unit of a measure.",
      "required": [
        "id",
        "name",
        "description",
        "unit",
        "calculation"
      ],
      "properties": {
        "calculation": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/CalculationMetadata"
            }
          ]
        },
        "description": {
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/QualifiedMeasure"
        },
        "name": {
          "type": "string"
        },
        "unit": {
          "$ref": "#/$defs/PublicUnit"
        }
      }
    },
    "StatDetail": {
      "type": "object",
      "description": "Everything a client needs to inspect one stat, from one snapshot.",
      "required": [
        "stat",
        "context",
        "snapshot_no",
        "support",
        "current",
        "participation",
        "completeness",
        "pregame_context",
        "history"
      ],
      "properties": {
        "completeness": {
          "$ref": "#/$defs/PublicAuditFact"
        },
        "context": {
          "$ref": "#/$defs/StatContext"
        },
        "current": {
          "$ref": "#/$defs/StatCurrent"
        },
        "history": {
          "$ref": "#/$defs/StatHistory"
        },
        "participation": {
          "$ref": "#/$defs/PublicAuditFact"
        },
        "pregame_context": {
          "$ref": "#/$defs/PregameContext"
        },
        "snapshot_no": {
          "$ref": "#/$defs/PublicSnapshotNo"
        },
        "stat": {
          "$ref": "#/$defs/StatDescriptor"
        },
        "support": {
          "$ref": "#/$defs/AuditSupport"
        }
      }
    },
    "StatHistory": {
      "type": "object",
      "description": "A page of history, newest first.",
      "required": [
        "status",
        "started_at",
        "before_start",
        "limit",
        "items",
        "next_cursor",
        "has_more"
      ],
      "properties": {
        "before_start": {
          "$ref": "#/$defs/BeforeStart"
        },
        "has_more": {
          "type": "boolean"
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StatRevision"
          }
        },
        "limit": {
          "$ref": "#/$defs/PublicPageLimit"
        },
        "next_cursor": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/PublicCursor"
            }
          ]
        },
        "started_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "status": {
          "$ref": "#/$defs/HistoryStatus"
        }
      }
    },
    "StatRevision": {
      "type": "object",
      "description": "One accepted semantic revision with its frozen context.",
      "required": [
        "revision_id",
        "value",
        "status",
        "state_reason",
        "reason",
        "unit",
        "coverage",
        "calculation",
        "updated_at",
        "last_checked_at",
        "recorded_at",
        "context"
      ],
      "properties": {
        "calculation": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/CalculationMetadata"
            }
          ]
        },
        "context": {
          "$ref": "#/$defs/StatContext"
        },
        "coverage": {
          "$ref": "#/$defs/MeasureCoverage"
        },
        "last_checked_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "reason": {
          "$ref": "#/$defs/PublicRevisionReason"
        },
        "recorded_at": {
          "type": "string",
          "format": "date-time"
        },
        "revision_id": {
          "$ref": "#/$defs/PublicRevisionId"
        },
        "state_reason": {
          "$ref": "#/$defs/PublicStateReason"
        },
        "status": {
          "$ref": "#/$defs/PublicAvailability"
        },
        "unit": {
          "$ref": "#/$defs/PublicUnit"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "value": {
          "oneOf": [
            {
              "type": "null",
              "description": "Accepts the JSON null value."
            },
            {
              "$ref": "#/$defs/PublicNumber"
            }
          ]
        }
      }
    },
    "SupportStatus": {
      "type": "string",
      "description": "Audit enablement level.",
      "enum": [
        "enabled",
        "partial",
        "not_enabled"
      ]
    },
    "TeamId": {
      "type": "string",
      "description": "Sport-scoped team id (`team_...`).\nCanonical entity identifier (`team_<base32>`). The suffix is exactly 26 Crockford base32 symbols encoding a UUID. Output uses lowercase without padding. The prefix is case-sensitive; another entity type’s prefix and bare UUID/source identifiers are rejected. Treat the full identifier as opaque."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/statshawk-ai-public-stat-response-stat-detail"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.