Discover/StatsHub API
live

StatsHub APIstatshub.com

Retrieve football xG, xGA, possession, and shot data from StatsHub. Covers fixtures, league standings, and team/player stats across 120+ leagues worldwide.

This API takes change requests — .
Endpoint health
verified 2d ago
get_team_statistics
get_league_standings
get_team_stats
get_match_stats
get_fixtures_by_date
5/5 passing latest checkself-healing
Endpoints
5
Updated
9d ago

What is the StatsHub API?

The StatsHub API exposes 5 endpoints covering football match fixtures, expected goals (xG/xGA), league standings, and team statistics across 120+ leagues. The get_fixtures_by_date endpoint returns match IDs, scores, and tournament metadata for any calendar date, feeding the event_id values needed to pull shot-level xG breakdowns per match. Player-level shot stats, season-level possession figures, and multi-category team aggregates are also accessible.

This call costs1 credit / call— charged only on success
Try it
Date in YYYY-MM-DD format. If omitted, defaults to today's date (UTC).
api.parse.bot/scraper/e1f0e079-0946-4b6c-9e3c-9227eddaa64a/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/e1f0e079-0946-4b6c-9e3c-9227eddaa64a/get_fixtures_by_date?date=2026-08-24' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 5 totalmissing one? ·

Get all football fixtures/matches for a specific date. Returns match IDs, teams, scores, tournament info, and status. Each fixture includes event_id, home_team.id, and away_team.id needed to query match-level xG stats via get_match_stats. Covers 120+ leagues worldwide.

Input
ParamTypeDescription
datestringDate in YYYY-MM-DD format. If omitted, defaults to today's date (UTC).
Response
{
  "type": "object",
  "fields": {
    "date": "string in YYYY-MM-DD format",
    "fixtures": "array of fixture objects with event_id, home_team, away_team, scores, tournament, status",
    "total_fixtures": "integer count of fixtures returned"
  },
  "sample": {
    "data": {
      "date": "2025-05-25",
      "fixtures": [
        {
          "slug": "bournemouth-vs-leicester-city-mebxgg",
          "round": 38,
          "status": "finished",
          "country": "England",
          "event_id": 12436536,
          "away_team": {
            "id": 31,
            "name": "Leicester City",
            "short_name": "Leicester"
          },
          "home_team": {
            "id": 60,
            "name": "Bournemouth",
            "short_name": "Bournemouth"
          },
          "away_score": 0,
          "has_lineup": false,
          "home_score": 2,
          "tournament": {
            "id": 1,
            "name": "Premier League",
            "unique_id": 17,
            "unique_name": "Premier League"
          },
          "internal_id": 8676,
          "winner_code": 100,
          "start_timestamp": 1748185200
        }
      ],
      "total_fixtures": 131
    },
    "status": "success"
  }
}

About the StatsHub API

Fixtures and Match-Level xG

get_fixtures_by_date accepts a date parameter in YYYY-MM-DD format (defaults to today UTC) and returns an array of fixture objects. Each object includes event_id, home_team.id, away_team.id, final or live scores, tournament, and status. These IDs are the required inputs for get_match_stats, which returns home_xg, away_xg, home_xga, away_xga, and per-player arrays (home_players, away_players) each containing name, expected_goals, goals, shots, and shots_on_target. Only matches that have shotmap data available return meaningful xG figures.

League Standings

get_league_standings takes a tournament_id (e.g. 1 for Premier League, 406 for Peru Liga 1) and an optional season_id. When season_id is omitted it defaults to the latest available season. The response includes a standings array where each team object carries position, points, xg_for, xg_against, possession, wins, draws, losses, plus shot and big-chance counts.

Team Statistics

Two endpoints cover team-level aggregates. get_team_statistics returns a single-call response organized into overview, attack, defence, possession, duels, cards, corners, and other objects keyed by team_id. The attack object includes expected_goals and big_chances; defence includes clean_sheets, tackles, and interceptions. Filters for period, half, home_away, season_id, and competition_id are all optional. get_team_stats covers the same stat categories and additionally returns players (per-player summaries with xG, assists, avg_rating) and fixtures (recent match results with scores and timestamps), at the cost of more internal calls per request.

Reliability & maintenanceVerified

