V2 API Search
Search sports league
Search for any sports league using a text string.
get/search/league/{leagueName}
Request
- Base URLhttps://www.thesportsdb.com/api/v2/json
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
leagueNamestring required
The name of the league to search for.
Response
Array of leagues matching query
Example response
{
"search": [
{
"idLeague": "4328",
"idAPIfootball": "7293",
"strSport": "Soccer",
"strLeague": "English Premier League",
"strLeagueAlternate": "Premier League, EPL",
"intDivision": "0",
"idCup": "0",
"strCurrentSeason": "2025-2026",
"intFormedYear": "1992",
"dateFirstEvent": "1992-08-15",
"strGender": "Male",
"strCountry": "England",
"strWebsite": "https://www.premierleague.com",
"strTvRights": "UK - Sky Sports [2022-2025]",
"strBadge": "https://www.thesportsdb.com/images/media/league/badge/gasy9d1737743125.png",
"strNaming": "{strHomeTeam} vs {strAwayTeam}"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.