Matches By Date League
This endpoint allows you to retrieve the matches from a specific date and league. 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 matches from a specific date and league_idhttps://aussie-rules.sportdevs.com/matches-by-date-league?date=eq.{date}&league_id=eq.{league_id}
Query Parameters
- date text
Default value:
eq.2009-03-26
The date
- league_id integer
Default value:
eq.3506
The id of the league
- 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
- league_id integer
The id of the league
- league_name text
The name of the league
- league_hash_image character varying
Possible values:
<= 64 characters
The hash image of the league
- matches jsonb
The matches
[
{
"date": "2009-03-26",
"league_id": 3506,
"league_name": "AFL",
"league_hash_image": "719f6d97918185e32a06e2edcda10c4d2f1e39442a5763540155f543bc794a03",
"matches": [
{
"id": 4799,
"name": "Richmond Tigers vs Carlton Blues",
"status": "finished",
"duration": 9000,
"season_id": 21891,
"start_time": "2009-03-26T10:40:00+00:00",
"season_name": "AFL 2009",
"away_team_id": 2278,
"home_team_id": 50641,
"status_reason": "Ended",
"tournament_id": 1170,
"away_team_name": "Carlton Blues",
"home_team_name": "Richmond Tigers",
"away_team_score": 150,
"home_team_score": 67,
"tournament_name": "AFL",
"away_team_hash_image": "44ebb687ead6c939c128cdb803395d9487fc712715012302ea74648f48bcae71",
"home_team_hash_image": "e500d9528e1cbfe929d862444f18202c7bf530c1c6fb7fc029fd10492e4286f6",
"tournament_importance": 1
}
]
}
]