Tournaments By Class
This endpoint allows you to retrieve the tournaments from a specific class.
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 tournaments from a specific class_idhttps://football.sportdevs.com/tournaments-by-class?class_id=eq.{class_id}
Query Parameters
- class_id integer
Default value:
eq.121
The id of the class
- 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
- class_id integer
The id of the class
Note: This is a Foreign Key to
classes.id
. - class_name text
The name of the class
- class_hash_image character varying
Possible values:
<= 64 characters
The hash image of the class
- tournaments jsonb
The tournaments
[
{
"class_id": 121,
"class_name": "Northern Ireland",
"class_hash_image": "daff95ecaa03094798f4021b9ea82e3d13e2f9a172cc75e1babf42477407add2",
"tournaments": [
{
"id": 7,
"name": "Premiership",
"importance": 0
},
{
"id": 1818,
"name": "Championship",
"importance": 0
},
{
"id": 2554,
"name": "Premiership, Championship Round",
"importance": 0
},
{
"id": 2555,
"name": "Premiership, Relegation Round",
"importance": 0
},
{
"id": 2820,
"name": "League Cup",
"importance": 0
},
{
"id": 3022,
"name": "Premiership, Prom./Releg. Playoffs",
"importance": 0
},
{
"id": 3038,
"name": "Irish Cup",
"importance": 0
},
{
"id": 4688,
"name": "Championship, Promotion Round",
"importance": 0
},
{
"id": 4689,
"name": "Championship, Relegation Round",
"importance": 0
},
{
"id": 13017,
"name": "Premiership, Europa Playoffs",
"importance": 0
},
{
"id": 17000,
"name": "Northern Ireland Premier League Women",
"importance": 0
},
{
"id": 32097,
"name": "NIFL Reserve League",
"importance": 0
},
{
"id": 32101,
"name": "Intermediate Cup",
"importance": 0
},
{
"id": 33351,
"name": "George Wilson Cup",
"importance": 0
},
{
"id": 33917,
"name": "Championship, Relegation/Promotion Playoffs",
"importance": 0
},
{
"id": 34428,
"name": "Mid-Ulster Cup",
"importance": 0
},
{
"id": 34470,
"name": "Championship, Qualification to Promotion Playoff",
"importance": 0
},
{
"id": 34594,
"name": "Championship Divisional Cup, Women",
"importance": 0
},
{
"id": 35287,
"name": "Intermediate League 1st Division",
"importance": 0
},
{
"id": 35673,
"name": "County Antrim Shield",
"importance": 0
},
{
"id": 63302,
"name": "NIFL Charity Shield",
"importance": 0
}
]
}
]