Discover/Com API
live

Com APIcba.sports.sina.com.cn

Access Chinese Basketball Association data: player stat rankings, game box scores, team rosters, schedules, and current round results via 6 structured endpoints.

Endpoint health
verified 3d ago
get_schedule
get_current_round_results
get_game_detail
get_team_detail
get_player_stats_rankings
6/6 passing latest checkself-healing
Endpoints
6
Updated
26d ago

What is the Com API?

This API exposes 6 endpoints covering the Chinese Basketball Association (CBA) league hosted on cba.sports.sina.com.cn, returning player per-game statistical rankings, full game box scores, team rosters, and schedules with scores. The get_player_stats_rankings endpoint alone surfaces per-player season averages across points, rebounds, assists, steals, and blocks, filterable by season stage and sortable by any of those categories.

Try it
Season stage filter: 0 = All, 1 = Regular, 2 = Playoffs.
Season string in YY-YY format.
Sort column for the rankings.
api.parse.bot/scraper/a68b6c85-2b9a-4d64-9f26-a094e0315feb/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/a68b6c85-2b9a-4d64-9f26-a094e0315feb/get_player_stats_rankings?round=0&season=23-24&orderby=pts' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace cba-sports-sina-com-cn-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: CBA Basketball API — team rosters, player rankings, game box scores."""
from parse_apis.cba_basketball_api import CBA, Season, StatCategory, Round, ResourceNotFound

client = CBA()

# List all teams and pick the first one for drill-down.
team = client.teams.list(limit=5).first()
print(f"First team: {team.name} (id={team.id})")

# Get full team detail (roster + coaching staff).
detail = team.detail()
print(f"Coach: {detail.team_info.coach}, Roster size: {len(detail.roster)}")
for player in detail.roster[:3]:
    print(f"  - {player.name} (pid={player.player_id})")

# Fetch top scorers for the 2023-24 regular season.
for stats in client.playerstatses.rankings(
    season=Season.S_23_24, round=Round.REGULAR, orderby=StatCategory.POINTS, limit=5
):
    print(f"#{stats.rank} {stats.name} ({stats.team}) — {stats.points} pts, {stats.assists} ast")

# Get current round results and fetch box score for the first game.
game_result = client.roundgames.current(limit=1).first()
if game_result:
    print(f"Latest: {game_result.away_team} vs {game_result.home_team} ({game_result.score})")
    try:
        box = client.games.get(game_id=game_result.game_id)
        print(f"Box score title: {box.title}")
        for p in box.home_box[:2]:
            print(f"  Home: {p.name} — {p.points} pts, {p.assists} ast")
    except ResourceNotFound as exc:
        print(f"Game not found: {exc}")

# Browse a team's schedule.
for g in client.team("1").games.list(season=Season.S_23_24, limit=3):
    print(f"  {g.datetime}: {g.away_team} vs {g.home_team} — {g.score}")

print("Exercised: teams.list / detail / playerstatses.rankings / roundgames.current / games.get / team.games.list")
All endpoints · 6 totalmissing one? ·

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.

Input
ParamTypeDescription
roundintegerSeason stage filter: 0 = All, 1 = Regular, 2 = Playoffs.
seasonstringSeason string in YY-YY format.
orderbystringSort column for the rankings.
Response
{
  "type": "object",
  "fields": {
    "season": "string echoing the requested season",
    "players": "array of player stat objects with rank, name, player_id, team, games, points, rebounds, assists, steals, blocks, turnovers, fouls, efficiency, and shooting splits"
  },
  "sample": {
    "data": {
      "season": "23-24",
      "players": [
        {
          "name": "高登",
          "rank": "1",
          "team": "四川",
          "dunks": "0.0",
          "fouls": "2.1",
          "games": "38",
          "blocks": "0.1",
          "points": "33.3",
          "steals": "1.0",
          "assists": "7.6",
          "def_reb": "4.7",
          "off_reb": "0.8",
          "team_id": null,
          "rebounds": "5.5",
          "player_id": "7314",
          "turnovers": "3.4",
          "two_point": "7.4-14.2",
          "efficiency": "30.24",
          "free_throw": "9.2-10.3",
          "three_point": "3.1-9.1"
        }
      ]
    },
    "status": "success"
  }
}

About the Com API

Player Statistics and Rankings

The get_player_stats_rankings endpoint returns a ranked array of players for a given season (season param in YY-YY format) and stage (round: 0 = all, 1 = regular season, 2 = playoffs). The orderby parameter accepts pts, reb, ast, stl, or blk, and each player object in the response includes rank, name, player_id, team, games, points, rebounds, assists, steals, blocks, turnovers, and fouls. Coverage goes back to at least the 16-17 season.

Schedules and Box Scores

get_schedule accepts a season, a month (MM format, or '00' for all months), and a team_id (from get_team_list, or '00' for all teams). Each game object in the response contains datetime, home_team, home_team_id, away_team, away_team_id, score, game_id, venue, and broadcast. Once you have a game_id, pass it to get_game_detail to retrieve full player-level box scores for both sides in home_box and away_box arrays, along with a score_board object that includes quarter scores when available.

