Teams By Tournament
This endpoint allows you to retrieve the teams from a specific tournament.
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 tournament_idhttps://rugby.sportdevs.com/teams-by-tournament?tournament_id=eq.{tournament_id}
Query Parameters
- tournament_id integer
Default value:
eq.958
The id of the tournament
- 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
- tournament_id integer
The id of the tournament
Note: This is a Primary Key.
- tournament_name text
The name of the tournament
- teams jsonb
The teams
[
{
"tournament_id": 958,
"tournament_name": "NRL, Playoffs",
"teams": [
{
"team_id": 46982,
"team_name": "Melbourne Storm",
"team_hash_image": "d91e7c1b62314321ad1205ee0ae8ccc8784e4ddf4fcc80961b1af62978f40100"
},
{
"team_id": 1823,
"team_name": "Penrith Panthers",
"team_hash_image": "dbbf7c3c931c93ddb84b8331a1204b0ace4f3fffef216b164005271795a833da"
},
{
"team_id": 1863,
"team_name": "South Sydney Rabbitohs",
"team_hash_image": "6e679544bd12c1b7cdfac6e3bd18896a91d5f08bc73e474de73a260677e60e81"
},
{
"team_id": 2195,
"team_name": "Sydney Roosters",
"team_hash_image": "e4d918e8e088c7eedf12974ebf4b6bbbbd39e5656d388f5ed9cb8a7c59ec2b36"
},
{
"team_id": 46965,
"team_name": "Brisbane Broncos",
"team_hash_image": "94a13bf26a652406508c830f92aca6cc48b282b8594e6e4ae0dc06d3b65d4f29"
},
{
"team_id": 47077,
"team_name": "Newcastle Knights",
"team_hash_image": "a6d5de945a6e4a0f63c7f2d57401eee130f3c78e63923df60a3302c269d9748c"
},
{
"team_id": 47165,
"team_name": "Manly Sea Eagles",
"team_hash_image": "7e27ca0d8eeb91a790b6f21fe0a0586118de95ab4612e55374f7ce04718336e8"
},
{
"team_id": 47096,
"team_name": "North Queensland Cowboys",
"team_hash_image": "ab75450f5c52620e4e553eb825af0f057e22531f3f8cc051168d0c0284c1d990"
},
{
"team_id": 47197,
"team_name": "Canterbury Bulldogs",
"team_hash_image": "eb35fecf91c267f11d0ba092a83ace0fcce7cb36bea391135b7faf656d72ca2d"
},
{
"team_id": 47063,
"team_name": "Cronulla Sharks",
"team_hash_image": "eceffdcfd5ab42dce49cd9850b9f8586a07bfb31bd9c446cf472217cd0aabca6"
}
]
}
]