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://american-football.sportdevs.com/tournaments-by-class?class_id=eq.{class_id}
Query Parameters
- class_id integer
Default value:
eq.1
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": 1,
"class_name": "USA",
"class_hash_image": "160b4c849fb3e17e95def410a5f0f60f595420a15f2baf4ef7803ce86caf8ca4",
"tournaments": [
{
"id": 936,
"name": "NFL, Regular Season",
"importance": 5
},
{
"id": 996,
"name": "NCAA FBS, Bowls",
"importance": 0
},
{
"id": 1043,
"name": "NCAA FBS, Regular Season",
"importance": 0
},
{
"id": 11200,
"name": "NFL",
"importance": 5
},
{
"id": 11201,
"name": "NFL Preseason",
"importance": 1
},
{
"id": 11202,
"name": "NCAA, Regular Season",
"importance": 0
},
{
"id": 11203,
"name": "XFL",
"importance": 0
},
{
"id": 11204,
"name": "USFL",
"importance": 0
},
{
"id": 12960,
"name": "FBS, Regular Season",
"importance": 0
},
{
"id": 31029,
"name": "USFL, Playoffs",
"importance": 0
},
{
"id": 31034,
"name": "XFL, Playoffs",
"importance": 0
},
{
"id": 31046,
"name": "HBCU Legacy Bowl",
"importance": 0
},
{
"id": 31047,
"name": "NFL, Playoffs",
"importance": 0
},
{
"id": 31049,
"name": "Senior Bowl",
"importance": 0
},
{
"id": 31052,
"name": "East-West Shrine Bowl",
"importance": 0
},
{
"id": 31055,
"name": "NFLPA Collegiate Bowl",
"importance": 0
},
{
"id": 31057,
"name": "NCAA Division I, FBS, Playoffs",
"importance": 0
},
{
"id": 31083,
"name": "NCAA Division I, FCS, Playoffs",
"importance": 0
},
{
"id": 31086,
"name": "Collegiate Bowl Games",
"importance": 0
},
{
"id": 31265,
"name": "NCAA Division II, Playoffs",
"importance": 0
},
{
"id": 31269,
"name": "NCAA Division III, Playoffs",
"importance": 0
},
{
"id": 31379,
"name": "Atlantic Coast Conference Championship",
"importance": 0
},
{
"id": 31381,
"name": "Southeastern Conference Championship",
"importance": 0
},
{
"id": 31387,
"name": "Mountain West Conference Championship",
"importance": 0
},
{
"id": 31391,
"name": "Mid-American Conference Championship",
"importance": 0
},
{
"id": 31392,
"name": "Big Ten Conference Championship",
"importance": 0
},
{
"id": 31401,
"name": "American Athletic Conference Championship",
"importance": 0
},
{
"id": 31404,
"name": "Big 12 Conference Championship",
"importance": 0
},
{
"id": 31414,
"name": "Southwestern Athletic Conference Championship",
"importance": 0
},
{
"id": 31416,
"name": "Sun Belt Conference Championship",
"importance": 0
},
{
"id": 31420,
"name": "Pac-12 Conference Championship",
"importance": 0
},
{
"id": 31423,
"name": "Conference USA Championship",
"importance": 0
},
{
"id": 31789,
"name": "SIAC, Playoffs",
"importance": 0
},
{
"id": 31790,
"name": "PSAC, Playoffs",
"importance": 0
},
{
"id": 32236,
"name": "NFL, Pro Bowl",
"importance": 0
},
{
"id": 32240,
"name": "NCAA FBS, National Championship",
"importance": 0
},
{
"id": 32250,
"name": "NCAA FBS, NCAA Bowls",
"importance": 0
},
{
"id": 64002,
"name": "NFL, Probowl",
"importance": 0
},
{
"id": 64028,
"name": "FBS, Bowls",
"importance": 0
},
{
"id": 64629,
"name": "AFL, Arena Bowl",
"importance": 0
},
{
"id": 64631,
"name": "AFL, Regular Season",
"importance": 0
},
{
"id": 64632,
"name": "AFL, Playoffs",
"importance": 0
},
{
"id": 64786,
"name": "NCAA FBS, All Star Game",
"importance": 0
},
{
"id": 67240,
"name": "NFL, Hall Of Fame",
"importance": 0
},
{
"id": 67641,
"name": "NFL, Super Bowl",
"importance": 0
},
{
"id": 67643,
"name": "NFL, AFC Playoffs",
"importance": 0
},
{
"id": 67644,
"name": "NFL, NFC Playoffs",
"importance": 0
}
]
}
]