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

# Get active leagues

`GET /leagues/active`

This endpoint returns all the currently active leagues with markets in them. Note that this endpoint is only updated every 10m. The response format is the same as the get leagues endpoint, with an additional field `eventsByType` which maps the number of unique events within a particular bet group (for example, `game-lines` or `outright-winner`).

## Query parameters

- `sportId` integer

## Response `200`

- object
  - `status` string — `success` or `failure` if the request succeeded or not
  - `data` object[]
    - `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
    - `eventsByType` object — Maps bet group types to the number of unique events within that type

---

[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)
