中二节奏 API 文档
API 类型
开发者 API
POST /api/v0/chunithm/player
创建或修改玩家信息。
权限
- allow_third_party_write_data
请求体
请求示例
GET /api/v0/chunithm/player/{friend_code}
获取玩家信息。
权限
- allow_third_party_fetch_player
URL 参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| friend_code | int | 好友码 |
响应体
GET /api/v0/chunithm/player/qq/{qq}
通过 QQ 号获取玩家信息。
权限
- allow_third_party_fetch_player
URL 参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| int | 查分器用户绑定的 QQ 号 |
响应体
GET /api/v0/chunithm/player/{friend_code}/best
获取玩家缓存谱面的最佳成绩。
权限
- allow_third_party_fetch_scores
URL 参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| friend_code | int | 好友码 |
查询参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| song_id | int | 曲目 ID,与 song_name 冲突 |
| song_name | string | 曲名,与 song_id 冲突 |
| level_index | LevelIndex | 难度 |
GET /api/v0/chunithm/player/{friend_code}/bests
获取玩家的 Rating 构成(即 Best 30、Selection 10 和 New 20 列表)。
权限
s
- allow_third_party_fetch_scores
URL 参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| friend_code | int | 好友码 |
响应体
| 字段名 | 类型 | 说明 |
|---|---|---|
| bests | Score[] | 旧版本 Best 30 列表,即评分对象曲(最高) |
| selections | Score[] | 旧版本 Selection 10 列表,即候选评分对象曲(最高) |
| new_bests | Score[] | 当前版本 Best 20 列表,即评分对象曲(新曲) |
提示
GET /api/v0/chunithm/player/{friend_code}/bests
获取玩家缓存单曲所有谱面的成绩。
权限
- allow_third_party_fetch_scores
URL 参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| friend_code | int | 好友码 |
查询参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| song_id | int | 曲目 ID,与 song_name 冲突 |
| song_name | string | 曲名,与 song_id 冲突 |
POST /api/v0/chunithm/player/{friend_code}/scores
上传玩家成绩。
权限
- allow_third_party_write_data
URL 参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| friend_code | int | 好友码 |
请求体
JSON 格式的玩家成绩:
| 字段名 | 类型 | 说明 |
|---|---|---|
| scores | Score[] | 玩家成绩 |
请求示例
GET /api/v0/chunithm/player/{friend_code}/recents
获取玩家缓存的 Recent 50,按照 play_time 排序。
权限
- allow_third_party_fetch_scores
URL 参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| friend_code | int | 好友码 |
响应体
GET /api/v0/chunithm/player/{friend_code}/scores
获取玩家缓存的所有最佳成绩(简化后)。
权限
- allow_third_party_fetch_scores
URL 参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| friend_code | int | 好友码 |
响应体
GET /api/v0/chunithm/player/{friend_code}/heatmap
获取玩家成绩上传热力图。
权限
- allow_third_party_fetch_history
URL 参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| friend_code | int | 好友码 |
响应体
日期与成绩数量的映射,键为日期(格式为 YYYY-MM-DD),值为该日期上传的成绩数量。
GET /api/v0/chunithm/player/{friend_code}/trend
获取玩家 Rating 趋势。
权限
- allow_third_party_fetch_history
查询参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| version | int | 值可空,游戏版本,默认值为 23000 |
提示
URL 参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| friend_code | int | 好友码 |
响应体
GET /api/v0/chunithm/player/{friend_code}/score/history
获取玩家成绩游玩历史记录。
注意
权限
- allow_third_party_fetch_history
- allow_third_party_fetch_scores
URL 参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| friend_code | int | 好友码 |
查询参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| song_id | int | 曲目 ID |
| level_index | LevelIndex | 难度 |
响应体
GET /api/v0/chunithm/player/{friend_code}/{collection_type}/{collection_id}
获取玩家收藏品进度。
权限
- allow_third_party_fetch_scores
URL 参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| friend_code | int | 好友码 |
| collection_type | string | 收藏品类型,值为 trophy、character、plate 或 icon |
| collection_id | int | 收藏品 ID |
响应体
POST /api/v0/chunithm/player/{friend_code}/html
通过 NET 的 HTML 源代码上传玩家数据。
权限
- allow_third_party_write_data
请求体
文本格式的 HTML 源代码。
提示
注意
个人 API
仅列举部分 API 接口,完整接口请参考前端调用。
GET /api/v0/user/chunithm/player
获取玩家信息。
响应体
GET /api/v0/user/chunithm/player/scores
获取玩家所有成绩。
响应体
POST /api/v0/user/chunithm/player/scores
上传玩家成绩。
请求体
JSON 格式的玩家成绩:
| 字段名 | 类型 | 说明 |
|---|---|---|
| scores | Score[] | 玩家成绩 |
公共 API
GET /api/v0/chunithm/song/list
获取曲目列表。
查询参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| version | int | 值可空,游戏版本,默认值为 23000 |
| notes | bool | 值可空,是否包含谱面物量,默认值为 false |
响应体
| 字段名 | 类型 | 说明 |
|---|---|---|
| songs | Song[] | 曲目列表 |
| genres | Genre[] | 乐曲分类列表 |
| versions | Version[] | 曲目版本列表 |
GET /api/v0/chunithm/song/{song_id}
获取曲目信息。
查询参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| version | int | 值可空,游戏版本,默认值为 23000 |
URL 参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| song_id | int | 曲目 ID |
响应体
GET /api/v0/chunithm/alias/list
获取曲目别名列表。
响应体
| 字段名 | 类型 | 说明 |
|---|---|---|
| aliases | Alias[] | 曲目别名列表 |
GET /api/v0/chunithm/{collection_type}/list
获取收藏品列表。
查询参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| version | int | 值可空,游戏版本,默认值为 23000 |
URL 参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| collection_type | string | 收藏品类型,值为 trophy、character、plate 或 icon |
响应体
| 字段名 | 类型 | 说明 |
|---|---|---|
| trophies | Collection[] | 仅收藏品类型为 trophy,称号列表 |
| characters | Collection[] | 仅收藏品类型为 character,角色列表 |
| plates | Collection[] | 仅收藏品类型为 plate,名牌版列表 |
| icons | Collection[] | 仅收藏品类型为 icon,地图头像列表 |
GET /api/v0/chunithm/{collection_type}/{collection_id}
获取收藏品信息。
查询参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| version | int | 值可空,游戏版本,默认值为 23000 |
URL 参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| collection_type | string | 收藏品类型,值为 trophy、character、plate 或 icon |
| collection_id | int | 收藏品 ID |
响应体
游戏资源
基础 URL:https://assets2.lxns.net/chunithm
路径:
- 角色:/character/{character_id}.png
- 称号(仅图片):/trophy/{trophy_id}.png
- 名牌版:/plate/{plate_id}.png
- 地图头像:/icon/{map_icon_id}.png
- 曲绘:/jacket/{song_id}.png
- 音频:/music/{song_id}.mp3
提示
注意
结构体
Player
玩家
| 字段名 | 类型 | 说明 |
|---|---|---|
| name | string | 游戏内名称 |
| level | int | 玩家等级,最大值为 99 |
| rating | float | 玩家 Rating |
| rating_possession | string | 玩家 Rating 领域颜色 |
| friend_code | int | 好友码 |
| class_emblem | ClassEmblem | CLASS 勋章 |
| reborn_count | int | 玩家等级突破次数 |
| over_power | float | 总 OVER POWER |
| over_power_progress | float | OVER POWER 总进度 |
| currency | int | 当前金币数 |
| total_currency | int | 总金币数 |
| total_play_count | int | 总游玩次数 |
| trophy | Trophy | 仅上传时可空,称号 |
| character | Character | 值可空,角色 |
| name_plate | NamePlate | 值可空,名牌版 |
| map_icon | MapIcon | 值可空,地图头像 |
| upload_time | string | 仅获取玩家信息返回,玩家被同步时的 UTC 时间 |
ClassEmblem
CLASS 勋章
| 字段名 | 类型 | 说明 |
|---|---|---|
| base | int | 缎带(通关该组别全部课题组),默认值为 0 |
| medal | int | 勋章(通关任意一组),默认值为 0 |
Score
游玩成绩
| 字段名 | 类型 | 说明 |
|---|---|---|
| id | int | 曲目 ID |
| song_name | string | 仅获取 Score 时返回,曲名 |
| level | string | 仅获取 Score 时返回,难度标级,如 14+ |
| level_index | LevelIndex | 难度 |
| score | int | 分数 |
| rating | float | 仅获取 Score 时返回,Rating |
| over_power | float | 仅获取 Score 时返回,OVER POWER |
| clear | ClearType | CLEAR 类型 |
| full_combo | FullComboType | 值可空,FULL COMBO 类型 |
| full_chain | FullChainType | 值可空,FULL CHAIN 类型 |
| rank | RankType | 仅获取 Score 时返回,评级类型 |
| play_time | string | 值可空,游玩的 UTC 时间,精确到分钟 |
| upload_time | string | 仅获取 Score 时返回,成绩被同步时的 UTC 时间 |
| last_played_time | string | 仅获取成绩列表、获取最佳成绩时返回,谱面最后游玩的 UTC 时间 |
SimpleScore
游玩成绩(简化)
| 字段名 | 类型 | 说明 |
|---|---|---|
| id | int | 曲目 ID |
| song_name | string | 曲名 |
| level | string | 难度标级,如 14+ |
| level_index | LevelIndex | 难度 |
| clear | ClearType | CLEAR 类型 |
| full_combo | FullComboType | 值可空,FULL COMBO 类型 |
| full_chain | FullChainType | 值可空,FULL CHAIN 类型 |
| rank | RankType | 评级类型 |
RatingTrend
Rating 趋势
| 字段名 | 类型 | 说明 |
|---|---|---|
| rating | float | 总平均 Rating |
| bests_rating | float | Best 30 平均 Rating |
| selections_rating | float | Selection 10 平均 Rating |
| recents_rating | float | 中二节奏 2026 及以后可空,Recent 10(MAX)平均 Rating |
| new_bests_rating | float | 中二节奏 2026 前可空,Best 20(新曲)平均 Rating |
| date | string | 日期 |
提示
Song
曲目
| 字段名 | 类型 | 说明 |
|---|---|---|
| id | int | 曲目 ID |
| title | string | 曲名 |
| artist | string | 艺术家 |
| genre | string | 曲目分类 |
| bpm | int | 曲目 BPM |
| map | string | 值可空,曲目所属地图 |
| version | int | 曲目首次出现版本 |
| rights | string | 值可空,曲目版权信息 |
| locked | bool | 值可空,是否需要解锁,默认值为 false |
| disabled | bool | 值可空,是否被禁用,默认值为 false |
| difficulties | SongDifficulty[] | 谱面难度 |
提示
SongDifficulty
谱面难度
| 字段名 | 类型 | 说明 |
|---|---|---|
| difficulty | LevelIndex | 难度 |
| level | string | 难度标级 |
| level_value | float | 谱面定数 |
| note_designer | string | 谱师 |
| version | int | 谱面首次出现版本 |
| notes | Notes | 值可空,谱面物量 |
| origin_id | int | 仅 WORLD'S END 难度,原曲 ID |
| kanji | string | 仅 WORLD'S END 难度,谱面属性 |
| star | int | 仅 WORLD'S END 难度,谱面星级 |
Notes
谱面物量
| 字段名 | 类型 | 说明 |
|---|---|---|
| total | int | 总物量 |
| tap | int | TAP 物量 |
| hold | int | HOLD 物量 |
| slide | int | SLIDE 物量 |
| air | int | AIR 物量 |
| flick | int | FLICK 物量 |
Genre
乐曲分类
| 字段名 | 类型 | 说明 |
|---|---|---|
| id | int | 内部 ID |
| genre | string | 分类标题 |
Version
曲目版本
| 字段名 | 类型 | 说明 |
|---|---|---|
| id | int | 内部 ID |
| title | string | 版本标题 |
| version | int | 主要版本 ID |
Alias
曲目别名
| 字段名 | 类型 | 说明 |
|---|---|---|
| song_id | int | 曲目 ID |
| aliases | string[] | 曲目所有别名 |
Collection
收藏品
| 字段名 | 类型 | 说明 |
|---|---|---|
| id | int | 收藏品 ID |
| name | string | 收藏品名称 |
| color | TrophyColor | 值可空,仅玩家称号,称号颜色 |
| level | int | 值可空,仅玩家角色,角色等级 |
| required | CollectionRequired[] | 值可空,收藏品要求 |
注意
CollectionRequired
收藏品要求
| 字段名 | 类型 | 说明 |
|---|---|---|
| difficulties | LevelIndex[] | 值可空,要求的谱面难度,长度为 0 时代表任意难度 |
| rank | RankType | 值可空,要求的评级类型 |
| full_combo | FullComboType | 值可空,要求的 FULL COMBO 类型 |
| full_chain | FullChainType | 值可空,要求的 FULL CHAIN 类型 |
| songs | CollectionRequiredSong[] | 值可空,要求的曲目列表 |
| completed | bool | 值可空,要求是否全部完成 |
CollectionRequiredSong
收藏品要求曲目
| 字段名 | 类型 | 说明 |
|---|---|---|
| id | int | 曲目 ID |
| title | string | 曲名 |
| type | SongType | 谱面类型 |
| completed | bool | 值可空,要求的曲目是否完成 |
| completed_difficulties | LevelIndex[] | 值可空,已完成的难度 |
枚举类型
LevelIndex
难度
| 值 | 类型 | 说明 |
|---|---|---|
| 0 | int | BASIC |
| 1 | int | ADVANCED |
| 2 | int | EXPERT |
| 3 | int | MASTER |
| 4 | int | ULTIMA |
| 5 | int | WORLD'S END |
ClearType
CLEAR 类型
| 值 | 类型 | 说明 |
|---|---|---|
| catastrophy | string | CATASTROPHY |
| absolute | string | ABSOLUTE |
| brave | string | BRAVE |
| hard | string | HARD |
| clear | string | CLEAR |
| failed | string | FAILED |
FullComboType
FULL COMBO 类型
| 值 | 类型 | 说明 |
|---|---|---|
| alljusticecritical | string | AJC |
| alljustice | string | ALL JUSTICE |
| fullcombo | string | FULL COMBO |
FullChainType
FULL CHAIN 类型
| 值 | 类型 | 说明 |
|---|---|---|
| fullchain | string | 铂 FULL CHAIN |
| fullchain2 | string | 金 FULL CHAIN |
RankType
评级类型
| 值 | 类型 | 说明 |
|---|---|---|
| sssp | string | SSS+ |
| sss | string | SSS |
| ssp | string | SS+ |
| ss | string | SS |
| sp | string | S+ |
| s | string | S |
| aaa | string | AAA |
| aa | string | AA |
| a | string | A |
| bbb | string | BBB |
| bb | string | BB |
| b | string | B |
| c | string | C |
| d | string | D |
TrophyColor
| 值 | 类型 | 说明 |
|---|---|---|
| normal | string | 普通 |
| copper | string | 铜(已弃用,仅作保留) |
| silver | string | 银 |
| gold | string | 金 |
| platinum | string | 铂金 |
| rainbow | string | 虹 |
| image | string | 图片,目前仅版本制霸称号 |