Leagues By Date
This endpoint allows you to retrieve the leagues from a specific date. The date has a format of YYYY-DD-MM.
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 leagues from a specific datehttps://snooker.sportdevs.com/leagues-by-date?date=eq.{date}
Query Parameters
- date text
Default value:
eq.2008-09-29
The date
- 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
- date text
The date
- leagues jsonb
The leagues
[
{
"date": "2008-09-29",
"leagues": [
{
"class_id": "International",
"league_id": 3623,
"class_name": "International",
"league_name": "Shanghai Masters",
"class_hash_image": "71137e572fd62d4b890a587e3162175eeb218729090039f4a2b3268b50baebbd",
"league_hash_image": "103b21da164e84f82e611071530c49bbfcc3dfba26b26c0098534e3bfd886122",
"league_importance": 0
}
]
}
]