Use competition ID 76 to retrieve MLS fixtures, live scores, historical results, standings and other available competition data through Football API.

Everything you need to work with the Major League Soccer API.

Bring Major League Soccer data into your website or application with Football API. Access upcoming fixtures, live scores, completed matches, league standings, team details, top scorers, match events, lineups and statistics through structured JSON endpoints.

Whether you're developing a football website, a mobile sports application, a statistics platform or a betting-related product, the Major League Soccer API gives you access to the data needed to build and maintain your service.

Explore the data available through the Major League Soccer API

Football API brings different types of football data together on one platform. Each category has its own endpoint, so you can request the information your application needs without having to retrieve unrelated data.

Live Scores

Fixtures & Schedules

Historical Results

Match Events

Match Statistics

Match Lineups

League Standings

Live Standings

Top Goalscorers

Team Information

Head-to-Head Data

Match Odds

Competition Major League Soccer
Country USA
Competition ID 76
Competition type Domestic league
API endpoint /matches/live.json
HTTP method GET
Authentication API key and API secret
Response format JSON

Complete Major League Soccer API coverage

Major League Soccer (MLS) is the highest level of professional soccer in the United States and Canada. Football API provides dedicated competition filtering, making it possible to retrieve MLS data separately from other North American leagues and cup competitions.

Simply use competition ID 76 with the relevant endpoints to access Major League Soccer data. This allows you to build MLS-specific match pages, scoreboards, statistics sections and other features without mixing information from unrelated competitions.

Developer friendly football API
Major League Soccer API JavaScript
Major League Soccer API Python
Major League Soccer API Bash/Shell
Major League Soccer API TypeScript
Major League Soccer API Java
Major League Soccer API C#
Major League Soccer API C++
Major League Soccer API PowerShell
Major League Soccer API C
Major League Soccer API PHP
Major League Soccer API Go
Major League Soccer API Rust
Major League Soccer API Kotlin
Major League Soccer API Lua
Major League Soccer API Ruby
Major League Soccer API Dart
Major League Soccer API Swift
Major League Soccer API R
Major League Soccer API MATLAB
Major League Soccer API Perl
Major League Soccer API Elixir
Major League Soccer API Scala
Major League Soccer API Zig
Major League Soccer API Erlang
Major League Soccer API Fortran
Major League Soccer API F#
Major League Soccer API OCaml
Major League Soccer API endpoints

Different aspects of the competition are covered by separate Football API endpoints. Use them individually or combine their responses to create a more complete MLS experience for your users.


Major League Soccer Live Scores API

Keep track of Major League Soccer matches as they happen. Retrieve current scores and available match information for games in progress.


API endpoint: GET /matches/live.json

Filter: competition_id=76

Current match score

Home and away teams

Match status

Elapsed match time

Half-time score

Full-time score

Venue

Pre and live odds

Major League Soccer Fixtures API

Get the upcoming Major League Soccer schedule and display future matches in your application. Retrieve scheduled dates, kick-off times, home and away teams and available venue details. You can narrow the results by date, team or round to create specific fixture lists. Each request returns up to 30 fixtures, with pagination links available for additional results.

Fixture ID, Match date, Kick-off time, Home and away teams, Competition, Venue, Round, Group

API endpoint: GET /fixtures/list.json
Filter: competition_id=76

Major League Soccer Historical Results API

Look up completed Major League Soccer matches and access results from previous games. Use historical scores and match records to build team statistics, season archives, head-to-head comparisons and football history databases. Results can be narrowed using date ranges and team IDs, with pagination available when retrieving larger sets of matches.

API endpoint: GET /matches/history.json
Filter: competition_id=76

Available information includes

  • Match date
  • Historical match scores
  • Half-time score
  • Full-time score
  • Extra-time score
  • Penalty-shootout score
  • Home and away teams
  • Match status
  • Venue
  • Competition
API integration examples

Getting started with Major League Soccer API

Retrieving MLS data through Football API is straightforward. Once you've created an account, you'll receive an API key and API secret for authenticating your requests. Choose the endpoint you need, include the relevant competition ID and send a standard HTTP GET request. The API returns structured JSON that you can process and integrate using any programming language with HTTP and JSON support.

Livescore API

curl -G "https://api.football-api.com/matches/live.json" \
--data-urlencode "key=demo_key" \
--data-urlencode "secret=demo_secret" \
--data-urlencode "competition_id=76"

Fixtures API

curl -G "https://api.football-api.com/fixtures/list.json" \
--data-urlencode "key=demo_key" \
--data-urlencode "secret=demo_secret" \
--data-urlencode "competition_id=76"

