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://beach-volleyball.sportdevs.com/leagues-by-date?date=eq.{date}
Query Parameters
- date text
Default value:
eq.2008-08-09
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-08-09",
"leagues": [
{
"class_id": "International",
"league_id": 3530,
"class_name": "International",
"league_name": "Olympic Games",
"class_hash_image": "e3113bd713401b3128c48c534fb57051d04d27f5e1813bebb02ea8c1fcff5616",
"league_hash_image": "7939371dc63fadc72145cb7e22f77319f3948b7f0082bf77957008b6c7952a74",
"league_importance": 9
},
{
"class_id": "International",
"league_id": 3530,
"class_name": "International",
"league_name": "Olympic Games",
"class_hash_image": "e3113bd713401b3128c48c534fb57051d04d27f5e1813bebb02ea8c1fcff5616",
"league_hash_image": "7939371dc63fadc72145cb7e22f77319f3948b7f0082bf77957008b6c7952a74",
"league_importance": 11
},
{
"class_id": "International",
"league_id": 3530,
"class_name": "International",
"league_name": "Olympic Games",
"class_hash_image": "e3113bd713401b3128c48c534fb57051d04d27f5e1813bebb02ea8c1fcff5616",
"league_hash_image": "7939371dc63fadc72145cb7e22f77319f3948b7f0082bf77957008b6c7952a74",
"league_importance": 12
},
{
"class_id": "International",
"league_id": 3563,
"class_name": "International",
"league_name": "Olympic Games Women",
"class_hash_image": "e3113bd713401b3128c48c534fb57051d04d27f5e1813bebb02ea8c1fcff5616",
"league_hash_image": "3f57066b4c195dce9de302b2cc507754dd9fd4d5c8adf6c066a100fa0bb16271",
"league_importance": 2
},
{
"class_id": "International",
"league_id": 3563,
"class_name": "International",
"league_name": "Olympic Games Women",
"class_hash_image": "e3113bd713401b3128c48c534fb57051d04d27f5e1813bebb02ea8c1fcff5616",
"league_hash_image": "3f57066b4c195dce9de302b2cc507754dd9fd4d5c8adf6c066a100fa0bb16271",
"league_importance": 4
},
{
"class_id": "International",
"league_id": 3563,
"class_name": "International",
"league_name": "Olympic Games Women",
"class_hash_image": "e3113bd713401b3128c48c534fb57051d04d27f5e1813bebb02ea8c1fcff5616",
"league_hash_image": "3f57066b4c195dce9de302b2cc507754dd9fd4d5c8adf6c066a100fa0bb16271",
"league_importance": 6
}
]
}
]