Teams By League
This endpoint allows you to retrieve the teams from a specific league.
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 teams from a specific league_idhttps://football.sportdevs.com/teams-by-league?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 Foreign Key to
leagues.id
. - league_name text
The name of the league
- league_hash_image character varying
Possible values:
<= 64 characters
The hash image of the league
- teams jsonb
The teams
[
{
"league_id": 1,
"league_name": "Omani League",
"league_hash_image": "fb29c84441365355d7f83a5541de05bfcb652c2a5d94d7003339035e23b681dc",
"teams": [
{
"id": 1,
"name": "Al-Nahda",
"hash_image": "dd3bbd1b99d5b7394ba8bfb6909cb56d352556fcee23f6b8438b7f81246c148e"
},
{
"id": 15,
"name": "Al Seeb",
"hash_image": "027621bb70580e77f1e499920d548010ea521d11f8c18bb67cf88e31fcb22442"
},
{
"id": 211,
"name": "Dhofar",
"hash_image": "18233ffe2eb43775c4f044647d5dddb19897c6a72a081a39008a1cdc9b17c9e0"
},
{
"id": 4496,
"name": "Al-Shabab Oman",
"hash_image": "38176488fca7c4d60258eadcf7761168aefea14218771363a745d7ef5f833211"
},
{
"id": 4501,
"name": "Al-Wehda",
"hash_image": "175e3ad944dc64915f9d755488747611c3d6cbb233b358d2c82e4a4781973c1d"
},
{
"id": 4520,
"name": "Ibri Club",
"hash_image": "96945b8d48ba8a396dc04f5fdbf81b84c96331af6aa86df00892768338d5a413"
},
{
"id": 4540,
"name": "Sur",
"hash_image": "2687db7b53ec5c847ed1899e92dbcecf51fcfa3e483c75ef9ac2b3e556ddbeb8"
},
{
"id": 4555,
"name": "Al-Rustaq",
"hash_image": "766f119f3a738184bdd9fb41a3f6f91dda8108e51a32cefb24650b6b45654b82"
},
{
"id": 8841,
"name": "Saham",
"hash_image": "e0c89877e1975e4397b8a55f9b2c05cffc819c0b77b455ee141d6fc20ea51f54"
},
{
"id": 12917,
"name": "Al-Nasr S.C.S.C.",
"hash_image": "f41f5d3636ac0f4963fa7de2988f4acec64ef1b47c2dc50a7d4fcbe9675cdee6"
},
{
"id": 12941,
"name": "Sohar",
"hash_image": "5f423afd943f0bff9574c985399fbd4e49bc78bfa159157a5ea0d1e0470ae6be"
},
{
"id": 13277,
"name": "Al Ittihad",
"hash_image": "e78fd431c503a00d030a28c6da5b735a560e39f28c37cf312edf2047c751f0fc"
},
{
"id": 14302,
"name": "Oman Club",
"hash_image": "92ffdc35dacf8f061627829479f1327574499fddac4a217b728a78c26c010d94"
},
{
"id": 15439,
"name": "Bahla",
"hash_image": "f00179804649a47c68997a585587dc7a3d0cc3cfd4ed2763bba84034be527dc6"
}
]
}
]