Standings
This endpoint allows you to retrieve the standings. For the type argument you can search by: home, away and total.
Multi-language: This feature allows the user to manually change the language of the API response by adding value to the
lang
attribute. Example:lang=en
.
Pagination: The endpoint uses an offset and limit system. Specify the offset and limit parameters to fetch the desired range of results. The maximum and default number of results per request is 50.
Update Period: The endpoint is updated after every finished match.
Recommended Calls: Limit calls to 1 per finished match.
Use Cases
Get standingshttps://floorball.sportdevs.com/standings
Get standing based on the idhttps://floorball.sportdevs.com/standings?id=eq.{id}
Get standing from a specific league_idhttps://floorball.sportdevs.com/standings?league_id=eq.{league_id}
Get standing from a specific league_id and season_idhttps://floorball.sportdevs.com/standings?league_id=eq.{league_id}&season_id=eq.{season_id}
Get standing from a specific league_id, season_id and typehttps://floorball.sportdevs.com/standings?league_id=eq.{league_id}&season_id=eq.{season_id}&type=eq.{type}
Query Parameters
- id integer
Default value:
eq.86561
The id of the standing
- type text
Default value:
eq.total
The type of the standing
- season_id integer
Default value:
eq.18069
The id of the season
- league_id integer
Default value:
eq.3646
The id of the league
- offset string
Default value:
0
Limiting and Pagination
- limit string
Default value:
50
Limiting and Pagination
- lang string
Default value:
en
Multi-language
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema array
- id integer
The id of the standing
Note: This is a Primary Key.
- tournament_id integer
The id of the tournament
Note: This is a Foreign Key to
seasons-by-tournament.tournament_id
. - tournament_name text
The name of the tournament
- type text
The type of the standing
- name text
The name of the standing
- season_id integer
The id of the season
Note: This is a Foreign Key to
seasons.id
. - season_name text
The name of the season
- league_id integer
The id of the league
Note: This is a Foreign Key to
leagues.id
. - league_name text
The name of the league
- league_hash_image text
The name image of the league
- competitors jsonb
The competitors of the standing
[
{
"id": 86561,
"tournament_id": 1217,
"type": "total",
"name": "Allsvenskan, Sodra",
"season_id": 18069,
"season_name": "Allsvenskan, Sodra 18/19",
"league_id": 3646,
"league_name": "Allsvenskan, Sodra",
"league_hash_image": "fbffc2424b751747e669ea0a9bc199ea79eb3229925c651e254762be00b6f44b",
"competitors": [
{
"wins": 4,
"draws": 2,
"losses": 16,
"points": 15,
"matches": 22,
"team_id": 51675,
"position": 12,
"team_name": "FBC Lerum",
"scores_for": 82,
"scores_against": 125,
"team_hash_image": "a5c5d5837c78f9dcbf97a26df6d7253a376de0324a8d8573fc2b82c8129d708a"
},
{
"wins": 5,
"draws": 4,
"losses": 13,
"points": 20,
"matches": 22,
"team_id": 51798,
"position": 11,
"team_name": "Aby IBK",
"scores_for": 113,
"scores_against": 133,
"team_hash_image": "656709a4728f96c9d6d38ee8781c4a2e0170f005020d618918917824532847e7"
},
{
"wins": 6,
"draws": 4,
"losses": 12,
"points": 25,
"matches": 22,
"team_id": 51765,
"position": 10,
"team_name": "Malmo FBC",
"scores_for": 110,
"scores_against": 117,
"team_hash_image": "a6ab4d3b17eb5e6236b2af452a460d4425d479ea84145b32ec6c35feede1f67f"
},
{
"wins": 7,
"draws": 4,
"losses": 11,
"points": 27,
"matches": 22,
"team_id": 51664,
"position": 8,
"team_name": "Lillån IBK",
"scores_for": 113,
"scores_against": 145,
"team_hash_image": "cc37bea0e988419935f2fb86b9daf55a77e532e9035295791040d78da3e908a9"
},
{
"wins": 8,
"draws": 2,
"losses": 12,
"points": 26,
"matches": 22,
"team_id": 51729,
"position": 9,
"team_name": "Lagan Ibk",
"scores_for": 107,
"scores_against": 126,
"team_hash_image": "616902215e88628c0ed1a319bd4ae3cae53cb67b1e67d13cf01237670ec3b246"
},
{
"wins": 8,
"draws": 3,
"losses": 11,
"points": 27,
"matches": 22,
"team_id": 51609,
"position": 7,
"team_name": "Karlstad IBF",
"scores_for": 116,
"scores_against": 122,
"team_hash_image": "7a455982ee93cdbd1ce3d3b033af15a4d5b25bbcd7fd52b932e0d1ff58c18e1b"
},
{
"wins": 9,
"draws": 4,
"losses": 9,
"points": 33,
"matches": 22,
"team_id": 51620,
"position": 5,
"team_name": "Fagerhult Habo IBK",
"scores_for": 137,
"scores_against": 133,
"team_hash_image": "c0e3990450c261feda126c18fb09ac63a7bd876fdce3e64be0b6e8b48d465c50"
},
{
"wins": 10,
"draws": 1,
"losses": 11,
"points": 32,
"matches": 22,
"team_id": 51647,
"position": 6,
"team_name": "Craftstadens IBK Oskarshamn",
"scores_for": 103,
"scores_against": 120,
"team_hash_image": "bd80cd49a38a05d6edbce676a64889cebbf0870aa28faf24b1af45210b75bec6"
},
{
"wins": 11,
"draws": 5,
"losses": 6,
"points": 39,
"matches": 22,
"team_id": 51577,
"position": 4,
"team_name": "Onyx IBK",
"scores_for": 149,
"scores_against": 125,
"team_hash_image": "13aa3c358a9bbfc90429583f87448d972a621af0a03b2e7ae95a6854d74a2803"
},
{
"wins": 13,
"draws": 3,
"losses": 6,
"points": 44,
"matches": 22,
"team_id": 2316,
"position": 2,
"team_name": "Visby IBK",
"scores_for": 144,
"scores_against": 117,
"team_hash_image": "b72cc07b37bbe51e66312f079b21b9fc813e7b4dc60a8968622634508992c3a8"
},
{
"wins": 13,
"draws": 3,
"losses": 6,
"points": 44,
"matches": 22,
"team_id": 51552,
"position": 3,
"team_name": "Strängnäs IBK",
"scores_for": 137,
"scores_against": 113,
"team_hash_image": "81899dea7aebfccebb432cc0bb44bd3f43df1a60ddf4481b95f29e4adebde9dd"
},
{
"wins": 20,
"draws": 1,
"losses": 1,
"points": 61,
"matches": 22,
"team_id": 2328,
"position": 1,
"team_name": "Warbergs IC",
"scores_for": 162,
"scores_against": 97,
"team_hash_image": "cec6e75a12ca78e8b633a9f0749bf98fd4c4a5582bbd710e85af31f5fd719b71"
}
]
}
]