Leagues Info
This endpoint allows you to retrieve the info from leagues and cups.
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 several times a day.
Recommended Calls: Limit calls to 1 every day.
Use Cases
Get league info from a specific league_idhttps://football.sportdevs.com/leagues-info?league_id=eq.{league_id}
Query Parameters
- league_id integer
Default value:
eq.1
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
- league_id integer
The id of the league
Note: This is a Primary Key.
- promoted_teams jsonb
The promoted teams
- most_title_names jsonb
The teams with most titles
- number_of_teams integer
The number of the teams in the league
- league_grade text
The grade of the league
- age_category text
The age class of the league
- first_season_winner text
The first season winner of the league
- total_teams_count integer
The count of the teams in the league
- total_tables_count integer
The count of the tables in the league
- promoting_teams_count text
The count of the promoting teams in the league
- relegating_teams_count integer
The count of the relegating teams in the league
- total_games_count integer
The count of the games in the league
- game_frequency integer
The frequency of the league
- total_rounds_count integer
The count of the rounds in the league
- competition_type text
The type of the competition
- league_gender text
The gender people playing in the league
- first_season_start_year text
First season start year
- most_popular_teams jsonb
The name of the most popular teams in the league
- playoff_teams_count integer
The number of the teams playing in the playoffs
- main_competition text
The main competition
- games_per_group text
The number of the games per group
- playoff_qualifying_teams_count integer
The count of the teams that are qualified to play in the playoffs
- number_of_promoted_teams integer
The number of promoted teams
- total_number_of_rounds integer
The number of rounds
- largest_stadium jsonb
The largest stadium
- last_season_magnitude jsonb
The last season magnitude
- tv_partners jsonb
The tv partners of the league
- official_organization jsonb
The official organisation of the league
- promotions jsonb
The promotions
- last_season_top_scorers jsonb
The last season top scorers in the league
[
{
"league_id": 1,
"promoted_teams": [
{
"league_name": "Al Seeb"
},
{
"league_name": "Bahla"
},
{
"league_name": "Fanja"
}
],
"most_title_names": [
{
"league_name": "Dhofar"
}
],
"league_grade": "professional",
"first_season_winner": "Fanja",
"total_teams_count": 14,
"total_tables_count": 3,
"promoting_teams_count": "0",
"relegating_teams_count": 3,
"total_games_count": 91,
"game_frequency": 1,
"total_rounds_count": 26,
"competition_type": "league",
"league_gender": "M",
"first_season_start_year": "1976",
"most_popular_teams": [
{
"team_name": "Al-Nasr S.C.S.C."
},
{
"team_name": "Al Seeb"
},
{
"team_name": "Dhofar"
}
],
"largest_stadium": [
{
"magnitude": 39000,
"team_name": "Oman Club"
}
],
"tv_partners": [
{
"url": "http://tv.om",
"name": "Oman Sports TV"
}
],
"official_organization": [
{
"url": "http://ofa.om",
"name": "OFA"
}
],
"promotions": [
{
"promotion_count": 1,
"competition_name": "AFC Cup"
}
]
}
]