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://handball.sportdevs.com/standings
Get standing based on the idhttps://handball.sportdevs.com/standings?id=eq.{id}
Get standing from a specific league_idhttps://handball.sportdevs.com/standings?league_id=eq.{league_id}
Get standing from a specific league_id and season_idhttps://handball.sportdevs.com/standings?league_id=eq.{league_id}&season_id=eq.{season_id}
Get standing from a specific league_id, season_id and typehttps://handball.sportdevs.com/standings?league_id=eq.{league_id}&season_id=eq.{season_id}&type=eq.{type}
Query Parameters
- id integer
Default value:
eq.66536
The id of the standing
- type text
Default value:
eq.total
The type of the standing
- season_id integer
Default value:
eq.13379
The id of the season
- league_id integer
Default value:
eq.3244
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": 66536,
"tournament_id": 9961,
"type": "total",
"name": "Supercup",
"season_id": 13379,
"season_name": "Supercup 2011",
"league_id": 3244,
"league_name": "Super Cup",
"league_hash_image": "e01987f82745898ee8ee685204e074aa66f7b2cbe1afe699c099960211c81588",
"competitors": [
{
"wins": 0,
"draws": 0,
"losses": 3,
"points": 0,
"matches": 3,
"team_id": 42660,
"position": 4,
"team_name": "Germany",
"scores_for": 71,
"scores_against": 81,
"team_hash_image": "afa34ed787c8b0c1a0ea77ceed57fc6ba1dcd4c3c4d9dcf576463ae3e22ea9e9"
},
{
"wins": 1,
"draws": 0,
"losses": 2,
"points": 2,
"matches": 3,
"team_id": 1599,
"position": 3,
"team_name": "Denmark",
"scores_for": 78,
"scores_against": 81,
"team_hash_image": "1989b6dac8dd0e7fe7f43d4367d4eeb3f065ca0059777eb5ad47f5ccbfc9022b"
},
{
"wins": 2,
"draws": 0,
"losses": 1,
"points": 4,
"matches": 3,
"team_id": 1605,
"position": 2,
"team_name": "Sweden",
"scores_for": 74,
"scores_against": 70,
"team_hash_image": "77f32dab2c826e33fa8eb3834b1a5e021b499718085eba67248603a52f7d02b0"
},
{
"wins": 3,
"draws": 0,
"losses": 0,
"points": 6,
"matches": 3,
"team_id": 42645,
"position": 1,
"team_name": "Spain",
"scores_for": 81,
"scores_against": 72,
"team_hash_image": "718674cd5bda6a8017db46aa260d8749a1916742541e34aab9c6ca4cfa6e123d"
}
]
}
]