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://baseball.sportdevs.com/standings
Get standing based on the idhttps://baseball.sportdevs.com/standings?id=eq.{id}
Get standing from a specific league_idhttps://baseball.sportdevs.com/standings?league_id=eq.{league_id}
Get standing from a specific league_id and season_idhttps://baseball.sportdevs.com/standings?league_id=eq.{league_id}&season_id=eq.{season_id}
Get standing from a specific league_id, season_id and typehttps://baseball.sportdevs.com/standings?league_id=eq.{league_id}&season_id=eq.{season_id}&type=eq.{type}
Query Parameters
- id integer
Default value:
eq.77925
The id of the standing
- type text
Default value:
eq.total
The type of the standing
- season_id integer
Default value:
eq.14151
The id of the season
- league_id integer
Default value:
eq.3839
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": 77925,
"tournament_id": 11094,
"type": "total",
"name": "East Division",
"season_id": 14151,
"season_name": "Triple-A International League 2022",
"league_id": 3839,
"league_name": "Triple-A International League",
"league_hash_image": "4a9a311f15075705c706e81c733fea47275639ce053eb709969c24a92beee99c",
"competitors": [
{
"wins": 58,
"draws": 0,
"losses": 92,
"matches": 150,
"team_id": 46260,
"position": 10,
"team_name": "Charlotte Knights",
"games_behind": 28,
"team_hash_image": "2e1d3604d852fd624f34f2e03a529c725d2b8656a9940718cb282428aa9cf60c"
},
{
"wins": 64,
"draws": 0,
"losses": 85,
"matches": 149,
"team_id": 46219,
"position": 9,
"team_name": "Syracuse Mets",
"games_behind": 22,
"team_hash_image": "7a1fe9de99b3d6de55942d69ec541d50dc8dbb712cc34ca1033149a22a09c4cd"
},
{
"wins": 67,
"draws": 0,
"losses": 81,
"matches": 148,
"team_id": 46170,
"position": 8,
"team_name": "Rochester Red Wings",
"games_behind": 18,
"team_hash_image": "0c97eadb9b49971582c370792afb21c0592315381b50437542f5e49d1dc39284"
},
{
"wins": 74,
"draws": 0,
"losses": 76,
"matches": 150,
"team_id": 2415,
"position": 7,
"team_name": "Norfolk Tides",
"games_behind": 12,
"team_hash_image": "ae743d40d71fea17fb30e548964518d4f23311fbd57d91dc6f76b87e5186d9e6"
},
{
"wins": 75,
"draws": 0,
"losses": 73,
"matches": 148,
"team_id": 46093,
"position": 6,
"team_name": "Worcester Red Sox",
"games_behind": 10,
"team_hash_image": "2e28e95e4b8358fe81e4811eee1beb90c39feb55ceaec1497f0651e69e538b62"
},
{
"wins": 76,
"draws": 0,
"losses": 72,
"matches": 148,
"team_id": 46051,
"position": 5,
"team_name": "Lehigh Valley Iron Pigs",
"games_behind": 9,
"team_hash_image": "f68d36bc56255a566f3e431734a05cfd4b74c881908d9b7d72dd114c0c4b60bf"
},
{
"wins": 76,
"draws": 0,
"losses": 72,
"matches": 148,
"team_id": 46133,
"position": 4,
"team_name": "Buffalo Bisons",
"games_behind": 9,
"team_hash_image": "e30a0c6140ba9374d33820c677244d6e86ccfd067046f1dbb8beaa5a9fad4044"
},
{
"wins": 80,
"draws": 0,
"losses": 69,
"matches": 149,
"team_id": 46116,
"position": 3,
"team_name": "Jacksonville Jumbo Shrimp",
"games_behind": 6,
"team_hash_image": "5dcd89fddaa45b98f2a5a435b59bcc929870d4a23d3e00e57b4d3fdf33b7449c"
},
{
"wins": 83,
"draws": 0,
"losses": 67,
"matches": 150,
"team_id": 46076,
"position": 2,
"team_name": "Scranton/Wilkes-Barre Railriders",
"games_behind": 3,
"team_hash_image": "8ff866b5f2dfa64fb708fe5a84a6c10e075108eb14bfdf54ddc10a9fbe658ad6"
},
{
"wins": 86,
"draws": 0,
"losses": 64,
"matches": 150,
"team_id": 46038,
"position": 1,
"team_name": "Durham Bulls",
"games_behind": 0,
"team_hash_image": "03603d2dce878c5667462a447ae4d8a844472b3149519605af27e72f061d7f09"
}
]
}
]