Troubleshooting Guide
This guide addresses common issues you may encounter when using SportsAPI Pro.Empty or Missing Data
”Match statistics are empty”
Symptom:/api/match/{matchId}/statistics returns empty or minimal data
Cause: Statistics are only populated during and after a match. Pre-match requests return empty objects. Additionally, stat types with zero values are omitted to reduce response size.
Solution: Always check if the data exists before accessing:
Statistics are populated live during matches and finalized post-match. Pre-match requests will return empty data — this is expected behavior.
”Top players endpoint returns empty”
Symptom:/api/tournaments/{tournamentId}/seasons/{seasonId}/top-players returns empty data
Cause: The tournament/season combination doesn’t have player ranking data available. This occurs for leagues outside the Premium and Full coverage tiers, or for cup competitions.
Solution:
- Use
/top-playersonly for major league competitions - Verify you have the correct
tournamentIdandseasonId:
- Premier League (ID: 7)
- La Liga (ID: 11)
- Bundesliga (ID: 25)
- Serie A (ID: 17)
- Ligue 1 (ID: 35)
- Champions League (ID: 572)
- Europa League (ID: 573)
“Lineups missing detailed metrics”
Symptom:/api/match/{matchId}/lineups returns fewer stats than expected (e.g., no xG, limited passing data)
Cause: Standard coverage leagues only include basic statistics. Detailed metrics like xG, tackles, and interceptions are only available for Premium tier competitions.
Solution: For detailed metrics, query matches from Premium Coverage competitions:
Data Coverage Questions
”Why do some leagues have less data?”
Data completeness varies by competition tier due to data coverage levels:| Tier | Example Competitions | Available Data |
|---|---|---|
| Premium | Premier League, La Liga, Champions League | 40+ player metrics, xG, shotmaps, AI insights |
| Full | Eredivisie, Turkish Süper Lig, MLS | 20+ metrics, basic xG, top player rankings |
| Standard | Greek Super League, lower domestic leagues | Basic stats, scores, lineups |
| Basic | Minor divisions, friendlies | Scores and key events only |
”How do I know what data is available for a tournament?”
Use the tournament detail and seasons endpoints to explore what’s available:“404 on /api/tournament/{id}/matches/{year}”
Symptom: Requests like /api/tournament/242/matches/2024 or /api/tournament/17/matches/24-25 return 404.
Cause: There is no /matches/{year} shortcut. Season-scoped endpoints require a numeric seasonId resolved from /api/tournaments/{id}/seasons — never the human-readable year string. This trips up calendar-year leagues (MLS, Brazilian Série A) most often because "2024" looks like a valid path segment.
Solution: Resolve the season first, then call the season-scoped endpoint:
”Cricket /rounds returns 404”
Symptom: GET /api/tournament/:id/season/:sid/rounds on cricket returns 404 — Upstream returned status 404.
Cause: Cricket tournaments don’t use a round/matchday structure upstream — roundInfo on cricket events is empty, so there is no rounds list to return.
Solution: Use these endpoints instead:
/api/tournament/:id/season/:sid/events/last/:page— paginated match list/api/tournament/:id/season/:sid/standings— points table/api/tournament/:id/season/:sid/knockout— playoff bracket/api/match/:matchId/innings(or/scores) — full per-match scorecard
Authentication Issues
”401 Unauthorized”
Cause: Missing or invalid API key. Solution:- Verify your API key is correct (check for typos)
- Ensure you’re using the
x-api-keyheader (notAuthorization) - Check your API key hasn’t expired
”403 Forbidden”
Cause: Your subscription doesn’t include access to this endpoint or you’ve exceeded your daily limit. Solution:- Check your plan’s included endpoints
- Verify your daily request quota
- Upgrade your plan if needed
Rate Limiting
”429 Too Many Requests”
Cause: You’ve exceeded the rate limit for your plan. Solution:- Implement exponential backoff
- Cache responses where possible
- Use efficient polling patterns
Still Need Help?
Email Support
Contact our support team for personalized assistance