Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

TheSportsDB Leagues API

The Leagues API from TheSportsDB — 5 operation(s) for leagues.

TheSportsDB Leagues API is one of 7 APIs that TheSportsDB publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Leagues. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 5 operations across 5 paths. It is described by OpenAPI 3.0.1, at version 1.0.

Requests are made against a single base URL, https://www.thesportsdb.com/api/v1/json.

5 operations 5 paths 0 schemas 5 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
1.0
Base URL
https://www.thesportsdb.com/api/v1/json
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

TheSportsDB Leagues API declares 1 security scheme for authenticating requests. An API key is passed in the header as X-API-KEY (ApiKeyHeader).

  • ApiKeyHeader — Premium V2 API key supplied in the X-API-KEY request header.

Paths & Operations 5

Across 5 paths, the API surfaces 5 operations — 5 GET. Each is listed below with its method, path, parameters, and response codes.

Leagues 5
GET
/{apiKey}/lookuptable.php
Look up the league table (standings) for a league and season.
lookupTable 3 params → 200
GET
/{apiKey}/all_sports.php
List all sports.
allSports 1 param → 200
GET
/{apiKey}/all_countries.php
List all countries.
allCountries 1 param → 200
GET
/{apiKey}/all_leagues.php
List all leagues.
allLeagues 1 param → 200
GET
/{apiKey}/search_all_seasons.php
List all seasons for a league.
searchAllSeasons 2 params → 200

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

sportsdb-leagues-api-openapi.yml Raw ↑

Other APIs TheSportsDB publishes across the network.

TheSportsDB Events API
TheSportsDB Livescores API
TheSportsDB Lookup API
TheSportsDB Players API
TheSportsDB Search API
TheSportsDB Teams API