360 Secure SkillHub
360 安全技能中心

NBA game schedule today, scores and standings rank.

核心功能:获取今日NBA赛程(含实时比分、赛况、球员数据)、东西部赛季排名,无需API密钥,基于NBA CDN和StatMuse数据源。典型场景:用户查询今日赛事、实时比分、往期赛果、球队排名等。输入为运行指定Python脚本并加参数,输出为结构化可读数据,还可引导至官方平台查看详细数据。

goog
goog
热度 47.60
最近更新 2026-05-11 17:38:07
分类:搜索依赖:代码执行 / 联网浏览搜索 / 第三方 API应用场景:研究 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add nba
Metadata
name
nba
description
Get today's NBA game schedule, live scores, final results, and current season standings. Use when the user asks about NBA games today, live NBA scores, game results, NBA standings, team records, or anything about the current NBA season. Triggers on phrases like "NBA schedule", "NBA scores today", "NBA standings", "what NBA games are on", "NBA results", "who won last night in NBA".

NBA Skill

Fetches live NBA data via the NBA CDN API (scoreboard) and StatMuse HTML (standings).

Data Sources

Data Source
Today's games & live scores https://cdn.nba.com/static/json/liveData/scoreboard/todaysScoreboard_00.json
Standings (East/West) StatMuse HTML tables — https://www.statmuse.com/nba/ask/nba-2025-26-eastern-conference-standings
Full schedule https://www.nba.com/schedule

Quick Usage

Run the script from the skill directory:


# Today's schedule + live scores
python scripts/nba_data.py scoreboard

# Current standings
python scripts/nba_data.py standings

# Both (default)
python scripts/nba_data.py all

On Linux/macOS:

python3 scripts/nba_data.py all

Script: scripts/nba_data.py

  • scoreboard — Fetches today's games from NBA CDN. Shows status (upcoming/live/final), scores, quarter/clock, and game leaders (pts/reb/ast).
  • standings — Scrapes StatMuse for East + West conference tables: rank, team, W, L, pct, home record.
  • all — Both commands combined.

No API key required. Pure stdlib (urllib, json, re).

Workflow

  1. Run python scripts/nba_data.py all (set PYTHONIOENCODING=utf-8 on Windows first).
  2. Run python -c "from datetime import datetime; print(datetime.now().astimezone().tzinfo) to get timezone.
  3. Parse and present output to the user in clean readable format, change UTC time to local timezone.
  4. For deeper stats (player stats, box scores, specific game details), direct user to:
    • https://www.nba.com/game/<gameId> for box scores
    • https://www.statmuse.com/nba for historical stats queries

Notes

  • The NBA CDN scoreboard updates every ~30 seconds during live games.
  • Season year in StatMuse URLs (e.g. 2025-26) may need updating at season start.
  • StatMuse standings URL pattern: https://www.statmuse.com/nba/ask/nba-YYYY-YY-[eastern|western]-conference-standings