Como buscar estatisticas de um jogador

How to get individual player statistics

O endpoint /players retorna dados completos de um jogador incluindo bio, estatisticas de jogo, gols, passes, dribles, duelos e cartoes.

The /players endpoint returns complete player data including bio, game stats, goals, passes, dribbles, duels and cards.

1. Buscar jogador por ID / Get player by ID

const API_KEY = 'YOUR_API_KEY';
const BASE = 'https://football.api.insyde.one';

async function getPlayer(id, season) {
  const url = `${BASE}/players?id=${id}&season=${season}&key=${API_KEY}`;
  const res = await fetch(url);
  const data = await res.json();
  return data.response[0];
}

// Memphis Depay
const player = await getPlayer(1100, 2025);

Resposta da API / API response:

{
  "player": {
    "id": 1100,
    "name": "Memphis Depay",
    "firstname": "Memphis",
    "lastname": "Depay",
    "age": 31,
    "birth": { "date": "1994-02-13", "place": "Moordrecht", "country": "Netherlands" },
    "nationality": "Netherlands",
    "height": "176 cm",
    "weight": "78 kg",
    "photo": "https://football.api.insyde.one/football/players/1100.png"
  },
  "statistics": [
    {
      "team": { "id": 131, "name": "Corinthians" },
      "league": { "id": 71, "name": "Serie A", "season": 2025 },
      "games": { "appearences": 30, "minutes": 2340, "rating": "7.6" },
      "goals": { "total": 15, "assists": 8 },
      "shots": { "total": 86, "on": 42 },
      "passes": { "total": 1200, "key": 52, "accuracy": 81 },
      "dribbles": { "attempts": 124, "success": 78 },
      "duels": { "total": 312, "won": 148 },
      "cards": { "yellow": 4, "red": 0 }
    }
  ]
}

2. Dados disponiveis / Available data

Multiplas ligas: Se o jogador participou de mais de uma competicao, statistics tera um item por liga.
Multiple leagues: If the player participated in more than one competition, statistics will have one entry per league.

3. Buscar por nome / Search by name

Tambem e possivel buscar por nome usando o parametro search (minimo 4 caracteres):

const res = await fetch(
  `${BASE}/players?search=memphis&league=71&season=2025&key=${API_KEY}`
);

Back to Football API docs