Match stats endpoint

Football Match Stats API

Get detailed per-match statistics — possession, shots, passes, corners, cards, and xG — for every covered fixture.

Quick answer

The football match stats API returns team-level statistics for a single match: possession, shots, shots on target, passes, corners, fouls, cards, and expected goals (xG) where available.

GET /football/matches/{match_id}/stats

Example request

const res = await fetch(
  "https://api.thestatsapi.com/api/football/matches/{match_id}/stats",
  { headers: { Authorization: "Bearer YOUR_API_KEY" } }
);
const data = await res.json();
console.log(data);
JSON response
{
  "data": {
    "match_id": "mt_10477",
    "home": {
      "team": "Liverpool", "possession": 58, "shots": 17,
      "shots_on_target": 8, "corners": 9, "xg": 2.41
    },
    "away": {
      "team": "Leicester City", "possession": 42, "shots": 7,
      "shots_on_target": 3, "corners": 3, "xg": 0.88
    }
  }
}

Key response fields

possession

Ball possession percentage per team.

shots / shots_on_target

Shot volume and accuracy.

corners

Corner counts — useful for corners markets.

xg

Expected goals per team where available.

What you can build with the Football Match Stats API

Match centre and stats widgets
Performance and tactical analysis
Corners and totals modelling
Post-match content automation

The Football Match Stats API is part of TheStatsAPI, a single REST API covering 1,000+ football competitions with fixtures, results, standings, player and match stats, odds, and xG. Plans start at $50/month with a 7-day free trial and every endpoint included.

Frequently Asked Questions

Is xG included in match stats?

Yes, where available. The xg field appears per team for competitions with xG coverage.

How do I get stats for one match?

Call /football/matches/{match_id}/stats with the match_id from the fixtures or results endpoint.

When are match stats finalized?

Live stats update during the match; finalized stats settle within 1 to 2 hours of full time.

Pricing_Plans

Simple, Transparent Pricing

Every plan includes stats, odds, xG, history, and every documented endpoint.

Starter

$50/month

For prototypes, side projects, and early products

Included in every plan:

  • All football data endpoints included
  • Pre-match & live odds endpoints
  • Bet365, Pinnacle, Betfair Exchange & Kambi odds
  • 1X2, Asian handicap, totals, BTTS, DNB & corners
  • Fixtures, results, match stats, teams & players
  • xG, player season stats & team stats
  • 10 years of historical match data
  • Build with AI
  • 80 competitions by default, up to 1,196 on request
  • 100,000 requests/month
  • 120 requests/min
  • Email & chat support
Most Popular

Growth

$129/month

For production apps with steady traffic

Everything in Starter, plus:

  • 500,000 requests/month
  • 300 requests/min
  • Priority support for production teams

Scale

$379/month

For high-volume, production-grade usage

Everything in Growth, upgraded to:

  • 5,000,000 requests/month
  • 1,000 requests/min
  • Dedicated support & SLA
Cancel anytime
7-day free trial on all plans

Build with the Football Match Stats API today

Start a 7-day free trial. Every endpoint and competition is included on every plan.

Get your API key