Match history API

curl -G "https://api.football-api.com/matches/history.json" \
--data-urlencode "key=demo_key" \
--data-urlencode "secret=demo_secret" \
--data-urlencode "competition_id=76"

Standings API

curl -G "https://api.football-api.com/competitions/table.json" \
--data-urlencode "key=demo_key" \
--data-urlencode "secret=demo_secret" \
--data-urlencode "competition_id=76"

Goal

7' Cristiano Ronaldo

Red card

58' Sergio Ramos

Substitution

62' Kevin De Bruyne In   65' Phil Foden Out

Major League Soccer Match Events API

Get a detailed account of the events recorded during a Major League Soccer match. The response can include the player involved, event type, match minute, associated team and the order in which incidents occurred. Use this information to build match timelines, display important moments and give users a clearer picture of how a game unfolded. Available event types include:

- Goals
- Cards
- Substitutions

API endpoint: GET /matches/events.json
Filter: match_id

Major League Soccer Match Statistics API

Compare the performance of both teams using statistics from individual Major League Soccer matches. Retrieve available match data and use it to build statistical breakdowns, comparison tables and detailed match reports. Statistics become available after a match has started.

API endpoint: GET /statistics/matches.json
Filter: match_id

xG

1.2 - 0.8

Possession

64% - 46%

Attempts

10 - 1

On target

6 - 1

Off target

4 - 0

Blocked

2 - 2

Corners

1 - 3

Fouls

17 - 14

Goal kicks

3 - 7

Offsides

1 - 1

Penalties

0 - 0

Saves

1 - 2

Yellow cards

2 - 2

Red cards

0 - 0

Starters:

Cristiano Ronaldo

Sergio Ramos

Phil Foden

Substitutes:

Kevin De Bruyne

Major League Soccer Match Lineups API

Retrieve the starting lineups and available player information for Major League Soccer matches. Access details for both the home and away teams and use the data to create match previews, formation graphics and team lineup sections.

Depending on the match, the available information includes: Home and away teams, Player name, Shirt number, Starters, Substitutes, Player photo

API endpoint: GET /matches/lineups.json
Filter: match_id

Major League Soccer Standings API

Retrieve the Major League Soccer table for a selected season and display how teams are performing throughout the competition. Access league positions and team statistics, including points and match records. Set include_form=1 to include recent form where available.


API endpoint: GET /standings.json
Filter: competition_id=76

Name Description
rank Position
points Points
matches Matches Played
goal_diff Goal Difference
goals_scored Goals Scored
goals_conceded Goals Conceded
lost Matches Lost
drawn Matches Drawn
won Matches Won
team.id Team ID
team.name Team Name
team.stadium Team Stadium
team.country_id Team Country ID
team.logo Team Logo

Major League Soccer Live Standings API

See how the Major League Soccer standings change as matches are played. The Live Standings endpoint returns the current competition table alongside information about ongoing matches, helping you reflect their impact on team positions during matchday.


API endpoint: GET /standings/live.json
Filter: competition_id=76

All fields from the standings response +

Name Description
score Score
form Team Form in the Match
home.id Home Team ID
home.name Home Team Name
home.stadium Home Team Stadium
home.country_id Home Team Country ID
home.logo Home Team Logo
away.id Away Team ID
away.name Away Team Name
away.stadium Away Team Stadium
away.country_id Away Team Country ID
away.logo Away Team Logo

Major League Soccer Top Goalscorers API

Find out which players are leading the Major League Soccer scoring charts. Retrieve individual scoring records and build player rankings throughout the season. The endpoint returns up to 20 leading players for the current competition season. Depending on the available data, the response includes: Player name, Player ID, Player photo, Team data, Goals, Assists, Matches played

API endpoint: GET /competitions/topscorers.json
Filter: competition_id=76

Cristiano Ronaldo

Cristiano Ronaldo

12 Goals
Sergio Ramos

Sergio Ramos

10 Goals
Phil Foden

Phil Foden

8 Goals
Kevin De Bruyne

Kevin De Bruyne

7 Goals
Major League Soccer Team Information API

Retrieve team records for clubs competing in Major League Soccer. Use the Teams endpoint to access club information and build dedicated team pages within your application. The returned team IDs can also be used with other Football API endpoints to retrieve fixtures, results and additional team-related data.

API endpoint: GET /teams/listing.json

Inter Miami

Lockhart Stadium

LA Galaxy

Dignity Health Sports Park

Los Angeles FC

Banc of California Stadium

Seattle Sounders FC

