# GET /v2/leagues/popular

Group: Discovery

The source’s own pick of a sport’s popular leagues for a visitor’s country, in its order — the home country’s leagues and the big international competitions first. Made for a “top leagues” menu.

Note: Race sports and MMA have no list (an empty array). To sort any other list of leagues, use LeagueRef.priority where it is set.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `sport` | query | yes | a sport slug from /v2/sports |
| `country` | query | no | the visitor’s two-letter country code (TR, GB, US, …; case-insensitive). Default: the source’s international list |

## Response

- `data`: `LeagueRef[]`
- `meta`: sport, country (null without one), count
- Objects: LeagueRef (https://sportsapi.app/markdown/en/reference.md#leagueref)

## Errors

- 400 bad_request — sport missing or unknown, or country not two letters

Plus the common errors (https://sportsapi.app/markdown/en/docs.md#errors).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.sportsapi.app/v2/leagues/popular?sport=…"
```

TypeScript:

```ts
const { data, meta } = await client.leagues.popular({ sport });
```

Python:

```python
res = client.leagues.popular(sport=sport)
```

Go:

```go
res, err := client.Leagues.Popular(ctx, &sportsapi.LeaguesPopularParams{Sport: sport})
```

CLI:

```bash
$ sportsapi leagues popular <sport>
```

## Example response

```json
{ "data": [ { "id": 195850, "name": "UEFA Super Cup", "category": "Europe", "country": null, … },
    { "id": 195833, "name": "Trendyol Süper Lig", "category": "Turkey",
      "country": { "code": "TR", "name": "Turkey", "flag": "https://cdn.sportsapi.app/v2/countries/TR/flag" }, … },
    { "id": 195829, "name": "FIFA World Cup", … }, { "id": 195900, "name": "UEFA Champions League", … }, … ],
  "meta": { "sport": "football", "country": "TR", "count": 22 } }
```

---

Base URL: https://api.sportsapi.app. Send your API key as `Authorization: Bearer <key>` on every /v2 request; keys are created in the dashboard (https://sportsapi.app/dashboard).
HTML: https://sportsapi.app/docs/discovery/leagues-popular · All docs: https://sportsapi.app/markdown/en/docs.md
