Matches
This endpoint allows you to retrieve the matches.
You can use id
from the seasons
, tournaments
, rounds
, arenas
, referees
and teams
endpoint to get the matches.
Matches status codes:
type | description |
---|---|
canceled | Canceled |
canceled | Abandoned |
delayed | Start delayed |
finished | Walkover |
finished | Removed |
finished | AET |
finished | Ended |
finished | Coverage canceled |
finished | AP |
interrupted | Interrupted |
live | 2nd half |
postponed | Postponed |
upcoming | Not started |
live | 1st half |
live | 1st extra |
live | 2nd extra |
For scores we have fields for covering that: current
, display
, period1
, period2
, normaltime
, overtime
, penalties
, series
, aggregated
, extra1
, extra2
, period3
, team
, match_id
.
For time extras or injuries we have fields for covering that: current, played, period_length, overtime_length, total_period_count, current_period_start_timestamp, match_id, time, average_period_length, period_count.
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 10 seconds.
Recommended Calls: Limit calls to 1 every 10 seconds.
Use Cases
Get matcheshttps://handball.sportdevs.com/matches
Get match based on the idhttps://handball.sportdevs.com/matches?id=eq.{id}
Get matches based on the start_timestamp (gte = greater than or equal to, lt = lower than)https://handball.sportdevs.com/matches?start_timestamp=gte.2023-04-27&start_timestamp=lt.2023-04-28
Get matches based on the status_typehttps://handball.sportdevs.com/matches?status_type=eq.{status_type}
Get matches based on the season_idhttps://handball.sportdevs.com/matches?season_id=eq.{season_id}
Get matches based on the tournament_idhttps://handball.sportdevs.com/matches?tournament_id=eq.{tournament_id}
Get matches based on the round_idhttps://handball.sportdevs.com/matches?round_id=eq.{round_id}
Get matches based on the arena_idhttps://handball.sportdevs.com/matches?arena_id=eq.{arena_id}
Get matches based on the referee_idhttps://handball.sportdevs.com/matches?referee_id=eq.{referee_id}
H2H - Get head to head matches with teams ex.(home_team_id, away_team_id)https://handball.sportdevs.com/matches?or=(home_team_id.eq.{home_team_id}, away_team_id.eq.{home_team_id}, home_team_id.eq.{away_team_id}, away_team_id.eq.{away_team_id})
Get home team matches based on the home_team_idhttps://handball.sportdevs.com/matches?home_team_id=eq.{home_team_id}
Get away team matches based on the away_team_idhttps://handball.sportdevs.com/matches?away_team_id=eq.{away_team_id}
Query Parameters
- id integer
Default value:
eq.7
The id of the match
- tournament_id integer
Default value:
eq.10181
The id of the tournament
- season_id integer
Default value:
eq.33924
The id of the season
- round_id integer
Default value:
eq.343915
The id of the round
- arena_id integer
Default value:
eq.8316
The id of the arena
- referee_id integer
The id of the referee
- home_team_id integer
Default value:
eq.61829
The id of the home team
- away_team_id integer
Default value:
eq.61800
The id of the away team
- 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
- id integer
The id of the match
Note: This is a Primary Key.
- name character varying
Home team name vs away team name
- tournament_id integer
The id of the tournament
Note: This is a Foreign Key to
seasons-by-tournament.tournament_id
. - tournament_name text
The name of the tournament
- tournament_importance integer
The importance of the tournament
- season_id integer
The id of the season
Note: This is a Foreign Key to
seasons.id
. - season_name text
The name of the season
- round_id integer
The id of the round
Note: This is a Primary Key.
- round jsonb
The round
- status jsonb
The status of the match
- status_type text
The type of the match
- attendance integer
The number of people watching the match at the arena
- arena_id integer
The id of the arena
Note: This is a Foreign Key to
arenas.id
. - arena_name text
The name of the arena
- arena_hash_image character varying
Possible values:
<= 64 characters
The name image of the arena
- home_team_id integer
The id of the home team
Note: This is a Foreign Key to
teams.id
. - home_team_name text
The name of the home team
- home_team_hash_image character varying
Possible values:
<= 64 characters
The name image of the home team
- away_team_id integer
The id of the away team
Note: This is a Foreign Key to
teams.id
. - away_team_name text
The name of the away team
- away_team_hash_image character varying
Possible values:
<= 64 characters
The name image of the away team
- home_team_score jsonb
The score of the home team
- away_team_score jsonb
The score of the away team
- times jsonb
The time of the match
- coaches jsonb
The coaches
- specific_start_time timestamp with time zone
The real start time of the match
- start_time timestamp with time zone
The official start time of the match
- end_time timestamp with time zone
The end of the match
- duration integer
The duration of the match
- last_period text
The last period of the match
- season_statistics_type text
The type of the season's statistics
- lineups_id integer
The id of the lineup
Note: This is a Foreign Key to
matches-lineups.id
. - coaches_id integer
The id of the coaches
- class_id integer
The id of the class
- class_name text
The name of the class
- class_hash_image character varying
Possible values:
<= 64 characters
The name of the class image
- 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 name of the league image
- previous_leg_match_id integer
The id of the previous leg match
Note: This is a Foreign Key to
matches.id
. - weather_id integer
The id of the weather
Note: This is a Foreign Key to
matches-weather.id
. - weather_main text
The main weather
- weather_icon text
The name icon of the weather
[
{
"id": 7,
"name": "WHC Metalurg vs Westfriesland SEW",
"tournament_id": 10181,
"tournament_name": "Cup Winners, Women",
"tournament_importance": 0,
"season_id": 33924,
"season_name": "EHF Cup Winners Women 15/16",
"round_id": 343915,
"round": {
"id": 343915,
"name": "Round 2",
"round": 8,
"end_time": "2015-10-25",
"start_time": "2015-10-17"
},
"status": {
"type": "finished",
"reason": "Ended"
},
"status_type": "finished",
"arena_id": 8316,
"arena_name": "Stadion Avtokomanda",
"arena_hash_image": "01e3c363aa47ad8791c57aa614fd7a5e8df879b486cc3e2ddd2ee805d5fd3b5f",
"home_team_id": 61829,
"home_team_name": "WHC Metalurg",
"home_team_hash_image": "b32d499356226341a1a6c12c339291b50de3c31812f92bf802a9ca2359538718",
"away_team_id": 61800,
"away_team_name": "Westfriesland SEW",
"away_team_hash_image": "ecf25bc27af810dc6926b707c7bbb30cf07b11f71e9cdacbad0a17707d88a43d",
"home_team_score": {
"current": 33,
"display": 33,
"period_1": 19,
"default_time": 33
},
"away_team_score": {
"current": 26,
"display": 26,
"period_1": 10,
"default_time": 26
},
"start_time": "2015-10-24T15:00:00+00:00",
"duration": 9000,
"class_id": 364,
"class_name": "Spain",
"class_hash_image": "718674cd5bda6a8017db46aa260d8749a1916742541e34aab9c6ca4cfa6e123d",
"league_id": 7565,
"league_name": "EHF Cup Winners Women",
"league_hash_image": "631566193ed64e4b50ebb25c83b22f7e683063f061d5e1b13dffc0e595db2a19"
}
]