Documentação API de esportes

Por

em



interface ParticipantStats {
  goals: number;
  points?: number;
  wins?: number;
  losses?: number;
  draws?: number;
  goals_against?: number;
  score_percent?: number;
}

interface ParticipantResults {
  progress: string;
  winner: string;
  Result: string;
}

interface Participant {
  counter: number;
  id: number;
  name: string;
  short_name: string;
  acronym: string;
  logo: string;
  stats: ParticipantStats;
  results?: ParticipantResults;
}

interface Event {
  id: number;
  name: string;
  relation_status: string;
  start_date: string;
  status_id: number;
  status_name: string;
  status_type: string;
  clock_status: string;
  winner_id: number | null;
  progress_id: number | null;
  old_event_id: string;
  venue: string;
  participants: Participant[];
}

interface Round {
  round_id: number;
  round_name: string;
  events: Event[];
}

interface Group {
  id: number;
  name: string;
  ut: number;
  stage_id: string;
  season_id: string;
  competition_id: string;
  ranking: Participant[];
  rounds: Round[];
}

interface Stage {
  id: number;
  stage_name_id: number;
  name: string;
  start_date: string;
  end_date: string;
  show_standings: string;
  groups_nr: number;
  sort: number;
  is_current: string;
  ut: number;
  old_stage_id: string;
  has_brackets: string;
  season_id: number;
  competition_id: number;
  groups: Group[];
}

interface StageResponse {
  stage: Stage;
}
{
  "stage": {
    "id": 147113,
    "stage_name_id": 54,
    "name": "Fase de grupos",
    "start_date": "2026-06-10",
    "end_date": "2026-06-27",
    "show_standings": "yes",
    "groups_nr": 12,
    "sort": 1,
    "is_current": "yes",
    "ut": 1774993858,
    "old_stage_id": "",
    "has_brackets": "no",
    "season_id": 68411,
    "competition_id": 1708,
    "groups": [
      {
        "id": 10,
        "name": "Grupo J",
        "ut": 1415797236,
        "stage_id": "",
        "season_id": "",
        "competition_id": "",
        "ranking": [
          {
            "count": 1,
            "id": 1,
            "name": "Argentina",
            "short_name": "Argentina",
            "acronym": "ARG",
            "logo": "URL aqui",
            "stats": {
              "points": 0,
              "wins": 0,
              "losses": 0,
              "draws": 0,
              "goals": 0,
              "goals_against": 0,
              "score_percent": 0.0
            }
          },
          {
            "count": 2,
            "id": 1,
            "name": "Argentina",
            "short_name": "Argentina",
            "acronym": "ARG",
            "logo": "URL aqui",
            "stats": {
              "points": 0,
              "wins": 0,
              "losses": 0,
              "draws": 0,
              "goals": 0,
              "goals_against": 0,
              "score_percent": 0.0
            }
          },
          {
            "count": 3,
            "id": 1,
            "name": "Argentina",
            "short_name": "Argentina",
            "acronym": "ARG",
            "logo": "URL aqui",
            "stats": {
              "points": 0,
              "wins": 0,
              "losses": 0,
              "draws": 0,
              "goals": 0,
              "goals_against": 0,
              "score_percent": 0.0
            }
          },
          {
            "count": 4,
            "id": 1,
            "name": "Argentina",
            "short_name": "Argentina",
            "acronym": "ARG",
            "logo": "URL aqui",
            "stats": {
              "points": 0,
              "wins": 0,
              "losses": 0,
              "draws": 0,
              "goals": 0,
              "goals_against": 0,
              "score_percent": 0.0
            }
          }
        ],
        "rounds": [
          {
            "round_id": 2,
            "round_name": "Rodada 2",
            "events": [
              {
                "id": 6306578,
                "name": "Argentina - Austria",
                "relation_status": "not_started",
                "start_date": "2026-06-22 17:00",
                "status_id": 1,
                "status_name": "Não iniciado",
                "status_type": "scheduled",
                "clock_status": "stopped",
                "winner_id": null,
                "progress_id": null,
                "old_event_id": "",
                "venue": "NOME do estádio aqui",
                "participants": [
                  {
                    "counter": 1,
                    "id": 1,
                    "name": "Argentina",
                    "short_name": "Argentina",
                    "acronym": "ARG",
                    "logo": "URL aqui",
                    "stats": {
                      "goals": ""
                    },
                    "results": {
                      "progress": "0",
                      "winner": "0",
                      "Result": ""
                    }
                  },
                  {
                    "counter": 2,
                    "id": 1,
                    "name": "Áustria",
                    "short_name": "Áustria",
                    "acronym": "AUT",
                    "logo": "URL aqui",
                    "stats": {
                      "goals": ""
                    },
                    "results": {
                      "progress": "0",
                      "winner": "0",
                      "Result": ""
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}