Teams and Rosters

get_team_list returns all CBA teams with their name and id fields — the id value is the foreign key used by get_schedule, get_team_detail, and get_player_stats_rankings. get_team_detail takes a team_id and returns the roster (player name, player_id, and image URL per player) plus a team_info object with name, coach, assistant_coaches, founding_year, and best_results. Note that in-season per-player team stats are not returned by this endpoint.

Current Round

get_current_round_results requires no parameters and returns the most recent round's completed and upcoming games from the CBA homepage. Each game object includes round, date, home_team, home_team_id, away_team, away_team_id, score, and game_id, making it a convenient starting point for polling live-round status without knowing specific game IDs in advance.

Reliability & maintenanceVerified

The Com API is a managed, monitored endpoint for cba.sports.sina.com.cn — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when cba.sports.sina.com.cn changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official cba.sports.sina.com.cn API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
3d ago
Latest check
6/6 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a CBA season leaderboard sorted by assists or blocks using get_player_stats_rankings with the orderby param
  • Track a specific team's full season schedule and results by passing team_id to get_schedule
  • Pull player-level box scores for post-game analysis using get_game_detail with game IDs from get_schedule
  • Display current-round standings and upcoming fixtures in a dashboard via get_current_round_results
  • Populate a team profile page with roster and coaching staff from get_team_detail
  • Compare regular-season versus playoff per-game averages for individual players using the round filter in get_player_stats_rankings
  • Resolve team IDs for downstream API calls by seeding a local lookup table from get_team_list
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does cba.sports.sina.com.cn have an official developer API?+
Sina Sports does not publish a documented public developer API for CBA data. There is no official endpoint or API key program available to third-party developers.
What does `get_game_detail` return, and when are quarter scores included?+
get_game_detail returns home_box and away_box arrays with per-player statistics, a title string, and a score_board object. Quarter scores appear inside score_board when the source has that breakdown available for the requested game; they are not guaranteed for all historical games.
Does `get_team_detail` return season statistics for each player on the roster?+
get_team_detail returns roster entries with name, player_id, and image, plus coaching and club metadata. Per-player season statistics are not included in this endpoint's response. You can get individual stat lines from get_player_stats_rankings by cross-referencing player_id. If you need aggregated per-player team stats in one call, you can fork this API on Parse and revise it to add that endpoint.
How far back does season coverage go for `get_player_stats_rankings`?+
The season parameter accepts values from '16-17' through the current season. Seasons before 16-17 are not currently supported by the endpoint.
Are live in-game play-by-play events or real-time score updates available?+
Not currently. The API covers completed game box scores via get_game_detail and current-round results via get_current_round_results, but does not expose play-by-play sequences or live score polling with shot-by-shot detail. You can fork this API on Parse and revise it to add a live play-by-play endpoint.
Page content last updated . Spec covers 6 endpoints from cba.sports.sina.com.cn.
Related APIs in SportsSee all →
cpbl.com.tw API
Access comprehensive CPBL baseball data including live game schedules, detailed box scores, player statistics, and play-by-play game feeds to stay updated on the Chinese Professional Baseball League. Build applications that display team standings, player rosters, news updates, and advanced performance metrics for all CPBL games and athletes.
h2hggl.com API
Access live e-sports match data, daily schedules, upcoming games, and final results across H2H GG League eBasketball competitions. Retrieve real-time scores, player statistics, head-to-head comparisons, and detailed match timelines.
cbssports.com API
Access comprehensive CBS Sports data including live game schedules, scores, game details, expert picks and analyst performance rankings, and team social feeds — all from a single API.
fiba.basketball API
Track FIBA basketball games and scores by date, dive into game details, explore competition schedules, check world rankings, and search for the latest basketball news all in one place. Stay updated on international basketball with comprehensive data covering live games, team information, and competitive standings.
stats.ncaa.org API
Access comprehensive NCAA sports statistics to search for players, teams, and coaches, view game box scores and play-by-play data, and review team schedules, rosters, and rankings. Get detailed head coach records and scoreboard information to analyze performance across college sports.
baseball-reference.com API
Access comprehensive MLB and college baseball (NCAA Division I) statistics from Baseball-Reference. Retrieve player career and season stats, team rosters and performance data, game box scores, season schedules, league leaders, and college conference standings — all from a single API.
mykbostats.com API
Access comprehensive KBO league data including team standings, schedules, rosters, player profiles, and game details to track Korean baseball statistics and performance metrics. Search for players, view depth charts, get foreign player information, and analyze win matrices to stay informed about the Korean Baseball Organization.
espncricinfo.com API
Access live cricket scores, ball-by-ball commentary, and detailed match scorecards to stay updated on ongoing games. Look up comprehensive player statistics, team information, and historical cricket records all in one place.