MLS API
A soccer API for Major League Soccer: get the regular season and MLS Cup playoff fixtures, live scores with the match minute on paid plans, results with goals per half, the Eastern and Western Conference standings with the playoff places, and every club's squad. The free plan covers the current season's fixtures, results, standings and squads.
MLS is served by the Football (Soccer) API with league=mls. The same API key works for every sports API.
Available endpoints:
- /v1/soccermatches - MLS fixtures, live scores and results
- /v1/soccerstandings - MLS table
- /v1/soccerclubs - MLS clubs
- /v1/soccerplayers - MLS squads and players
MLS data at a glance
| Season value | season=2026 is the 2026 season, February to the MLS Cup in December (season_label 2026) |
|---|---|
| Season types | regular for the regular season and postseason for the MLS Cup playoffs, with the playoff round in round |
| Conferences | Eastern and Western; filter standings with conference=Eastern |
| Match day | date is the US Eastern date, so West Coast night matches keep their US date |
| Results | Goals per half in period_scores; regular season draws have winner: null, and playoff matches can go to extra_time or penalties |
| Club ids | soccer-lafc, soccer-inter-miami-cf, soccer-la-galaxy: one id per club, shared with other soccer competitions |
| Squads | Position, jersey number, nationality, birth date, height and weight |
MLS table fields
points, wins, draws, losses, goals_for, goals_against, goal_difference, the club's conference and conference_rank, the overall league_rank (ordered by points, then goal difference, then goals scored), and qualification for the MLS Cup playoff places, including the wild card matches.
https://api.api-ninjas.com/v1/soccermatches
Returns fixtures, live scores and results. Ask for one day, a team's season or one match; with only league you get today's matches. Paid plans see matches in progress with the score, half and match minute updated throughout the match; the free plan sees their status and the final score once they end. The free plan covers the current season. Developer plans add the three previous seasons, and the Business tier and above gets the full season archive.
Full parameter and response reference: /v1/soccermatches.
Live Demo
Get a free API key to get started — no credit card required.
Code Examples
curl -X GET "https://api.api-ninjas.com/v1/soccermatches?league=mls" \
-H "X-Api-Key: YOUR_API_KEY"https://api.api-ninjas.com/v1/soccerstandings
Returns the table for a season, ordered by league rank, or by conference or division rank when you filter. Tables update throughout the season, shortly after each match ends. The free plan covers the current season. Developer plans add the three previous seasons, and the Business tier and above gets the full season archive.
Full parameter and response reference: /v1/soccerstandings.
Live Demo
Code Examples
curl -X GET "https://api.api-ninjas.com/v1/soccerstandings?league=mls" \
-H "X-Api-Key: YOUR_API_KEY"https://api.api-ninjas.com/v1/soccerclubs
Lists clubs with their domestic league, country and home venue. Available on every plan.
Full parameter and response reference: /v1/soccerclubs.
Live Demo
Code Examples
curl -X GET "https://api.api-ninjas.com/v1/soccerclubs?league=mls" \
-H "X-Api-Key: YOUR_API_KEY"https://api.api-ninjas.com/v1/soccerplayers
Returns current squads and player profiles, by team or by name. Rosters refresh every day. Available on every plan.
Full parameter and response reference: /v1/soccerplayers.
Live Demo
Get a free API key to get started — no credit card required.
Code Examples
curl -X GET "https://api.api-ninjas.com/v1/soccerplayers?league=mls&team=LAFC" \
-H "X-Api-Key: YOUR_API_KEY"Frequently Asked Questions
Can I use the MLS API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the MLS API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.How do I get an API key and start using the MLS API?
Sign up for a free account to instantly get your API key, then pass it in theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.What happens if a request to the MLS API fails?
The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.Is there an official MLS API?
MLS does not publish a public API for developers. The API Ninjas Football (Soccer) API provides MLS fixtures, live scores, results, standings and squads withleague=mls. API Ninjas is not affiliated with or endorsed by Major League Soccer.Which season is season=2026?
The 2026 MLS season. MLS seasons are calendar years, soseasonandseason_labelare both2026, from the regular season through the MLS Cup playoffs.How do I get the Eastern or Western Conference standings?
Call/v1/soccerstandings?league=mls&conference=Eastern. Rows are ordered byconference_rankand includepoints, record, goals,goal_differenceandqualificationfor the playoff places. Withoutconference, the rows are the overall table.Are MLS Cup playoff matches included?
Yes, withseason_type=postseasonand the playoff round inround. Playoff matches can be decided inextra_timeor onpenalties, with the shootout inpenalty_scores.How do I get LAFC's or Inter Miami's fixtures?
Call/v1/soccermatches?league=mls&team=LAFCorteam=MIA. The club ids aresoccer-lafcandsoccer-inter-miami-cf.
Explore API integration use cases for recommended APIs and workflow examples.
API Ninjas is not affiliated with or endorsed by the NFL, the NBA, the NHL or any other league, competition or team. League, competition and team names are trademarks of their owners and are used only to identify them.