---
title: "Get leagues"
method: GET
path: "/leagues"
tags: ["Sports Data"]
---

# Get leagues

`GET /leagues`

This endpoint returns all the leagues supported by SX.bet

## Query parameters

- `sportId` integer

## Response `200`

- object
  - `status` string — `success` or `failure` if the request succeeded or not
  - `data` League[]
    - `leagueId` integer — The ID for this league
    - `label` string — The name of this league
    - `sportId` integer — The ID of the sport this league corresponds to
    - `active` boolean — Whether or not the league is active on SX.bet currently

---

[API](https://skmtc.net/sx/apis/sx-bet-api.md) · [All operations](https://skmtc.net/sx/apis/sx-bet-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sx/sx-bet-api/versions/eb2c05c3a98e/schema)
