GET Season Statistics by Participant
Returns all the available season statistics for the participant
Last updated
Returns all the available season statistics for the participant
Last updated
https://api.sportmonks.com/v3/football/statistics/seasons/{participant}/{id}
{
"data": [
{
"id": 27262200,
"player_id": 1371,
"team_id": 9,
"season_id": 10,
"has_values": true,
"position_id": 26,
"jersey_number": 17,
"details": [
{
"id": 26847082,
"player_statistic_id": 27262200,
"type_id": 42,
"value": {
"total": 45
}
},
{
"id": 26846973,
"player_statistic_id": 27262200,
"type_id": 51,
"value": {
"total": 8
}
},
{
"id": 23701480,
"player_statistic_id": 27262200,
"type_id": 52,
"value": {
"total": 7,
"goals": 7,
"penalties": 0
}
},
{
"id": 26846804,
"player_statistic_id": 27262200,
"type_id": 56,
"value": {
"total": 16
}
},
{
"id": 1668214,
"player_statistic_id": 27262200,
"type_id": 59,
"value": {
"in": 3,
"out": 4
}
},
{
"id": 26846895,
"player_statistic_id": 27262200,
"type_id": 64,
"value": {
"total": 1
}
},
{
"id": 26847121,
"player_statistic_id": 27262200,
"type_id": 78,
"value": {
"total": 28
}
},
{
"id": 23701465,
"player_statistic_id": 27262200,
"type_id": 79,
"value": {
"total": 9
}
},
{
"id": 26846993,
"player_statistic_id": 27262200,
"type_id": 80,
"value": {
"total": 983
}
},
{
"id": 1668239,
"player_statistic_id": 27262200,
"type_id": 84,
"value": {
"total": 2,
"home": 1,
"away": 1
}
},
{
"id": 26847095,
"player_statistic_id": 27262200,
"type_id": 86,
"value": {
"total": 25
}
},
{
"id": 23701486,
"player_statistic_id": 27262200,
"type_id": 88,
"value": {
"total": 28
}
},
{
"id": 26846746,
"player_statistic_id": 27262200,
"type_id": 94,
"value": {
"total": 14
}
},
{
"id": 26846819,
"player_statistic_id": 27262200,
"type_id": 96,
"value": {
"total": 18
}
},
{
"id": 26847149,
"player_statistic_id": 27262200,
"type_id": 98,
"value": {
"total": 181
}
},
{
"id": 26846623,
"player_statistic_id": 27262200,
"type_id": 99,
"value": {
"total": 49
}
},
{
"id": 26846915,
"player_statistic_id": 27262200,
"type_id": 100,
"value": {
"total": 18
}
},
{
"id": 26846735,
"player_statistic_id": 27262200,
"type_id": 101,
"value": {
"total": 13
}
},
{
"id": 26846773,
"player_statistic_id": 27262200,
"type_id": 105,
"value": {
"total": 248
}
},
{
"id": 26846781,
"player_statistic_id": 27262200,
"type_id": 106,
"value": {
"total": 94
}
},
{
"id": 26846665,
"player_statistic_id": 27262200,
"type_id": 107,
"value": {
"total": 6
}
},
{
"id": 26846760,
"player_statistic_id": 27262200,
"type_id": 110,
"value": {
"total": 48
}
},
{
"id": 26846653,
"player_statistic_id": 27262200,
"type_id": 116,
"value": {
"total": 768
}
},
{
"id": 26846928,
"player_statistic_id": 27262200,
"type_id": 117,
"value": {
"total": 82
}
},
{
"id": 1668194,
"player_statistic_id": 27262200,
"type_id": 118,
"value": {
"average": 7.39,
"highest": 10.1,
"lowest": 5.71
}
},
{
"id": 23701498,
"player_statistic_id": 27262200,
"type_id": 119,
"value": {
"total": 2003
}
},
{
"id": 1668146,
"player_statistic_id": 27262200,
"type_id": 321,
"value": {
"total": 25
}
},
{
"id": 1668180,
"player_statistic_id": 27262200,
"type_id": 322,
"value": {
"total": 22
}
},
{
"id": 1668159,
"player_statistic_id": 27262200,
"type_id": 323,
"value": {
"total": 4
}
},
{
"id": 26846642,
"player_statistic_id": 27262200,
"type_id": 1584,
"value": {
"total": 78.13
}
}
]
},
{
"id": 27263776,
"player_id": 1371,
"team_id": 9,
"season_id": 13,
"has_values": true,
"position_id": 26,
"jersey_number": 17,
"details": [
{
"id": 26852578,
"player_statistic_id": 27263776,
"type_id": 42,
"value": {
"total": 86
}
},
{
"id": 26852492,
"player_statistic_id": 27263776,
"type_id": 51,
"value": {
"total": 2
}
},
{
"id": 23703340,
"player_statistic_id": 27263776,
"type_id": 52,
"value": {
"total": 6,
"goals": 6,
"penalties": 0
}
},
{
"id": 26852329,
"player_statistic_id": 27263776,
"type_id": 56,
"value": {
"total": 37
}
},
{
"id": 1701485,
"player_statistic_id": 27263776,
"type_id": 59,
"value": {
"in": 3,
"out": 11
}
},
{
"id": 26852408,
"player_statistic_id": 27263776,
"type_id": 64,
"value": {
"total": 9
}
},
{
"id": 26852633,
"player_statistic_id": 27263776,
"type_id": 78,
"value": {
"total": 50
}
},
{
"id": 1701216,
"player_statistic_id": 27263776,
"type_id": 79,
"value": {
"total": 18
}
},
{
"id": 26852510,
"player_statistic_id": 27263776,
"type_id": 80,
"value": {
"total": 1476
}
},
{
"id": 1701618,
"player_statistic_id": 27263776,
"type_id": 84,
"value": {
"total": 4,
"home": 2,
"away": 2
}
},
{
"id": 26852611,
"player_statistic_id": 27263776,
"type_id": 86,
"value": {
"total": 21
}
},
{
"id": 23703345,
"player_statistic_id": 27263776,
"type_id": 88,
"value": {
"total": 37
}
},
{
"id": 26852337,
"player_statistic_id": 27263776,
"type_id": 96,
"value": {
"total": 40
}
},
{
"id": 26852653,
"player_statistic_id": 27263776,
"type_id": 98,
"value": {
"total": 275
}
},
{
"id": 26852126,
"player_statistic_id": 27263776,
"type_id": 99,
"value": {
"total": 82
}
},
{
"id": 26852428,
"player_statistic_id": 27263776,
"type_id": 100,
"value": {
"total": 24
}
},
{
"id": 26852249,
"player_statistic_id": 27263776,
"type_id": 101,
"value": {
"total": 8
}
},
{
"id": 26852298,
"player_statistic_id": 27263776,
"type_id": 105,
"value": {
"total": 359
}
},
{
"id": 26852311,
"player_statistic_id": 27263776,
"type_id": 106,
"value": {
"total": 156
}
},
{
"id": 26852277,
"player_statistic_id": 27263776,
"type_id": 110,
"value": {
"total": 65
}
},
{
"id": 26852166,
"player_statistic_id": 27263776,
"type_id": 116,
"value": {
"total": 1212
}
},
{
"id": 26852447,
"player_statistic_id": 27263776,
"type_id": 117,
"value": {
"total": 106
}
},
{
"id": 26852522,
"player_statistic_id": 27263776,
"type_id": 118,
"value": {
"average": 7.65,
"highest": 10.2,
"lowest": 6.32
}
},
{
"id": 1701343,
"player_statistic_id": 27263776,
"type_id": 119,
"value": {
"total": 2885
}
},
{
"id": 1701200,
"player_statistic_id": 27263776,
"type_id": 321,
"value": {
"total": 36
}
},
{
"id": 1701330,
"player_statistic_id": 27263776,
"type_id": 322,
"value": {
"total": 33
}
},
{
"id": 1701231,
"player_statistic_id": 27263776,
"type_id": 323,
"value": {
"total": 4
}
},
{
"id": 26852148,
"player_statistic_id": 27263776,
"type_id": 1584,
"value": {
"total": 82.11
}
}
]
},
Supported types for participant are:
Players
Teams
Coaches
Referees
Name | Required? | Description |
---|---|---|
| YES Another option is to provide the API token in the header. | Your unique API token. Ex. ?api_token=YOUR_TOKEN |
| NO | Enrich the API response with more data by using includes. Ex. &include=participants;events |
| NO | Select specific fields on the base entity. Read how to select fields in our tutorial. |
| NO | Filter the API response on multiple related entities. There are static filters and dynamic filters. Please find the possibilities in the Static and Dynamic Filter tab. |
| NO | Translate name fields of the API Response in your selected language. Find more information and which languages are available on our translations page. |
Static filters are always the same and filter in one specific way without any custom options. Each static filter is listed below and has a description of how it filters. For more information, please look at our Filters page.
Static filters | Available on Entity | Description | Example |
---|---|---|---|
| All | Filter all seasons starting from a certain season ID. |
|
The dynamic filters are based on entities and includes. Each dynamic filter uses an entity to filter on and one entity to apply the filter on. Below are examples with explanations of how filters are set up. For more information, please look at our Filters page.
Using an include? Check their respective filters on their entity page. For example if you use &include=fixtures
, you can apply fixture-related filters.
Dynamic Filters | Available on Entity | Description | Examples |
---|---|---|---|
| Statistics, Events, Lineup, and way more. Check this endpoint for all possibilities. | Filter the season statistics on a selection of types separated by a comma. |
|
| Fixtures, Seasons, Standings, and way more. Check this endpoint for all possibilities. | Filter the seasons based on leagues. |
|
| Check this endpoint for all possibilities. | Filter season stages based on stage IDs |
|
| Check this endpoint for all possibilities. | Filter season topscorers based on type IDs |
|
More information on how to use filters can be found on our tutorials on how to filter. If you want more information on which filters to use you can check out the following :
https://api.sportmonks.com/v3/my/filters/entity?api_token=YOUR_TOKEN
YES
Parameter | Required | Description | Example |
---|---|---|---|
| No | Returns seasons ordered by season_id ( | &order=asc |
| No | The amount of results to return per page (max 50.). Defaults to 25. | &per_page=30 |
| No | You can paginate using the | &page=2 |
You can use a total of 3
nested includes on this endpoint
player
season
coach
team
referee
position
Get an overview and explanation of all the fields returned in the API response. The related entities are:
We also offer detailed postman documentation with examples and a complete up-to-date version of all our endpoints. Below is a button that lets your fork the collection or import it.
require "uri"
require "net/http"
url = URI("https://api.sportmonks.com/v3/football/seasons?api_token=YOUR_TOKEN")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
response = https.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.sportmonks.com")
payload = ''
headers = {}
conn.request("GET", "/v3/football/seasons?api_token=YOUR_TOKEN", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.sportmonks.com/v3/football/seasons?api_token=YOUR_TOKEN',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $respons
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://api.sportmonks.com/v3/football/seasons?api_token=YOUR_TOKEN")
.method("GET", null)
.build();
Response response = client.newCall(request).execute();
var unirest = require('unirest');
var req = unirest('GET', 'https://api.sportmonks.com/v3/football/seasons?api_token=YOUR_TOKEN')
.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.raw_body);
});
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.sportmonks.com/v3/football/seasons?api_token=YOUR_TOKEN"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}