# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/cba-sports-sina/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/cba-sports-sina/get-current-round-results \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/cba-sports-sina/get-game-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/cba-sports-sina/get-player-stats-rankings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/cba-sports-sina/get-schedule \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/cba-sports-sina/get-team-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/cba-sports-sina/get-team-list \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.