League standings

Standings, also known as rankings, show the positions of the teams competing in a season. Standings show the total number of games played, won, lost, the number of goals for and against and the number of points they have accumulated.

So, how do you request all of this data yourself? We’re going to show you how! In this tutorial, we will first show you how to request standings for the English Premier League season 20/21 (season id: 17420 ).

Afterward, we’ll go more in-depth with an example about the Champions League’s standings. We’ll then show you how to request standings for groups and stages. And finally, how to request live standings!

Let’s get started.

Domestic league standings

The English Premier League is an example of a domestic league, similar to the Italian Serie A, German Bundesliga, etc.

Standings can easily be requested with the standings by season id endpoint.

In order to request the standings of the English Premier League, we need the following things:

  • A valid API token

  • Access to the English Premier League (league id: 8) in your paid plan

  • The season id of the English Premier League season 20/21 (season id: 17420 ).

This will result in the following request and response.

https://soccer.sportmonks.com/api/v2.0/standings/season/17420?api_token={API_TOKEN}

Most of the data speaks for itself. Just like in our other tutorials, we've added a field description overview in the third tab.

However, a field that needs some further explanation is result.

This field will contain the standing rules of a season. Each season has its own standing rules. The number one at the end of the season will be crowned champions and “earns” something.

For example, the winner of the English Premier League will earn the right to compete in a different competition, such as the Champions League or Europa League.

Or, in case of finishing last, the team will relegate to a lower division. You can find the possible outcomes in our API references.

Using includes

You can enrich your request with includes. But beware, the includes on our standings by season id endpoint requires additional action. Namely, you will need to prefix the include.

What is prefixing exactly? With nested includes, you add the additional information at the end of the include. i.e., lineup.player

With prefixing, it’s the other way around. You will need to prefix every available include with standings.

So, for example, if you want to have additional team information, you will need to prefix teams with standings like this: standings.team

https://soccer.sportmonks.com/api/v2.0/standings/season/17420?api_token={API_TOKEN}&include=standings.team

Cup standings

For ‘normal’ domestic Leagues, the response format is different compared to Cups.

If you have Cups and ‘normal’ leagues in your plan, make sure to check out the response correctly. Let’s look at one of the most requested leagues: the Champions League 2020/2021 season (league id: 2 and season id: 17299).

You can use the same endpoint as with a standard league. However, the response will be very different.

https://soccer.sportmonks.com/api/v2.0/standings/season/17299?api_token={API_TOKEN}

As you can see, the standings are grouped by ... groups!

We can’t stress this enough. It’s paramount that you read the response correctly.

Due to our unique group ids, you can also request the specific groups you’re interested in with the group_ids parameter.

Let’s say you only want the standings of Group C. You can add the group_idsparameter with the group id of Group C (244367) to the request. You can also request multiple groups by separating them with a comma.

https://soccer.sportmonks.com/api/v2.0/standings/season/17299?api_token={API_TOKEN}&group_ids=244367

International cup standings

As mentioned multiple times before, it's really important to check the API response carefully. The standings response of a particular season can be different compared to another season.

For example, the EURO U21 tournament has another season structure compared to the UEFA Champions League. This will result in different structured API response when you request the standings.

https://soccer.sportmonks.com/api/v2.0/standings/season/15717?api_token={API_TOKEN}

Standings per stage

Now you know how to request the standings per group, but what about stages? As you know from our stages tutorial, a season can consist of multiple stages. Just like how you can request the standings per group, you can also request a stage’s standings by adding the stage_ids parameter.

https://soccer.sportmonks.com/api/v2.0/standings/season/17299?api_token={API_TOKEN}&stage_ids=77448760

You can identify whether a stage has standings by first requesting all the stages of a season. Please visit our stages tutorial for more info.

Live standings

Besides regular standings, we also offer live standings. Live standings represent the rankings of teams in real-time. So if a game is currently being played, the live standing returns the season standings based on the score at that moment. For example: If team A leads with 2-0, the API sees them as the ‘winner.’

The principle is almost the same. You can use the live standings by season id endpoint and parse a valid season id:

https://soccer.sportmonks.com/api/v2.0/standings/season/live/{ID}?api_token={API_TOKEN}

Are you interested in live standings of a season with multiple stages?

If for example in one season two stages are played at the same time, you can add the stage_id parameter to filter on the stage you're interested in.

You do need to add thegroup_idsparameter for cups.

Standings by round ID

The standings by round id is the go-to endpoint if you want to request the standings until a specific round.

With this endpoint, you can request the standings of the teams until the round id you provided. So, if, for example:

The Spanish La Liga 2019/2020 season (league id: 564 and season id: 16326) ended and Real Madrid was crowned champions. But we want to know what the standings of the season were, halfway through. That’s why we make this request:

https://soccer.sportmonks.com/api/v2.0/standings/season/16326/round/175893?api_token={API_TOKEN}

Want to know how to retrieve a round ID? Please check our rounds tutorial for more info.

Standings by season id and date time

Next to the standings by round id, you can also request the season by giving a specific date and time. This endpoint will calculate the games played up until the given date or time and provide the standing results.

The date time has to be parsed in the following format: YYYY-MM-DD-T-H-M-S. For example: 2020-10-19T18:45:04

https://soccer.sportmonks.com/api/v2.0/standings/season/16326/date/2020-10-19T18:45:04?api_token={API_TOKEN}

Inplay games are not calculated using this endpoint. It will only take finished games into account.

Corrections by season id

On some occasions, a stage proceeds with standings from an earlier stage. In these situations, we will also provide correction objects to understand how a stage’s standing has been calculated.

Furthermore, in case a team got points corrections, they can be found on this endpoint. It will return an array of correction objects on a per stage basis.

https://soccer.sportmonks.com/api/v2.0/corrections/season/{ID}?api_token={API_TOKEN}

Last updated