> ## Documentation Index
> Fetch the complete documentation index at: https://oddspapi-v4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# GET sports

> OddsPapi API 中所有体育项目的列表，含 sportId 和 slug。查询联赛、赛事和赔率的起点。

> [!NOTE]
>
> **速率限制**：同一 API 密钥对该端点的两次调用之间至少间隔 1 秒。调用过快会返回 `429 RATE_LIMITED`。 每次调用消耗 1 次请求配额。 [了解限制规则](https://oddspapi-v4.mintlify.site/zh/docs/errors.md#rate-limits)

允许用户获取系统中可用的体育项目列表。

## 端点

```http theme={null}
GET /v4/sports
```

## 请求参数

* **language** `(string)` — （可选）返回结果所使用的语言， `sportName` 即列表将以该语言返回。

### 请求示例

```http theme={null}
GET /v4/sports?language=en
```

### 响应示例

```json theme={null}
[
  {
    "sportId": 10,
    "slug": "soccer",
    "sportName": "Soccer"
  },
  {
    "sportId": 11,
    "slug": "basketball",
    "sportName": "Basketball"
  }
]
```

响应将包含状态码 `200` 表示请求成功。如果当前没有可用的体育项目，数组可能为空。

## 响应 (200 OK)

当请求成功时，服务器会返回状态码 `200` 并返回一个包含体育项目列表的 JSON 数组。

数组中的每个对象包含以下字段:

* **sportId** `(number)` — 体育项目的唯一标识符。在向其他端点传递 sport 参数时，应使用该值。
* **slug** `(string)` — 适合用于 URL 的体育项目名称形式。
* **sportName** `(string)` — 体育项目名称。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.