CenturyLink Field
HEAD 2 HEAD

Major League Soccer Head-to-Head API

Compare two MLS clubs and explore their previous meetings. Use the respective team IDs to retrieve historical head-to-head results and recent performances, making it easier to build team comparison pages and match preview sections.

API endpoint: GET /teams/head2head.json

Inter Miami

Last 6 games W D L W D L

Last 6 games vs LA Galaxy W D L W D L

LA Galaxy

Last 6 games W D L W D L

Last 6 games vs Inter Miami L D W L D W

Pricing packages

Major League Soccer API Pricing

Football API subscription plans provide access to a range of football data endpoints. Depending on your selected plan and the available match coverage, you can retrieve Major League Soccer fixtures, live scores, historical results, standings, match events, statistics, lineups and other competition information.

Enterprise

€ 77 month
  • 70000 Requests per day
  • 0.001€/req Additional requests
  • Live-scores
  • Fixtures
  • Match Events
  • 1 Day Email Support
  • Show all features

Pro

€ 13 month
  • 9000 Requests per day
  • 0.002€/req Additional requests
  • Live-scores
  • Fixtures
  • Match Events
  • 3 Day Email Support
  • Show all features
What can you build with the Major League Soccer API?

Put MLS data to work in your application

Live score websites

Create dedicated MLS score pages featuring live results, match events, team details and league standings.

Football statistics platforms

Build detailed match reports, historical statistics, team comparisons and goalscorer rankings using MLS data.

Sports mobile applications

Keep users up to date with upcoming fixtures, live match scores, completed results and their favourite teams.

Football news and media websites

Add match previews, post-game reports, league tables and historical MLS information to your editorial content.

Frequently asked questions
  • What is the Major League Soccer API?

    The Major League Soccer API provides access to football data from MLS, the top professional soccer competition in the United States and Canada. Through Football API, developers can retrieve live scores, fixtures, historical results, standings, top goalscorers, match events, statistics, lineups and team information using REST endpoints.

  • What is the competition ID for Major League Soccer?

    Major League Soccer has competition ID 76 in Football API. Include this ID in supported competition-based requests to retrieve data specifically for MLS.

  • Which data can I access through the Major League Soccer API?

    The available data covers live scores, upcoming fixtures, historical results, match events, match statistics, team lineups, league standings, live standings, top goalscorers and team information. Each type of information can be retrieved through its corresponding API endpoint.

  • Can I get upcoming Major League Soccer fixtures?

    Yes. Use the Fixtures API with competition_id=76 to retrieve the MLS schedule. The response includes scheduled match dates, participating teams and available venue information.

  • Can I access previous Major League Soccer results?

    Yes. The History API provides access to completed matches and their final scores. You can narrow your requests by competition and date range to retrieve the historical results relevant to your application.

  • Does Football API provide Major League Soccer standings?

    Yes. The Standings API returns the available MLS league table for a selected season. For matches currently being played, you can also use the Live Standings API to retrieve standings that reflect ongoing matchday developments.

  • Can I retrieve match statistics for MLS games?

    Yes. The Match Statistics API provides available statistics for individual games. Depending on the match, these can include possession, shots, corners, fouls, offsides, saves and cards.

  • Are team lineups available through the Major League Soccer API?

    Yes. The Match Lineups API provides lineup information for both teams, including player IDs, names, shirt numbers and available player photos. The information is subject to availability for each individual match.

  • Can I retrieve the top Major League Soccer goalscorers?

    Yes. Use the Top Goalscorers API to retrieve up to 20 leading players for the current competition season. Available details include goals, assists, appearances and team information.

  • Does the Major League Soccer API include betting odds?

    Yes. Pre-match and in-play 1X2 odds can be included in the relevant match data responses when available. Odds are provided as part of the match response rather than through a separately documented odds endpoint.

  • How do I authenticate requests to Football API?

    Football API uses an API key and API secret for authentication. Supply both credentials as GET parameters when making HTTP requests to the relevant endpoints. Keep your API secret secure and avoid exposing it in client-side code.

  • Can I use the Major League Soccer API in a commercial product?

    Yes. You can integrate Football API data into commercial websites, mobile applications and sports-related platforms. The available data and usage limits depend on your subscription plan and the applicable terms of service.

Major League Soccer API

Build your next project with the Major League Soccer API

Give your application access to the Major League Soccer data it needs. From upcoming fixtures and live scores to historical results, league standings, match statistics and player information, Football API offers a range of structured endpoints for working with MLS data. Create your account, choose the endpoints you need and start building.

Get Your API Access   View API Documentation