# Cba Sports Sina — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access comprehensive sports data including live game details, team information, player statistics rankings, schedules, and current round results. Track performances across teams and players while staying updated on upcoming matchups and real-time game outcomes.

**Category:** Sports | **Website:** [cba.sports.sina.com.cn/](https://cba.sports.sina.com.cn/) | **Docs:** [parse.bot/marketplace/27be5738-acbe-4480-ad05-6c149c3b3f1a/cba-sports-sina-com-cn-api](https://parse.bot/marketplace/27be5738-acbe-4480-ad05-6c149c3b3f1a/cba-sports-sina-com-cn-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-cba-sports-sina-com-cn-api-27be5738/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_current_round_results

Fetch the most recent/current round results and upcoming games from the CBA homepage. Returns game objects with round label, date, teams, scores, and game IDs. Results reflect whatever is currently displayed on the CBA homepage.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cba-sports-sina-com-cn-api-27be5738/get_current_round_results \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_game_detail

Fetch full box score and game detail for a specific CBA game. Returns player-level statistics for both teams including shooting splits, rebounds, assists, steals, blocks, turnovers, fouls, and points. Also returns quarter scores when available.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `game_id` | string | Yes | The game ID, obtainable from get_schedule or get_current_round_results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cba-sports-sina-com-cn-api-27be5738/get_game_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"game_id":"<string>"}'
```

### get_player_stats_rankings

Fetch CBA player individual season statistics rankings (per-game averages). Returns players ranked by the specified stat category for a given season. Includes shooting splits, rebounds, assists, steals, blocks, turnovers, fouls, and efficiency rating.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `orderby` | string | No | Sort column for the rankings. |
| `round` | integer | No | Season stage filter: 0 = All, 1 = Regular, 2 = Playoffs. |
| `season` | string | No | Season string in YY-YY format. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cba-sports-sina-com-cn-api-27be5738/get_player_stats_rankings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"orderby":"<string>","round":"<integer>","season":"<string>"}'
```

### get_schedule

Fetch CBA schedule and results filtered by season, month, and team. Returns a list of games with dates, teams, scores, venue and broadcast info. Use team_id '00' for all teams and month '00' for all months.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `month` | string | No | Month filter in MM format: '00' for all months, '01' through '12' for specific months. |
| `season` | string | No | Season string in YY-YY format. |
| `team_id` | string | No | Team ID from get_team_list, or '00' for all teams. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cba-sports-sina-com-cn-api-27be5738/get_schedule \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"month":"<string>","season":"<string>","team_id":"<string>"}'
```

### get_team_detail

Fetch detailed information for a specific CBA team including roster and coaching staff. Returns team metadata (coach, founding year, best results) and a list of players with IDs and images.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `team_id` | string | Yes | The team ID from get_team_list (e.g. '1' for 广东, '3' for 八一). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cba-sports-sina-com-cn-api-27be5738/get_team_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"team_id":"<string>"}'
```

### get_team_list

Fetch the list of all CBA teams with their IDs and names. Returns approximately 21 teams. Team IDs are used as input for get_team_detail and get_schedule.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cba-sports-sina-com-cn-api-27be5738/get_team_list \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
