Skip to content
FootballAPI
xG Telemetry & Tactical Analytics7 min read·Updated 2026-11-26

Live Football xG & Match Stats API: Possession, Shots on Target, Corners & Formations

Quick Answer (BLUF)

Every match returned by /v1/matches/live and /v1/matches/detail includes a structured telemetry block (home & away) with possession_pct, shots, shots_on_target, corners, fouls, offsides, saves, yellow_cards, red_cards, and xg computed via transparent shot telemetry or enriched live in-play stats.

Gateway p50 Latency22ms cached (<280ms warm · 1.8s live)
Concurrency & Rate Limit60 – 600 RPM (Dual-Rail Failover)Need 1,000+ RPM? Dedicated Enterprise Key Pool available
Deterministic Unit Price$0.08–$0.15 / 1,000 matches

Instant fb_live_... key in 3s (3,000 Free Credits · $0.30) · $1 = 10,000 Credits · 0 Credits on empty queries · Top up anytime via 0%-fee Multi-Chain Crypto (+5% bonus credits, never-expiring PAYG)

Instant Quickstart · Copy & Run in 30 Seconds

Hydrate Full Match Telemetry, Lineups & Key Events

import requests

d = requests.get(
    "https://api.footballapi.dev/v1/matches/detail",
    params={"match_id": "401878758"},
    headers={"x-api-key": "fb_live_your_api_key"},
).json()["data"]
print(d["lineups"]["home"]["formation"], "xG:", d["telemetry"]["home"]["xg"])
Want to inspect real live MLS & valuation JSON before creating an account?Try 3 Free Live Runs in Browser Playground (No Login) →

Key Engineering Takeaways (TL;DR)

  • ✓Unified telemetry object across both live in-play and full-time matches.
  • ✓Includes tactical formations (e.g. 3-4-2-1, 4-2-3-1), starting XI, bench subs, and minute-by-minute key events.
  • ✓Zero noisy third-party wrapper bloat — built strictly for pure sports analytics and tactical visualization.

1. Extracting Starting XI Formations & Shot Quality xG from /v1/matches/detail

Call GET /v1/matches/detail?match_id=401878758 to retrieve both sides' full tactical boxscore, starting lineups, and key event timeline.

Hydrate Full Match Telemetry, Lineups & Key Events

Cost: 10 Credits per complete match dossier ($0.0004 on Business).

curl -sS "https://api.footballapi.dev/v1/matches/detail?match_id=401878758" \
  -H "x-api-key: fb_live_your_api_key"
Test this exact endpoint right now in your browser (3 free anonymous runs):Run 3 Free Live Queries in Playground →

Interactive Football Analytics Underwriting Terminal · GET /v1/matches/detail

Verify real-time latency, parcel credit math & JSON schema

10,000 matches/day
2,000 dossiers/day
5,000 records/day
HTTP Calls / Day
2,750
5 Unified Routes
Credit Unit
$1 = 10,000
$9 Indie Pack Ready
Empty / 404 Fee
0 Credits
$0.00 on 0 matches
Estimated Monthly Pipeline Cost (30 Days)
$60.00/ mo on Business ($86.25 on Pro)
Monthly consumption: 1,500,000 Credits (50,000 Credits/day)
FootballAPI (Business $0.08/1K records):$60.00 / mo
RealEstateAPI / API-Football ($20/1K records):$10200.00 / mo
Empty ZIP search / unfound property fee:$0.00 (0 Credits)

Frequently Asked Questions

How is Expected Goals (xG) calculated in FootballAPI?
Live matches enriched by our in-play telemetry rail surface direct xG and dangerous attack counts; when direct xG is unavailable, shot_telemetry_v1 computes transparent xG from shots on target, off-target attempts, and corner pressure.