League standings
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 Developer Tools Guide.
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: get standings by season id.
You only need to parse a season id. Simple and straightforward, just the way we like it.
Step 4: Analyze the response
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 leagues & topscorers standings tutorial, we discuss all the possibilities.
League & topscorers standingsLast updated