statshub.com APIstatshub.com ↗
Retrieve xG, xGA, possession, and player-level stats from StatsHub across fixtures, matches, and league standings via 3 endpoints.
curl -X GET 'https://api.parse.bot/scraper/e1f0e079-0946-4b6c-9e3c-9227eddaa64a/get_fixtures_by_date?date=2025-03-15' \ -H 'X-API-Key: $PARSE_API_KEY'
Get all football fixtures/matches for a specific date. Returns match IDs, teams, scores, tournament info, and status needed to query match-level stats via get_match_stats.
| Param | Type | Description |
|---|---|---|
| date | string | Date in YYYY-MM-DD format. If omitted, defaults to today's date (UTC). |
{
"type": "object",
"fields": {
"date": "string in YYYY-MM-DD format",
"fixtures": "array of fixture objects with event_id, teams, scores, tournament, status",
"total_fixtures": "integer count of fixtures returned"
},
"sample": {
"data": {
"date": "2026-05-14",
"fixtures": [
{
"slug": "girona-fc-vs-real-sociedad-mp6ks0",
"round": 36,
"status": "finished",
"country": "Spain",
"event_id": 14083624,
"away_team": {
"id": 2824,
"name": "Real Sociedad",
"short_name": "Real Sociedad"
},
"home_team": {
"id": 24264,
"name": "Girona FC",
"short_name": "Girona"
},
"away_score": 1,
"has_lineup": true,
"home_score": 1,
"tournament": {
"id": 36,
"name": "LaLiga",
"unique_id": 8,
"unique_name": "LaLiga"
},
"internal_id": 133717,
"winner_code": 100,
"start_timestamp": 1778781600
}
],
"total_fixtures": 16
},
"status": "success"
}
}About the statshub.com API
The StatsHub API gives developers access to football statistics across 3 endpoints, covering match-level xG and xGA, player-level shot data, and season-level league standings with possession metrics. Starting with get_fixtures_by_date, you retrieve event IDs for any date, then drill into individual matches with get_match_stats or pull full-season team performance with get_league_standings.
Fixtures and Match Lookup
The get_fixtures_by_date endpoint accepts a date parameter in YYYY-MM-DD format (defaults to today in UTC when omitted) and returns an array of fixture objects. Each fixture carries an event_id, home and away team objects with their own IDs, scores, tournament metadata, and match status. The total_fixtures integer confirms how many matches are scheduled for that date. The event_id, home_team.id, and away_team.id values from this response are required inputs for the match stats endpoint.
Match-Level xG and Player Stats
get_match_stats takes an event_id plus the home and away team IDs and returns aggregated xG figures for both sides: home_xg, away_xg, home_xga, and away_xga. Note that home_xga equals away_xg and vice versa — the endpoint makes both explicit for convenience. It also returns home_players and away_players arrays, each containing player-level stat objects that feed into the team totals.
League Standings with Season Stats
get_league_standings returns a standings array where each team object includes position, points, xg_for, xg_against, possession, and additional season-level metrics. The tournament_id parameter selects the competition (for example, 1 maps to the Premier League). If season_id is omitted, the endpoint automatically resolves to the latest available season for that tournament, and the season_id value used is echoed back in the response.
- Track daily fixtures and filter by tournament to build a match calendar feed
- Compare home_xg vs away_xg for a completed match to assess shot quality beyond the scoreline
- Aggregate player-level xG from home_players and away_players to rank individual performers over a matchday
- Pull xg_for and xg_against from league standings to identify over- and under-performing teams relative to their points tally
- Monitor possession values across a full season from get_league_standings to analyze pressing and ball-retention trends
- Chain get_fixtures_by_date and get_match_stats to build an automated post-match report pipeline
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.