LogoLogo
Quick StartFootball APIContactAPI 3.0
  • Welcome
  • Changelog
  • Getting Started
    • Get Started
    • Documentation for the documentation
  • Endpoint overview
    • Continents
      • GET All Continents
      • GET Continent by ID
    • Countries
      • GET All Countries
      • GET Country by ID
    • Leagues
      • GET All Leagues
      • GET League by ID
      • GET Leagues by Country ID
      • Search Leagues by Name
    • Seasons
      • GET All Seasons
      • GET Season by ID
    • Fixtures
      • GET Fixture by ID
      • GET Last Updated Fixtures
      • GET Fixtures by Date
      • GET Fixtures by Date Range
      • GET Fixtures by Date Range for Team
      • GET Fixtures by Multiple ID's
      • GET Deleted Fixtures
    • Statistics
    • Livescores
      • GET All Livescores
      • GET All In play Livescores
    • News API
      • GET All News
      • GET News For Upcoming Fixtures
      • GET News by Season ID
    • Commentaries
      • Commentaries by Fixture ID
    • Video Highlights
      • Get Video Highlights by Fixture ID
    • Head 2 Head
      • GET Head 2 Head by Team IDs
    • Standings
      • GET Standings by Season ID
      • GET LIVE Standings
      • GET Standings by Season ID and Round ID
      • GET Standings by Season and Date(time)
      • GET Standings Corrections by Season ID
    • Teams
      • GET Team by ID
      • GET Teams by Country ID
      • GET Teams by Season ID
      • Search Team by Name
      • GET Current Leagues by Team ID
      • Get All Leagues by Team ID
    • Players
      • GET Player by ID
      • GET Players by Country ID
      • Search Player by Name
    • Topscorers
      • GET Topscorers by Season ID
      • GET Topscorers Aggregated by Season ID
    • Rivals
      • GET Rivals by Team ID
    • Venues
      • GET Venue by ID
      • GET Venues by Season ID
    • Rounds
      • GET Rounds by Season ID
      • GET Round by ID
    • Odds
      • GET Odds by Fixture ID and Bookmaker ID
      • GET Odds by Fixture ID and Market ID
      • GET Odds by Fixture ID
      • GET Inplay Odds by Fixture ID
    • Coaches
      • GET Coach by ID
    • Stages
      • GET Stage by ID
      • GET Stages by Season ID
    • Bookmakers
      • GET All Bookmakers by Fixture ID
      • GET All Bookmakers
      • GET Bookmaker by ID
    • Markets
      • GET All Fixtures by Market ID
      • GET All Markets
      • GET Market by ID
    • Team Squads
      • GET Team Squad by Team and Season ID
    • TV Stations
      • GET TV Station by Fixture ID
    • Prediction API
      • GET Leagues and Performances
      • GET Probabilities
      • GET Probabilities by Fixture ID
      • GET Value Bets
      • GET Value Bet by Fixture ID
  • Tutorials
    • Introduction to our API
      • Make your first request
      • Set your time zone
      • Pagination
    • Enriching your response
      • Includes
      • Nested includes
    • Filtering, limiting & sorting
      • Filtering
      • Limiting
      • Sorting
    • Schedule, fixtures & livescores
      • Season schedule
      • Fixtures
      • Livescores
    • Statistics
      • Match statistics
      • Team statistics
      • Player statistics
      • Season statistics
    • League & topscorers standings
      • League standings
      • Topscorers standings
    • Odds & predictions
      • Odds
        • Odds by fixture, bookmaker and market id
        • FlatOdds
        • InplayOdds
      • Predictions
  • MySportmonks
    • How-to build a custom plan
    • ID Finder
  • How-to Guides
    • Get Started with our how-to guides
      • How-to build your API requests
    • Livescores & fixtures
      • How-to build a livescore website
      • How-to build a schedule page
    • Match & team pages
      • How-to build a match page with events and statistics
      • How-to build a match page with line-ups/formations
      • How-to build a team page with season stats and squads
    • How-to build standings and topscorer standings
      • League standings
      • Topscorer standings
    • Odds & predictions
      • How-to build a match page with odds
      • How-to build a betting odds portal
      • How-to use the predictions API
    • How-to build a fantasy game
    • Developer tools
      • How-to use Sportmonks' APIs in Postman
    • How-to keep your database in sync
    • World Cup 2022
    • EURO 2024
    • Football widgets
      • How-to set up football widgets in your web application
      • Configurations
      • Widgets overview
        • Livescore widget
        • International Cup widgets
  • API References
    • API reference guide
    • Data features
    • ID Finder
    • Code libraries
    • Demo response files
    • Statuses and definitions
    • API Rate limiting
    • Response codes
    • Meta description
  • General
  • Sportmonks
  • Plans & pricing
  • FAQ
  • Contact
