{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/soccer-data-co/json-schema/soccer-data-co-get-teams-teamid-stats-response-schema.json",
  "title": "GetTeamsTeamidStatsResponse",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/soccer-data-co-openapi-generated.yml#/components/schemas/GetTeamsTeamidStatsResponse",
  "type": "object",
  "properties": {
    "data.team_id": {
      "type": "string",
      "description": "The team's id."
    },
    "data.season_id": {
      "type": "string",
      "description": "The season the numbers cover."
    },
    "data.competition_id": {
      "type": "string",
      "description": "The competition that season belongs to."
    },
    "data.matches_played": {
      "type": "integer",
      "description": "Matches played."
    },
    "data.wins": {
      "type": "integer",
      "description": "Matches won."
    },
    "data.draws": {
      "type": "integer",
      "description": "Matches drawn."
    },
    "data.losses": {
      "type": "integer",
      "description": "Matches lost."
    },
    "data.points": {
      "type": "integer",
      "description": "Points earned."
    },
    "data.position": {
      "type": "integer",
      "description": "Place in the table."
    },
    "data.goals_for": {
      "type": "integer",
      "description": "Goals scored."
    },
    "data.goals_against": {
      "type": "integer",
      "description": "Goals conceded."
    },
    "data.goal_difference": {
      "type": "integer",
      "description": "goals_for minus goals_against."
    },
    "data.form": {
      "type": "string",
      "description": "Results of the latest finished matches that season, up to five letters: W, D or L."
    },
    "data.expected_goals_for": {
      "type": "number",
      "description": "xG created, summed over the matches in xg_matches. Null when none of them has xG, for example in a competition without xG coverage."
    },
    "data.expected_goals_against": {
      "type": "number",
      "description": "xG conceded, summed over the matches in xg_matches. Null when none of them has xG."
    },
    "data.xg_matches": {
      "type": "integer",
      "description": "How many matches the xG totals are based on."
    }
  }
}