Skip to content
FootballAPI
All endpoints

Match Detail, Starting XI Formations, Key Events & xG Telemetry

GET/v1/matches/detail· Updated 2026-11-26

Direct Answer · Football Analytics Engineering Summary

GET /v1/matches/detail hydrates the complete tactical dossier for any match_id: starting XI lineups, tactical formations (e.g. 3-4-2-1, 4-2-3-1), substitutes, goal/card/VAR key events, play-by-play commentary, and full team telemetry with xG for 10 Credits per call.

Honest Trade-Offs & Scope Boundaries

  • →Replaces 4 separate endpoints (lineups, events, stats, commentary) with one single JSON call.
  • →Invalid or unknown match_id returns HTTP 404 with strictly 0 Credits deducted.

Fetch complete match telemetry dossier by match_id: starting XI lineups, tactical formations, substitutes, goals/cards/VAR key events, play-by-play commentary, possession %, shots, passes, and Expected Goals (xG). Cost: 10 Credits / call.

Parameters

  • match_idstringrequired

    Numeric match_id from /v1/matches/live or /v1/matches/fixtures.

  • leaguestring

    Optional league hint.

Example Request (cURL / Python / JavaScript)

curl "https://api.footballapi.dev/v1/matches/detail?match_id=401878758" \
  -H "x-api-key: fb_live_your_api_key"

Live Response Preview

{
  "code": 0,
  "provider": "https://footballapi.dev",
  "status": "ok",
  "msg": "success",
  "data": {
    "match_id": "401878758",
    "league": "epl",
    "league_name": "English Premier League",
    "status": "finished",
    "minute": "FT",
    "home_team": {
      "team_id": "357",
      "name": "Leeds United",
      "score": 1
    },
    "away_team": {
      "team_id": "367",
      "name": "Tottenham Hotspur",
      "score": 0
    },
    "telemetry": {
      "home": {
        "possession_pct": 39.2,
        "shots": 16,
        "shots_on_target": 4,
        "corners": 6,
        "xg": 1.96
      },
      "away": {
        "possession_pct": 60.8,
        "shots": 11,
        "shots_on_target": 3,
        "corners": 5,
        "xg": 1.43
      },
      "xg_model": "shot_telemetry_v1"
    },
    "lineups": {
      "home": {
        "team_id": "357",
        "team_name": "Leeds United",
        "formation": "3-4-2-1",
        "starters": [],
        "substitutes": []
      },
      "away": {
        "team_id": "367",
        "team_name": "Tottenham Hotspur",
        "formation": "4-2-3-1",
        "starters": [],
        "substitutes": []
      }
    },
    "key_events": [
      {
        "minute": "1'",
        "type": "Kickoff",
        "scoring_play": false,
        "text": "First Half begins."
      }
    ]
  }
}

Response Fields

Complete tactical match detail dossier

Status Codes

200
Complete tactical match detail dossier