---
title: "GET /leagues/"
method: GET
path: "/leagues/"
tags: ["Leagues"]
---

# GET /leagues/

`GET /leagues/`

## Request

- Base URL: `https://api.sportsgameodds.com/v2`
- URL: `https://api.sportsgameodds.com/v2/leagues/`
- Auth: one of:
  - API key in query parameter `apiKey`
  - API key in header `x-api-key`

Get a list of Leagues

## Query parameters

- `sportID` string
- `leagueID` string

## Response `200`

An example array of Leagues

- object
  - `data` League[]
    - `sportID` string
    - `leagueID` string
    - `enabled` boolean
    - `name` string
    - `shortName` string

## Other responses

- `400`: Invalid params
- `401`: Invalid API key
- `403`: Inactive API key
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/sportsgameodds/apis/sports-game-odds-api.md) - [All operations](https://skmtc.dev/sportsgameodds/apis/sports-game-odds-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sportsgameodds/apis/sports-game-odds-api/revisions/df322340b06e?raw)
