Cup Bracket
This endpoint allows you to retrieve the cup knock outs.
You can use id
from the seasons
or leagues
endpoint to get the wanted cup knock out tree.
Fields in rounds:
Field | Explanation |
---|---|
order | The order of the round |
description | The description of the round |
blocks | The blocks of the round |
finished | If the match is finished |
order | The order of the block |
home_team_score | The score of the home team |
away_team_score | The score of the away team |
has_next_round_link | If the match has next round |
match_in_progress | If the match is in play |
series_start_date_timestamp | The start date of the match |
automatic_progression | If the match has automatic progression |
participants | The participants of the block (match) |
team_id | The id of the team |
winner | If the team is winner of the block |
order | The order of the participants |
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 after every finished match.
Recommended Calls: Limit calls to 1 per finished match.
Use Cases
Get cup knock out based on the idhttps://cricket.sportdevs.com/cup-bracket?id=eq.{id}
Get cups based on the season_idhttps://cricket.sportdevs.com/cup-bracket?season_id=eq.{season_id}
Get cups based on the league_idhttps://cricket.sportdevs.com/cup-bracket?league_id=eq.{league_id}
Query Parameters
- id integer
The id of the cup bracket
- season_id integer
The id of the season
- league_id integer
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
- rounds jsonb
The rounds of the cup bracket
[]