Major League Soccer Football Data API
The top professional soccer league in North America. Rapidly growing in quality and viewership with clubs like Inter Miami, LA Galaxy, and Atlanta United.
What data is available for Major League Soccer
Sample API call for Major League Soccer
// Fetch Major League Soccer matches
const response = await fetch(
'https://api.thestatsapi.com/api/football/matches?competition_id=8',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const data = await response.json();
console.log(data);Use competition_id=8 for Major League Soccer in all endpoint requests.
TheStatsAPI provides Major League Soccer data including match results, player statistics, and historical records across 25 seasons. Access comprehensive Major League Soccer data alongside 1,195 other competitions through a single REST API, with plans starting at $50/month and a 7-day free trial.
Frequently Asked Questions
Does TheStatsAPI cover Major League Soccer?
Yes. TheStatsAPI provides full coverage of Major League Soccer including match fixtures, results, player statistics, team data, and historical records across 25 seasons.
How many seasons of Major League Soccer data are available?
TheStatsAPI has 25 seasons of Major League Soccer data, going back to the 2001 season. This includes match results, player stats, and team performance data.
Can I get player stats for Major League Soccer?
Yes. Player statistics for Major League Soccer include goals, assists, appearances, minutes played, yellow cards, red cards, and shots. Available for all players across all 25 seasons.
Access Major League Soccer Data & 1,195 Other Competitions
Start your 7-day free trial. All endpoints included on every plan.