Teams By League
This endpoint allows you to retrieve the teams from a specific league.
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 every day.
Recommended Calls: Limit calls to 1 per day.
Use Cases
Get teams from a specific league_idhttps://rugby.sportdevs.com/teams-by-league?league_id=eq.{league_id}
Query Parameters
- league_id integer
Default value:
eq.2861
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
- 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 character varying
Possible values:
<= 64 characters
The hash image of the league
- teams jsonb
The teams
[
{
"league_id": 2861,
"league_name": "Olympic Games",
"league_hash_image": "8f909cac2f30f21f43bd331a2cb69db9e29876c0b3fd58210bbf8f040f9a49b9",
"teams": [
{
"id": 46589,
"name": "Argentina 7s",
"hash_image": "8098a3270290cf8d5bd8cedbdf5d3dd80dfd435c0f8c7bd014a862ed985051d0"
},
{
"id": 46605,
"name": "USA 7s",
"hash_image": "3af2f3482dcf4fc661d7f5282e95bf8de179d8206468755aa301ac04684a4573"
},
{
"id": 46629,
"name": "Brazil 7s",
"hash_image": "774c8adb02f7332b81fd3bb379a4231f391ecf7bed1406ab8b21ac0d788b48c9"
},
{
"id": 46656,
"name": "France 7s",
"hash_image": "8252153f1031b93973a97836eecbb24ccd8a1deccb0e645bb2370759a389947d"
},
{
"id": 46684,
"name": "Spain 7s",
"hash_image": "e5c5066e74872a901f9b8ede72ba76e73974559b63dc05cf10e047c230ca3d34"
},
{
"id": 46735,
"name": "Great Britain 7s",
"hash_image": "55b31f3a46856dcf2dda1e2e13964dc6fe20169a71daaba26288ec5d077049f8"
}
]
}
]