The StatsHub API is a managed, monitored endpoint for statshub.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when statshub.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official statshub.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
2d ago
Latest check
5/5 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a live match dashboard showing home and away xG updating as fixtures progress throughout a matchday.
  • Compare league-wide xG-for vs xG-against from standings data to identify over- and under-performing teams in a given season.
  • Track player-level shot conversion rates using expected_goals, goals, and shots_on_target from get_match_stats.
  • Generate weekly reports on team defensive performance using tackles, interceptions, and clean_sheets from get_team_statistics.
  • Populate a fantasy football tool with player xG and assist data drawn from get_team_stats player summaries.
  • Filter team stats by home_away to analyze home versus away splits in possession and duels across a full season.
  • Feed league standings xG data into a model to project end-of-season points totals beyond what actual results show.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo2005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min
Team$300/mo20,000300 req/min
Company$1,000/mo100,000500 req/min

Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does StatsHub have an official developer API?+
StatsHub does not publish a documented public developer API or API keys program at statshub.com. This Parse API provides structured programmatic access to the data available on the site.
What does `get_match_stats` return, and when does it not return xG data?+
get_match_stats returns home_xg, away_xg, home_xga, away_xga, and per-player shot stat arrays for both teams. xG figures are aggregated from shot-level data, so only matches that have shotmap coverage will return meaningful values. Matches without shotmap data — typically lower-division or certain non-European fixtures — will not produce populated xG fields.
What is the difference between `get_team_stats` and `get_team_statistics`?+
get_team_statistics returns aggregated season-level stats in a single response with no player or fixture data. get_team_stats covers the same stat categories and adds a players array (per-player xG, assists, avg_rating) and a fixtures array of recent results, but uses more internal calls per request, which can affect response time.
Are live in-progress match statistics available through this API?+
The API does not currently expose real-time in-match stat feeds or live score streams. get_fixtures_by_date returns match status and scores, and get_match_stats reflects data available for a given match at request time, but there is no dedicated live-update or polling endpoint. You can fork the API on Parse and revise it to add a live-match polling endpoint if that data becomes available on StatsHub.
Does the API cover historical seasons beyond the current one?+
Yes, get_league_standings and both team stat endpoints accept an optional season_id parameter. Omitting it defaults to the latest season, but supplying a known season_id retrieves data for older seasons. The API does not expose an endpoint to list all available season IDs for a given tournament. You can fork the API on Parse and add a season-discovery endpoint to enumerate available seasons by tournament.
Page content last updated . Spec covers 5 endpoints from statshub.com.
Related APIs in SportsSee all →
footystats.org API
Get live football scores, team performance metrics, league standings, and head-to-head match statistics all in one place. Search teams and leagues to access detailed player stats, comprehensive analytics, and in-depth performance data across football competitions worldwide.
soccerstats.com API
Access comprehensive soccer statistics including live league tables, match details, team performance metrics, and form rankings across multiple football leagues. Search for specific teams and analyze their season statistics, head-to-head records, and competitive standings to stay informed on the latest soccer data.
whoscored.com API
Search for players and teams, then dive deep into their performance metrics, match statistics, and detailed passing data to analyze football games and player abilities. Get comprehensive insights on team performance, individual player stats, and play-by-play event information to power your football analysis and decision-making.
aiscore.com API
Track upcoming football matches and analyze team performance with real-time fixtures and the last 5 match statistics for any team in your chosen fixture. Make informed predictions by accessing detailed team form data and scheduled games for any date.
football-data.org API
Get live match scores, team standings, and player statistics across football competitions worldwide. Search for teams, view head-to-head matchups, track top scorers, and explore detailed information about competitions and geographical areas.
fotmob.com API
Get live football scores, detailed match results, and comprehensive league statistics across multiple competitions. Access player and team performance data, browse upcoming fixtures by date, and dive into in-depth analytics for your favorite leagues and matches.
flashscore.com API
Search teams and competitions, pull daily fixtures and live scores, and retrieve match details including events, statistics, and league standings from FlashScore.
sofascore.com API
Access head-to-head statistics and streaks for sporting events across a wide range of sports. Retrieve daily scheduled events, detailed H2H metrics (win rates, unbeaten records, draw rates, manager duels), and event fun facts. Filter and rank H2H streak metrics by configurable percentage thresholds to identify historically consistent patterns between any two teams.