Powered by GitBook
On this page
  • Step 1: Gather the tools
  • Step 2: Determine the league and season
  • Step 3: Choose the correct endpoint
  • Step 4: Analyze the response

Was this helpful?

Export as PDF
  1. How-to Guides
  2. How-to build standings and topscorer standings

League standings

PreviousHow-to build standings and topscorer standingsNextTopscorer standings

Last updated 3 years ago

Was this helpful?

Step 1: Gather the tools

You are going to need the following tools:

  • Sportmonks API token

  • Code editor (Visual studio used in examples)

  • Postman (optional)

You can find a link to another article where we discuss the tools in-depth on our

Step 2: Determine the league and season

What league and specifically what season interests you? For this guide, we’ll go with the 20/21 season of the Scottish Premiership (league id: 501, season id: 17141).

Step 3: Choose the correct endpoint

For seasonal standings, we simply have the endpoint: id.

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

You only need to parse a season id. Simple and straightforward, just the way we like it.

Step 4: Analyze the response

"data": [
        {
            "id": 77447501,
            "name": "1st Phase",
            "league_id": 501,
            "season_id": 17141,
            "round_id": 194976,
            "round_name": 9,
            "type": "Group Stage",
            "stage_id": 77447501,
            "stage_name": "1st Phase",
            "resource": "stage",
            "standings": {
                "data": [
                    {
                        "position": 1,
                        "team_id": 62,
                        "team_name": "Rangers",
                        "round_id": 194976,
                        "round_name": 9,
                        "group_id": null,
                        "group_name": null,
                        "overall": {
                            "games_played": 11,
                            "won": 9,
                            "draw": 2,
                            "lost": 0,
                            "goals_scored": 26,
                            "goals_against": 3
                        },
                        "home": {
                            "games_played": 5,
                            "won": 5,
                            "draw": 0,
                            "lost": 0,
                            "goals_scored": 14,
                            "goals_against": 0
                        },
                        "away": {
                            "games_played": 6,
                            "won": 4,
                            "draw": 2,
                            "lost": 0,
                            "goals_scored": 12,
                            "goals_against": 3
                        },
                        "total": {
                            "goal_difference": "23",
                            "points": 29
                        },
                        "result": "Championship Round",
                        "points": 29,
                        "recent_form": "WDWWW",
                        "status": null
                    },
                    {
                        "position": 2,
                        "team_id": 53,
                        "team_name": "Celtic",
                        "round_id": 194976,
                        "round_name": 9,
                        "group_id": null,
                        "group_name": null,
                        "overall": {
                            "games_played": 10,
                            "won": 8,
                            "draw": 1,
                            "lost": 1,
                            "goals_scored": 25,
                            "goals_against": 7
                        },
                        "home": {
                            "games_played": 5,
                            "won": 4,
                            "draw": 0,
                            "lost": 1,
                            "goals_scored": 14,
                            "goals_against": 5
                        },
                        "away": {
                            "games_played": 5,
                            "won": 4,
                            "draw": 1,
                            "lost": 0,
                            "goals_scored": 11,
                            "goals_against": 2
                        },
                        "total": {
                            "goal_difference": "18",
                            "points": 25
                        },
                        "result": "Championship Round",
                        "points": 25,
                        "recent_form": "WWWWL",
                        "status": null
                    },

We can see that the Rangers are in first place with 11 games played, nine won and two draws, and their number of accumulated points is 29. They are followed by 2nd place Celtic, with ten games played, 8 won, one draw and one loss, and 25 points. There is a lot more information regarding their standings that you can opt to use for your application.

Need standings based on a group? In our we discuss all the possibilities.

Developer Tools Guide.
get standings by season
leagues & topscorers standings tutorial,
League & topscorers standings