Countries

All Countries API interactions.

Get all Countries. Get Sports for Country.

thesportsdb.countries.allCountries()[source]

Get all countries information.

Events

All Event API interactions on the free tier.

Get Next 15 Events for league. Get Last 15 Events for league. Lookup Event Info. Fetch Event Results by its ID. Get Events for League during a particular Season.

thesportsdb.events.eventInfo(event_id: str)[source]

Get the Event Details for this event specified by the event_id

thesportsdb.events.eventResult(event_id: str)[source]

Get the Event Results for this event specified by the event_id

thesportsdb.events.lastLeagueEvents(league_id: str)[source]

Get the last 15 Events for this league identified by the league_id

thesportsdb.events.leagueSeasonEvents(league_id: str, season: str)[source]

Get the Events for this league identified by the league_id for the season specified.

thesportsdb.events.nextLeagueEvents(league_id: str)[source]

Get the next 15 Events for this league identified by the league_id

Leagues

All League related API interactions on the free tier.

Get All Leagues. Get League Info. Get Leagues for Sport. Get Table for League at a particular Season.

thesportsdb.leagues.allLeagues()[source]

Retrieve all leagues for all sports provided by the API. Returns a dict object with the json data obtained.

thesportsdb.leagues.leagueInfo(league_id: str)[source]

Retrieve the details for the League identified by the league_id

thesportsdb.leagues.leagueSeasonTable(league_id: str, season: str)[source]

Retrieve the League’s Table Standing for the Particular Season Specified.

thesportsdb.leagues.sportLeagues(sport_id: str)[source]

Retrieve all leagues for the sport identified by sport_id.

Requests

Module to Provide Functionality for Making requests to the API.

thesportsdb.requests.make_request(endpoint: str, **kwargs)[source]

Settings

Sports

All Sports API Interactions on the free tier.

Get All Sports. Get Sport Info. Get TeamVsTeam Sports. Get NONTeamVsTeam Sports.

thesportsdb.sports.TeamVsTeamSports()[source]

Get all sports that have the Team Vs Team Format.

thesportsdb.sports.allSports()[source]

Get all sports provided by the API.

thesportsdb.sports.nonTeamVsTeamSports()[source]

Get all sports that DO NOT have the Team Vs Team Format.

thesportsdb.sports.sportInfo(sport_id: str)[source]

Get the sport information for the sport identified by sport_id

Teams

All Teams API Interactions on the free tier.

Get teams for League. Get team Info by ID.

thesportsdb.teams.leagueTeams(league_id: str)[source]

Get all teams for the league identified by league_id

thesportsdb.teams.teamInfo(team_id: str)[source]

Get the information for this team identified by the team_id