Get a league

Get a league

GET /v1/leagues/{id}

A single competition, with its seasons newest first — the valid ?season= values for /v1/leagues/{id}/fixtures and /v1/standings. Exactly one season is marked current. Not every covered league lists seasons: where the feed defines none, seasons is empty and fixtures are queried by start_time/end_time instead.

Parameters

id required League id.
lang optional Localize the league name (21 languages, English fallback).

Example

GET /v1/leagues/{id}
curl https://api.5dollarfootballapi.com/v1/leagues/{id}
  -H "Authorization: Bearer fb_live_your_key"
{
  "success": 1,
  "data": {
    "id": 39,
    "name": "Premier League",
    "short_name": "EPL",
    "country_id": 14,
    "is_popular": true,
    "has_standings": true,
    "seasons": [
      { "season": "26/27", "current": true },
      { "season": "25/26", "current": false },
      { "season": "24/25", "current": false }
    ]
  }
}

Need a key? Create a free account — a working key is issued instantly, no card required.