Season 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, and lost, the number of goals for and against and the number of points they have accumulated.

Keep track of the season performances of your favourite teams. The standings endpoint is used to retrieve full league standing tables.

The response of the standings endpoint can be returned in two formats depending on the league setup. For โ€˜normalโ€™ leagues, the response format differs from cups.

You can choose a variety of endpoints to retrieve the season standings.

This section will briefly discuss all the options available to request season standings.

An overview of all available options:

  • GET All Standings: returns all the standings available within your subscription.

  • GET Standing by Season ID: returns the full league standing table from your requested season id.

  • GET Standings by Round ID: returns the full league standing table from your requested round id.

  • GET Standing Correction by Season ID: returns the standing corrections from your requested season id.

  • Get Live Standings by League ID: returns the LIVE league standing table from your requested league id.

For all the season standings endpoints the base URL is the same:

https://api.sportmonks.com/v3/football/standings

Per endpoint the rest of the URL requires additional information. We will explain this per endpoint.

Requesting standings

GET All Standings

The first option is to request all the standings available in your subscription. The URL to retrieve all your standings is the same as the base URL for standings. All you have to do is authorize the request with your API token. Check our authentication section for more info.

https://api.sportmonks.com/v3/football/standings?api_token=YOUR_TOKEN
Response
{
  "data": [
    {
      "id": 2621,
      "participant_id": 273,
      "sport_id": 1,
      "league_id": 501,
      "season_id": 19735,
      "stage_id": 77457866,
      "group_id": null,
      "round_id": 275092,
      "standing_rule_id": 13219,
      "position": 6,
      "result": "up",
      "points": 35
    },
    {
      "id": 2622,
      "participant_id": 53,
      "sport_id": 1,
      "league_id": 501,
      "season_id": 19735,
      "stage_id": 77457866,
      "group_id": null,
      "round_id": 275092,
      "standing_rule_id": 13224,
      "position": 1,
      "result": "equal",
      "points": 73
    },
    {
      "id": 2623,
      "participant_id": 282,
      "sport_id": 1,
      "league_id": 501,
      "season_id": 19735,
      "stage_id": 77457866,
      "group_id": null,
      "round_id": 275092,
      "standing_rule_id": 13225,
      "position": 12,
      "result": "equal",
      "points": 20
    },
    //and more

In the response, you will see the unique id of the standing, the participant, sport, league and season. And also, if applicable, the stage, group and round id related to the standing. Furthermore, you will see the position, result (indicated if the participant went up or down in the standings table), form and the number of points.

Interested in adding extra information to the response? Check our adding useful information section

GET Standings by Season ID

The GET Standings by Season ID is the most commonly used endpoint to return the full league standing table from your requested season id. So, how do you request all of this data yourself? Weโ€™re going to show you how!

This section will show you how to request standings for the Danish Superliga season 2022/2023 (season id: 19686). You will need to add the season_id parameters to your request.

https://api.sportmonks.com/v3/football/standings/seasons/{season_id}

This will result in the following request:

https://api.sportmonks.com/v3/football/standings/seasons/19686?api_token=YOUR_TOKEN
Response
{
  "data": [
    {
      "id": 10218,
      "participant_id": 2394,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 19686,
      "stage_id": 77457696,
      "group_id": null,
      "round_id": 274249,
      "standing_rule_id": 12887,
      "position": 1,
      "result": "equal",
      "points": 39
    },
    {
      "id": 10221,
      "participant_id": 2447,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 19686,
      "stage_id": 77457696,
      "group_id": null,
      "round_id": 274249,
      "standing_rule_id": 12886,
      "position": 2,
      "result": "equal",
      "points": 35
    },

As you can see, the response is an overview of complete league standings, but what if youโ€™re interested in the standings in a specific round?

GET Standings by Round ID

The GET Standings by Round ID is perfect for displaying the leagues' standings in a particular round. Itโ€™s great to show historical data or to make analyses based on historical standings. You will need to add the round_id parameters to your request.

https://api.sportmonks.com/v3/football/standings/rounds/{round_id}

For example, if youโ€™re interested in the standings from round 11 (round id: 274241) in the Danish Superliga:

https://api.sportmonks.com/v3/football/standings/rounds/274241?api_token=YOUR_TOKEN
Response
{
  "data": [
    {
      "id": 142108,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 19686,
      "stage_id": 77457696,
      "group_id": null,
      "round_id": 274241,
      "participant_id": 2394,
      "standing_rule_id": 12887,
      "position": 1,
      "points": 23,
      "result": "up"
    },
    {
      "id": 142107,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 19686,
      "stage_id": 77457696,
      "group_id": null,
      "round_id": 274241,
      "participant_id": 2356,
      "standing_rule_id": 12886,
      "position": 2,
      "points": 22,
      "result": "down"
    },
    {
      "id": 142109,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 19686,
      "stage_id": 77457696,
      "group_id": null,
      "round_id": 274241,
      "participant_id": 2447,
      "standing_rule_id": 12885,
      "position": 3,
      "points": 20,
      "result": "equal"
    },
 //And more!   

You can request all rounds from a season via the Rounds by Season ID endpoint

GET Standings by Corrections by Season ID

Sometimes, a team gets a disciplinary sanction that results in a point deduction. The GET Standings Correction by Season ID endpoint is designed to return the standing corrections from your requested season id. To retrieve this, you will have to add the following info to the base URL of standings:

https://api.sportmonks.com/v3/football/standings/corrections/seasons/{season_id}

For this example only, weโ€™re going to use a different season id than from the free plan. This is to give you an understanding of the APIโ€™s response. Weโ€™re using the season id of the French Ligue 1 2021/2022 season.

https://api.sportmonks.com/v3/football/standings/corrections/seasons/18441?api_token=YOUR_TOKEN
Response
{
  "data": [
    {
      "id": 10218,
      "participant_id": 2394,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 19686,
      "stage_id": 77457696,
      "group_id": null,
      "round_id": 274244,
      "standing_rule_id": 12887,
      "position": 1,
      "result": "equal",
      "form": "WLWDWWDWDWWLDW",
      "points": 28
    },
    {
      "id": 10221,
      "participant_id": 2447,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 19686,
      "stage_id": 77457696,
      "group_id": null,
      "round_id": 274244,
      "standing_rule_id": 12886,
      "position": 2,
      "result": "up",
      "form": "DDLWLWDWWWDWWL",
      "points": 25
    },
 //And more!   

GET Live Standings by League ID

Next to historical standings per round, you can obtain live standings. The GET Live Standings by League ID returns the LIVE league standing table from your requested league ID. To retrieve this, you will have to add the following info to the base URL of standings:

https://api.sportmonks.com/v3/football/standings/live/league/{league_id}

Please note that in this instance, you need to parse a league id. This is because you can only obtain LIVE standings for active seasons.

For example your request for the Scottish Premiership (league id 501) will be:

https://api.sportmonks.com/v3/football/standings/live/leagues/501?api_token=YOUR_TOKEN
Response
{
  "data": [
    {
      "id": 6569,
      "sport_id": 1,
      "league_id": 501,
      "season_id": 19735,
      "stage_id": 77457866,
      "group_id": null,
      "round_id": 274730,
      "participant_id": 53,
      "standing_rule_id": 13224,
      "position": 1,
      "points": 73,
      "result": "equal"
    },
    {
      "id": 6579,
      "sport_id": 1,
      "league_id": 501,
      "season_id": 19735,
      "stage_id": 77457866,
      "group_id": null,
      "round_id": 274730,
      "participant_id": 62,
      "standing_rule_id": 13223,
      "position": 2,
      "points": 64,
      "result": "equal"
    },
    {
      "id": 6571,
      "sport_id": 1,
      "league_id": 501,
      "season_id": 19735,
      "stage_id": 77457866,
      "group_id": null,
      "round_id": 274730,
      "participant_id": 314,
      "standing_rule_id": 13222,
      "position": 3,
      "points": 42,
      "result": "equal"
    },
    
    //And more

Adding useful information

Now, you might have noticed that the API returns only the necessary information. But what if youโ€™re interested in league and team names? Or if youโ€™re interested in more details? You can use certain includes for this.

Check the endpoint page for a complete overview of the available includes.

Letโ€™s say you want the standings of the Danish Superliga 2022/2023 season, but this time with the team and league information and the standing details. As youโ€™ve learnt in the GET Standings by Season ID section, your request is:

https://api.sportmonks.com/v3/football/standings/seasons/19686?api_token=YOUR_TOKEN

Now, you can add the participant, league and details.type include for more info:

https://api.sportmonks.com/v3/football/standings/seasons/19686?api_token=YOUR_TOKEN&include=participant;league;details.type
Response
{
  "data": [
    {
      "id": 10218,
      "participant_id": 2394,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 19686,
      "stage_id": 77457696,
      "group_id": null,
      "round_id": 274249,
      "standing_rule_id": 12887,
      "position": 1,
      "result": "equal",
      "points": 39,
      "participant": {
        "id": 2394,
        "sport_id": 1,
        "country_id": 320,
        "venue_id": 1436,
        "gender": "male",
        "name": "Nordsjรฆlland",
        "short_code": "FCN",
        "image_path": "https://cdn.sportmonks.com/images/soccer/teams/26/2394.png",
        "founded": 2003,
        "type": "domestic",
        "placeholder": false,
        "last_played_at": "2023-02-28 17:30:00"
      },
      "league": {
        "id": 271,
        "sport_id": 1,
        "country_id": 320,
        "name": "Superliga",
        "active": true,
        "short_code": "DNK SL",
        "image_path": "https://cdn.sportmonks.com/images/soccer/leagues/271.png",
        "type": "league",
        "sub_type": "domestic",
        "last_played_at": "2023-02-27 18:00:00",
        "has_jerseys": false
      },
      "details": [
        {
          "id": 15123082,
          "standing_type": "standing",
          "standing_id": 10218,
          "type_id": 129,
          "value": 19,
          "type": {
            "id": 129,
            "name": "Overall Matched Played",
            "code": "overall-matches-played",
            "developer_name": "OVERALL_MATCHES",
            "model_type": "standings",
            "stat_group": null
          }
        },
        //And more

Including .type is not recommended as an include on any endpoint. Types are used throughout the entire API. We recommend retrieving all types from the types endpoint and storing them in your database or other data structure. Only include the type if no other option is available or when testing the API.

Selecting and filtering

Letโ€™s continue with the previous example. You now have included team information in the response, but youโ€™re only interested in the team, league and standings type names. You can select those names via the select option:

https://api.sportmonks.com/v3/football/standings/seasons/19686?api_token=YOUR_TOKEN&include=participant:name;league:name;details.type:name
Response
{
  "data": [
    {
      "id": 10218,
      "participant_id": 2394,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 19686,
      "stage_id": 77457696,
      "group_id": null,
      "round_id": 274249,
      "standing_rule_id": 12887,
      "position": 1,
      "result": "equal",
      "points": 39,
      "participant": {
        "id": 2394,
        "sport_id": 1,
        "country_id": 320,
        "venue_id": 1436,
        "name": "Nordsjรฆlland"
      },
      "league": {
        "id": 271,
        "sport_id": 1,
        "country_id": 320,
        "name": "Superliga"
      },
      "details": [
        {
          "id": 15123082,
          "standing_type": "standing",
          "standing_id": 10218,
          "type_id": 129,
          "value": 19,
          "type": {
            "id": 129,
            "name": "Overall Matched Played"
          }
        },
        {
          "id": 15123083,
          "standing_type": "standing",
          "standing_id": 10218,
          "type_id": 130,
          "value": 11,
          "type": {
            "id": 130,
            "name": "Overall Won"
          }
        },
        //And more

Check our selecting and filtering tutorial for more information.

Last updated