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://football.sportdevs.com/leagues-by-date?date=eq.{date}
Query Parameters
- date text
Default value:
eq.1930-07-26
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": "1930-07-26",
"leagues": [
{
"class_id": "World",
"league_id": 832,
"class_name": "World",
"league_name": "World Championship",
"class_hash_image": "0a1d0b424881fb22ba8c68b64951e5843f1fd6780231d3d6b411376a2a40e95e",
"league_hash_image": "58b220ef82cd5ae831b9dfcbef18f1cfc327c1943b3a8ef6e7bdf2120d2fd5e4",
"league_importance": 665
}
]
}
]