Topscorer standings
Retrieve accurate information about the goals, assist and card topscorers. The topscorers endpoints return the top 25 players. You can request the topscorers in total or by type: Goals, Cards or Assists.
You can choose a variety of endpoints to retrieve the topscorer standings.
This section will briefly discuss all the options available to request topscorer standings.
An overview of all available options:
GET Topscorers by Stage ID: return all the topscorers of the requested stage.
GET Topscorers by Season ID: returns all the topscorers per stage of the requested season.
For all the topscorer endpoints the base URL is the same:
https://api.sportmonks.com/v3/football/topscorers
Per endpoint the rest of the URL requires additional information. We will explain this per endpoint.
Requesting topscorer standings
GET Topscorers by Stage ID
Many of our clients are interested in topscorer information from their favourite league. Showing the topscorers in your application adds a great value. You can opt for a few options. The first one is the GET Topscorers by Stage ID endpoint.
A season can have multiple stages, i.e: a group stage, knock-out stage, finals etc. This endpoint is great if you want to show the topscorers per stage instead of over the complete season.
You will need to add the stage id
parameters to your request:
https://api.sportmonks.com/v3/football/topscorers/
stages/{stage_id}
Let’s take a look at the regular stage (stage id: 77457696) of the Danish Superliga in the 2022/2023 season. (id: 19686)
Check the stages and seasons tutorial for info about how to retrieve those ids.
This will result in the following request:
As you can see, the response is an overview of the topscorers from the regular season stage, but what if you’re interested in the topscorer per stage per season?
Interested in adding extra information to the response? Check our adding useful information section
GET Topscorers by Season ID
You can use the Topscorers by Season ID endpoint if you want to request all the topscorers of the season.
You will need to add the season id
parameters to your request.
https://api.sportmonks.com/v3/football/topscorers
/seasons/{season_id}
Let’s look at the topscorers of the Danish Superliga in the 2022/2023 season. (id: 19686)
Adding useful information
Now, you might have noticed that the API returns only the necessary information. But what if you’re interested in team, player, league and season names? Or if you’re interested in more details about the type of topscorer? You can use certain include for this.
Check the endpoint page for a complete overview of the available includes.
Let’s say you want the topscorers of the Danish Superliga 2022/2023 season, but this time with the team, player and league information and topscorer type. As you’ve learnt in the GET Topscorers by Season ID section, your request is:
Now, you can add the league
, season
,stage
,team
,player
and type
include for more info:
Selecting and filtering
Let’s continue with the previous example. You have included all relevant information but are only interested in the goalscorers. You can filter via the filters option:
An overview of some filters available:
Goals:
&filters=seasonTopscorerTypes:208
Assists:
&filters=seasonTopscorerTypes:209
Red cards:
&filters=seasonTopscorerTypes:83
Yellow cards:
&filters=seasonTopscorerTypes:84
Penalties scored:
&filters=seasonTopscorerTypes:1600
Penalties missed:
&filters=seasonTopscorerTypes:1601
Check our selecting and filtering tutorial for more information.
Last updated