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://beach-volleyball.sportdevs.com/standings
Get standing based on the idhttps://beach-volleyball.sportdevs.com/standings?id=eq.{id}
Get standing from a specific league_idhttps://beach-volleyball.sportdevs.com/standings?league_id=eq.{league_id}
Get standing from a specific league_id and season_idhttps://beach-volleyball.sportdevs.com/standings?league_id=eq.{league_id}&season_id=eq.{season_id}
Get standing from a specific league_id, season_id and typehttps://beach-volleyball.sportdevs.com/standings?league_id=eq.{league_id}&season_id=eq.{season_id}&type=eq.{type}
Query Parameters
- id integer
Default value:
eq.85244
The id of the standing
- type text
Default value:
eq.total
The type of the standing
- season_id integer
Default value:
eq.13888
The id of the season
- league_id integer
Default value:
eq.3530
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
. - 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": 85244,
"tournament_id": 12404,
"type": "total",
"name": "Pool A",
"season_id": 13888,
"season_name": "Olympic Games 2016",
"league_id": 3530,
"league_name": "Olympic Games",
"league_hash_image": "7939371dc63fadc72145cb7e22f77319f3948b7f0082bf77957008b6c7952a74",
"competitors": [
{
"wins": 0,
"losses": 3,
"points": 3,
"matches": 3,
"team_id": 50816,
"position": 4,
"team_name": "Binstock J / Schachter S",
"scores_for": 2,
"scores_against": 6,
"team_hash_image": "da44eef444113d9bafb69e947f8ac32460c4a463eff4eb1168f45a2c34f64193",
"secondary_scores_for": 137,
"secondary_scores_against": 145
},
{
"wins": 2,
"losses": 1,
"points": 5,
"matches": 3,
"team_id": 50661,
"position": 1,
"team_name": "Ranghieri A / Carambula A",
"scores_for": 4,
"scores_against": 3,
"team_hash_image": "8a4d25efe0410c12494a093a730b6838a49b487e790884c18d07f3e96894183e",
"secondary_scores_for": 127,
"secondary_scores_against": 119
},
{
"wins": 2,
"losses": 1,
"points": 5,
"matches": 3,
"team_id": 50714,
"position": 2,
"team_name": "Cerutti A / Oscar Schmidt B",
"scores_for": 5,
"scores_against": 2,
"team_hash_image": "a0c4e005511f4f547589c87c0f2a3949f9a576559558f40ae4dca99aa33f0d29",
"secondary_scores_for": 140,
"secondary_scores_against": 128
},
{
"wins": 2,
"losses": 1,
"points": 5,
"matches": 3,
"team_id": 50761,
"position": 3,
"team_name": "Doppler C / Horst A",
"scores_for": 4,
"scores_against": 4,
"team_hash_image": "4a252c03d9b3d2d483369e19db44e9f4cc3af2c229c95d39ae25cd0962f3f7c8",
"secondary_scores_for": 133,
"secondary_scores_against": 145
}
]
}
]
GET /standings
Request
Request
curl -L -X GET 'https://beach-volleyball.sportdevs.com/standings' \
-H 'Accept: application/json'
curl -L -X GET 'https://beach-volleyball.sportdevs.com/standings' \
-H 'Accept: application/json'
curl -L -X GET 'https://beach-volleyball.sportdevs.com/standings' \
-H 'Accept: application/json'
curl -L -X GET 'https://beach-volleyball.sportdevs.com/standings' \
-H 'Accept: application/json'
curl -L -X GET 'https://beach-volleyball.sportdevs.com/standings' \
-H 'Accept: application/json'
curl -L -X GET 'https://beach-volleyball.sportdevs.com/standings' \
-H 'Accept: application/json'
curl -L -X GET 'https://beach-volleyball.sportdevs.com/standings' \
-H 'Accept: application/json'