一起开发 开发者文档

开放接口

用 HTTP 读取 CDCat 收录的专辑、艺术家、活动、条目和系列资料。不需要注册,也不需要密钥;资料库数据以 CC BY-SA 4.0 共享。

测试版 更新于

基础地址https://api.cdcat.net/v1

概览

开放接口让其他网站和应用读取 CDCat 的音乐资料。接口只读,不需要注册或密钥。

基础地址

所有接口都在这个地址下面,本页写的路径都省略了它:

https://api.cdcat.net/v1

请求用 GET,返回 JSON。例如读取一张专辑:

GET https://api.cdcat.net/v1/albums/1287

这份文档包括什么

  • 专辑与曲目、歌词、艺术家、活动、条目、系列和搜索,以及取值表。
  • 接口还在测试阶段:正式上线前字段可能调整。变化后不再另外通知,以最新版本的文档为准。
  • 提交和修改资料的接口文档目前还未完成。

不需要密钥

这些接口都不需要登录,也没有 API 密钥。其他网站的网页可以直接跨域调用:CORS 允许任何来源,请求不带 Cookie。

使用规则

资料可以自由复用,只要署名并遵守授权协议。也请控制请求频率,不要给服务器添负担。

不在授权范围内的内容

歌词、封面和其他图片归各自的权利人所有,只能作资料参考和辨识之用,CC BY-SA 不适用于它们。评价、讨论和文章归作者所有,不属于资料库数据,这份文档也不介绍它们的接口。

请求礼仪

  • 控制频率,不要同时发出大量请求。具体的上限见频率限制。
  • 在 User-Agent 里写明你的应用名称和联系方式,例如 MyLyricsApp/1.2 (https://example.com; me@example.com),出了问题我们能找到你。
  • 能缓存的就缓存,同一份资料不需要每次都重新请求。
  • API 域名的 robots.txt 是为了不让搜索引擎收录接口。按本文档调用接口,不受它限制。

其他要求见用户协议的合理使用服务。

反馈

发现文档和接口对不上、想要新的接口,或者遇到了问题,可以在 GitHub 上提 issue,或者写信到 support@cdcat.net。

通用约定

每个接口都遵守的规则:响应格式、分页、参数写法、名称和日期,以及审核中和被合并的内容。

响应格式

成功时 success 为 true,内容放在 data 里;失败时 success 为 false,原因放在 error 里,见错误。

{ "success": true, "data": { … } }

分页

列表接口用 page(从 1 开始)和 per_page 分页,data 里有列表本身和 Pagination。每个接口的默认条数和上限写在它的参数里,超出上限会返回 422。

参数写法

  • 布尔值写 true / false,也可以写 1 / 0。
  • 数组写成 names[]=a&names[]=b。
  • 排序用 sort(按什么排)和 direction(asc 升序,desc 降序)。专辑列表的 sort 是几种固定的排法,没有 direction。
  • 不认识的参数值返回 422,不会悄悄换成默认值。文档里没写的参数会被忽略。
  • ID 都是数字。slug 只用于展示,不能用来查找。

名称与翻译

接口不按语言返回不同的内容。title 或 name 是原名,即包装上印的名字;其他名称在 titles 里,见 Title。要按读者的语言显示名称,建议依次取:该语言的 official、该语言的 translation、原名。

列表里的专辑(AlbumSimple)没有 titles,只能显示原名;需要译名时,请求专辑详情。活动和活动系列的 description 是按语言分开的对象,例如 { "ja": "…", "en": "…" }。

日期与时间

  • 日期写成 YYYY-MM-DD。发行日期带 release_date_precision:只知道年份或月份时,精度是 year 或 month,日期记为当年或当月的 1 号。显示时请按精度省略。
  • 时间是 UTC 的 ISO 8601,不带小数秒,例如 2026-10-30T08:00:00Z。
  • 活动的 start_time 和 end_time 是会场当地的时间 HH:MM,不带时区。

图片

图片地址都是完整的 URL。专辑的图片(Image)同时给出原图 url、长边最多 600px 的 thumbnail_url 和最多 1200px 的 medium_url。请直接用这些地址,不要自己拼。条目、系列和活动的图片可能放在其他网站上。

审核中的内容

成员新建的专辑、艺术家、条目和系列,提交后立即上线,同时等待审核,这时 is_pending 为 true。这四种内容的列表默认不包括它们,传 include_pending=true 才会列出;详情和其他接口照常返回。没有通过审核的内容会被删除,之后再请求会得到 404。

成人内容

is_adult 只是标记,接口不会替你过滤。如果你的应用面向所有年龄,请自己过滤。

合并与删除

重复的专辑、曲目和艺术家会被合并。请求被合并掉的 ID 时,/albums/{id}、/tracks/{id}、/artists/{id} 和 /artists/{id}/card 返回 301:Location 指向保留下来的那一个,data.moved_to 写明类型和新的 ID。

{ "success": true, "data": { "moved_to": { "resource_type": "album", "id": 1290 } } }

其他接口遇到被合并或删除的 ID,返回 404。

缓存

/catalog/schema、会场图和摊位列表的响应带 ETag。下次请求时带上 If-None-Match,内容没变就返回 304,不用再下载一遍。

频率限制

不需要登录的读取接口共用一个频率限制,搜索另有自己的限制。

请求 每分钟上限 按什么计数
不带登录令牌 120 次 IP 地址;IPv6 按 /64 网段算一个
带有效的登录令牌 300 次 账号
/search 另有 60 次 账号或 IP,和上面分开计数

每个响应都带两个头:X-RateLimit-Limit 是每分钟的上限,X-RateLimit-Remaining 是这一分钟还剩多少次。超过上限时返回 429:

{
  "success": false,
  "error": {
    "code": 50000,
    "name": "RATE_LIMIT_EXCEEDED",
    "message": "Too Many Attempts.",
    "details": { "retry_after": 42 }
  }
}

details.retry_after 和响应头 Retry-After 都是需要等待的秒数,X-RateLimit-Reset 是可以重试的时刻(Unix 时间戳)。收到 429 后,请等 Retry-After 秒再试,不要马上重试。

跨域请求也能读到这些头。上限以后可能调整,请按响应头判断,不要写死在代码里。

错误

出错时,HTTP 状态码说明是哪一类问题。error.name 是稳定的错误名,请用它来判断。

出错时返回的对象,字段见 Error:

{
  "success": false,
  "error": {
    "code": 40000,
    "name": "VALIDATION_FAILED",
    "message": "The given data failed validation",
    "details": { "per_page": ["The per page field must not be greater than 100."] }
  }
}

message 是英文,只用于调试,以后可能改变。details 只在参数错误和超过频率限制时出现。

HTTP error.name 什么时候
404 RESOURCE_NOT_FOUND 地址没错,但内容不存在或已被删除
404 NOT_FOUND 地址不对:路径不存在,或者 ID 不是数字
405 METHOD_NOT_ALLOWED 用了 GET 以外的请求方法
422 VALIDATION_FAILED 参数不合法,details 按参数名列出原因
429 RATE_LIMIT_EXCEEDED 请求太频繁,见频率限制
500 INTERNAL_ERROR 服务器出错。请稍后重试,一直出错请告诉我们

另外,被合并的专辑、曲目和艺术家返回 301(见合并与删除),带 ETag 的接口可能返回 304。

专辑与曲目

专辑是收录曲目的发行单位。限定盘和通常盘是同一张专辑的不同版本(Product);黑胶等曲目表不同的发行另建一张专辑。列表返回精简的 AlbumSimple,详情还带碟片、曲目、制作人员、版本和图片。

GET/albums

专辑列表

按条件筛选专辑,分页返回。审核中的专辑默认不在列表里。

查询参数

pageinteger
页码,从 1 开始。默认 1
per_pageinteger
每页条数。超出范围返回 422。默认 401–100
typestring
专辑类型。取值见 album_type
categorystring
专辑类别,比如 doujin、game。取值见 album_category
formatstring
碟片介质,比如 cd、vinyl。取值见 disc_format
artist_idinteger
只列出这位艺术家参与的专辑,担任什么角色都算。
release_event_idinteger
只列出在这一届活动首发的专辑。
yearinteger
发行年份。1900–2100
attributes[key]string
按属性筛选,最多 5 个,例如 attributes[cover_character]=射命丸文。指向条目等内容的属性写成 entry:12。只能筛选文字、网址、选项和引用类型的属性。
include_pendingboolean
也列出审核中的内容(已上线、等待审核)。默认 false
sortstring
new 按发行日期从新到旧,added 按加入数据库的时间从新到旧,trending 按最近 30 天的热度,top_rated 按评分排名(每天更新一次)。默认 newnewaddedtrendingtop_rated
searchstring
搜索标题、其他名称、品番、条码和署名。去掉空格后至少 2 个字符,含汉字或假名时 1 个就够,最多 3 个词。没传 sort 时按相关度排序。≤ 100

返回的 data

albumsAlbumSimple[]
这一页的专辑。
paginationPagination
分页信息,见 Pagination。

状态码

  • 422VALIDATION_FAILED参数不合法,details 按参数名列出原因。
列表里没有译名

AlbumSimple 没有 titles,只能显示原名。要按读者的语言显示译名,请求专辑详情。

示例

GEThttps://api.cdcat.net/v1/albums?category=doujin&per_page=2
{
"success": true,
"data": {
"albums": [
{
"id": 1287,
"title": "星屑のアトラス",
"slug": "hoshikuzu-no-atlas",
"type": "album",
"categories": ["doujin"],
"release_date": "2026-10-25",
"release_date_precision": "day",
"catalog_number": "STNT-0012",
"image_url": "https://img.cdcat.net/images/3f/a1/3fa1c29e5b0d_1200.webp",
"disc_count": 1,
"track_count": 12,
"duration": 3412,
"disc_formats": ["cd"],
"is_adult": false,
"favorites_count": 18,
"reviews_count": 3,
"views_count": 402,
"is_favorited": false,
"is_pending": false,
"byline": {
"role": "publisher",
"artists": [
{ "id": 352, "name": "ステラノート" }
]
}
},
… 另 1 项
],
"pagination": {
"total": 2381,
"per_page": 2,
"current_page": 1,
"last_page": 1191
}
}
}
GET/albums/{id}

专辑详情

一张专辑的全部资料:碟片和曲目、制作人员、发行版本、特典、图片、外部链接、关联的条目和统计。

路径参数

idinteger必填
专辑 ID。

返回的 data

data 是一个 Album。

状态码

  • 301这个 ID 已经合并到另一个,Location 和 data.moved_to 给出新的 ID。
  • 404RESOURCE_NOT_FOUND内容不存在或已被删除。
  • 每次请求会记一次浏览(同一来源每天只记一次),views_count 每 5 分钟更新。
  • 署名与发行(发行、厂牌、艺术家等)也在 credits 里,category 为 release。

示例

GEThttps://api.cdcat.net/v1/albums/1287
{
"success": true,
"data": {
"id": 1287,
"title": "星屑のアトラス",
"slug": "hoshikuzu-no-atlas",
"type": "album",
"categories": ["doujin"],
"release_date": "2026-10-25",
"release_date_precision": "day",
"catalog_number": "STNT-0012",
"image_url": "https://img.cdcat.net/images/3f/a1/3fa1c29e5b0d_1200.webp",
"disc_count": 1,
"track_count": 12,
"duration": 3412,
"disc_formats": ["cd"],
"is_adult": false,
"favorites_count": 18,
"reviews_count": 3,
"views_count": 402,
"is_favorited": false,
"is_pending": false,
"byline": {
"role": "publisher",
"artists": [
{ "id": 352, "name": "ステラノート" }
]
},
"titles": [
{
"title": "Atlas of Stardust",
"locale": "en",
"kind": "official"
},
{
"title": "Hoshikuzu no Atlas",
"locale": "ja-Latn",
"kind": "transliteration"
}
],
"description": "秋のM3で頒布するオリジナルアルバム。",
"banner_url": null,
"release_event": {
"id": 58,
"name": "M3-2026秋",
"slug": "M3-58",
"main_visual_url": null,
"start_date": "2026-10-25"
},
"cover": {
"id": 8801,
"url": "https://img.cdcat.net/images/3f/a1/3fa1c29e5b0d.webp",
"thumbnail_url": "https://img.cdcat.net/images/3f/a1/3fa1c29e5b0d_300.webp",
"medium_url": "https://img.cdcat.net/images/3f/a1/3fa1c29e5b0d_1200.webp",
"width": 1600,
"height": 1600,
"mime": "image/webp"
},
"discs": [
{
"id": 2210,
"position": 1,
"title": null,
"titles": [],
"format": "cd",
"bonus_id": null,
"tocs": [
{
"id": 418,
"first_track": 1,
"last_track": 12,
"data_track": null,
"leadout_offset": 219521,
"offsets": [
150,
7200,
… 另 10 项
],
"source": "eac",
"cdcat_id": "CDCAT1-ZX8Q-8MGS-W6KN-TFK3",
"freedb_id": "A20B6C0C",
"mb_discid": "69NlS0CkCP9JOwZiBxgpOWqDB7o-",
"accuraterip_id": "012-00147428-00c30a14-a20b6c0c",
"ctdb_id": "H9Tm5u2dMB4t6JwO6Op8lhJWuGQ-"
}
],
"tracks": [
{
"id": 5120,
"disc_number": 1,
"track_number": 1,
"number_label": null,
"title": "プロローグ",
"titles": [
{
"title": "Prologue",
"locale": "en",
"kind": "official"
}
],
"duration": 94,
"is_instrumental": true,
"isrc": null,
"favorites_count": 2,
"is_favorited": false,
"has_lyrics": false,
"lyrics_count": 0,
"translations_count": 0,
"originals": [],
"credits": [],
"attributes": []
},
… 另 11 项
]
}
],
"tracklist_languages": [
{
"locale": "en",
"kind": "official",
"count": 12,
"total": 12
}
],
"credits": [
{
"id": 9001,
"role": "publisher",
"role_label": null,
"join_phrase": null,
"category": "release",
"artist": {
"id": 352,
"name": "ステラノート",
"image_url": null,
"type": "circle"
},
"credited_as": null,
"parent_id": null,
"detail": null
},
{
"id": 9002,
"role": "composer",
"role_label": null,
"join_phrase": null,
"category": "composition",
"artist": {
"id": 1404,
"name": "雨宮ルカ",
"image_url": null,
"type": "person"
},
"credited_as": null,
"parent_id": null,
"detail": null
},
… 另 4 项
],
"products": [
{
"id": 3101,
"name": "通常盤",
"edition_type": "regular",
"limited_rule": null,
"limited_name": null,
"medium": "physical",
"catalog_number": "STNT-0012",
"barcode": null,
"release_date": null,
"release_date_precision": "day",
"region": "JP",
"prices": [
{
"kind": "event",
"note": null,
"amount": "1500.00",
"currency": "JPY",
"tax_included": true
}
],
"note": null,
"is_hires": false,
"is_available": true,
"sort_order": 0,
"disc_ids": [2210],
"format_label": "CD"
}
],
"bonuses": [],
"images": [
… 字段见 AlbumImage
],
"attributes": [],
"links": [
… 字段见 Link
],
"streaming": [],
"entries": [],
"franchises": [],
"tracking_stats": {
"plan_to_listen": 12,
"completed": 30,
"wishlist": 4,
"owned": 9,
"dropped": 0
},
"rating": 4.33,
"rating_count": 3,
"rating_distribution": [0, 0, 0, 2, 1],
"ranking": 214,
"share_card_url": "https://img.cdcat.net/share-cards/albums/1287.jpg?v=1761400000",
"articles": [],
"contributors": [
{
"username": "mio",
"nickname": "澪",
"avatar_url": "https://img.cdcat.net/avatars/mio.webp"
}
],
"user_tracking": null,
"version": 4,
"edited_at": "2026-10-28T09:12:44Z",
"pending_revision": null,
"created_at": "2026-10-20T11:03:12Z",
"updated_at": "2026-10-30T02:15:09Z"
}
}
GET/tracks/{id}

曲目详情

一个曲目,带它所在的专辑、同一张专辑的曲目表、原曲和改编自它的曲目。

路径参数

idinteger必填
曲目 ID。

返回的 data

data 是一个 Track。

状态码

  • 301这个 ID 已经合并到另一个,Location 和 data.moved_to 给出新的 ID。
  • 404RESOURCE_NOT_FOUND内容不存在或已被删除。

示例

GEThttps://api.cdcat.net/v1/tracks/5121
{
"success": true,
"data": {
"id": 5121,
"album_id": 1287,
"disc_id": 2210,
"disc_number": 1,
"track_number": 2,
"number_label": null,
"title": "星屑の地図",
"titles": [
{
"title": "Map of Stardust",
"locale": "en",
"kind": "official"
}
],
"duration": 268,
"is_instrumental": false,
"isrc": null,
"has_lyrics": true,
"lyrics_count": 2,
"translations_count": 1,
"favorites_count": 5,
"is_favorited": false,
"is_pending": false,
"originals": [],
"derived_tracks": [],
"album": { … 字段见 AlbumSimple },
"album_tracks": [
{
"id": 5120,
"disc_number": 1,
"track_number": 1,
"number_label": null,
"title": "プロローグ",
"titles": [],
"duration": 94,
"has_lyrics": false
},
… 另 11 项
],
"credits": [
{
"id": 9010,
"role": "vocals",
"role_label": null,
"join_phrase": null,
"detail": null,
"credited_as": null,
"parent_id": null,
"artist": { "id": 1405, "name": "朝凪ひより" }
},
… 另 2 项
],
"attributes": [],
"created_at": "2026-10-20T11:03:12Z",
"updated_at": "2026-10-28T09:12:44Z"
}
}
对象

AlbumSimple

专辑(精简)

列表、搜索、艺术家和条目页面里用的精简专辑。没有 titles,只能显示原名。

idinteger
专辑 ID。网页地址是 https://cdcat.net/albums/{id}。
titlestring
原名,即包装上印的名字。
slugstring | null
地址别名,只用于展示,不能用来查找。
typestring
专辑类型。取值见 album_type
categoriesstring[]
专辑类别,可以有几个;空数组表示作曲家作品集,不属于任何作品企划。取值见 album_category
release_datedate
发行日期。
release_date_precisionstring
日期的精度。只知道年份或月份时,日期记为当年或当月的 1 号,请按精度显示。取值见 date_precision
catalog_numberstring | null
品番,取第一个有品番的版本;可以是范围,例如 KECH-8059~62。
image_urlurl | null
封面,长边最多 600px;少数旧封面最多 1200px。
disc_countinteger
碟数:第一个版本里的碟片,不含特典碟。
track_countinteger
这些碟片上的曲目数。
durationinteger
这些曲目的总时长(秒),不知道时长的曲目不算。
disc_formatsstring[]
这些碟片的介质,去掉重复。取值见 disc_format
is_adultboolean
成人向标记。
favorites_countinteger
收藏数。
reviews_countinteger
评价数。
views_countinteger
浏览数,每 5 分钟更新一次。
is_favoritedboolean
当前用户是否收藏了它。只在网站登录时有意义,其他请求总是 false。
is_pendingboolean
是否审核中:提交后已经上线,正在等待审核。
bylineByline | null
标题下面那一行署名:有发行方时是全部发行方,否则是艺术家;都没有时为 null。
对象

Album

专辑

专辑详情。

包含 AlbumSimple 的全部字段,另外还有:

titlesTitle[]
原名以外的其他名称:官方译名、翻译、读音、别名等,见 Title。
descriptionstring | null
简介。
banner_urlurl | null
专辑页的横幅图:主横幅(images 里 is_primary 的 banner)的原图地址;没有时为 null。
release_eventobject | null
首发活动。
idinteger
活动 ID。
namestring
活动名称。
slugstring
活动的地址别名。
main_visual_urlurl | null
活动的主视觉。
start_datedate
活动开始的日期。
coverImage | null
主封面(images 里 is_primary 的 cover),有原图和两种缩略图的地址。
discsDisc[]
碟片,按顺序排列,每张带它的曲目。
tracklist_languagesobject[]
曲目表有哪些语言的名称,以及每种语言有名称的曲目数。
localestring
语言(BCP 47)。
kindstring
名称的种类:official、translation 或 transliteration。取值见 title_kind
countinteger
这种语言有名称的曲目数。
totalinteger
曲目总数。
creditsCredit[]
整张专辑的制作人员,包括「署名与发行」组(category 为 release)。
productsProduct[]
发行版本,例如初回限定盘和通常盘。
bonusesBonus[]
特典,例如店铺特典和会场特典。
imagesAlbumImage[]
专辑图片:封面、背面、歌词本、碟面等。
attributesAttribute[]
附加信息,例如封面角色。
linksLink[]
外部链接,已按顺序排好,见 Link。
streamingLink[]
流媒体链接,和其他链接分开。
entriesobject[]
关联的条目(原作)。
idinteger
条目 ID。
namestring
条目名称(原名)。
slugstring | null
地址别名,只用于展示,不能用来查找。
typestring
条目类型。取值见 entry_type
formatstring | null
条目的子类型。
image_urlurl | null
条目的图片。
release_datedate | null
条目的发行日期。
relation_typestring
专辑和条目的关系,例如原声带、片头曲。取值见 entry_album_relation
notestring | null
关系的补充说明。
franchisesobject[]
条目所属的系列。
idinteger
系列 ID。
namestring
系列名称(原名)。
slugstring | null
地址别名,只用于展示,不能用来查找。
parent_idinteger | null
父系列 ID,顶层系列为 null。
franchisesobject[]
直接属于整个系列的专辑才有,例如周年合集。
idinteger
系列 ID。
namestring
系列名称(原名)。
slugstring | null
地址别名,只用于展示,不能用来查找。
image_urlurl | null
系列的图片。
tracking_statsobject
用户标记的收听状态人数。
plan_to_listeninteger
想听。
completedinteger
听过。
wishlistinteger
想要。
ownedinteger
已入手。
droppedinteger
不感兴趣。
ratingnumber | null
平均评分,1 到 5,两位小数;没有人评分时为 null。
rating_countinteger
评分人数。
rating_distributioninteger[] | null
1 到 5 分各有多少人,没有人评分时为 null。
rankinginteger | null
评分排名,每天更新一次;还没有人评分时为 null。
share_card_urlurl | null
分享卡片(1200×630 的 JPEG)的地址;还没生成时为 null。
articlesobject[]
介绍这张专辑的文章,最多 5 篇。
idinteger
文章 ID。
titlestring
文章标题。
cover_urlurl | null
文章的封面图。
published_atdatetime
发表时间(UTC)。
contributorsobject[]
编辑过这张专辑的用户,每天更新一次。
usernamestring
用户名。
nicknamestring
昵称。
avatar_urlurl
头像。
user_trackingobject | null
当前用户标记的收听状态。只在网站登录时有意义,其他请求总是 null。
statusstring
状态:plan_to_listen、completed、wishlist、owned 或 dropped。
created_atdatetime
创建时间(UTC)。
updated_atdatetime
最后更新时间(UTC)。浏览数之类的统计变化也会更新它。
versioninteger
当前版本号,每次修改后加一。
edited_atdatetime | null
当前版本的修改时间(UTC)。和 updated_at 不同,浏览数之类的变化不影响它。
pending_revisionobject | null
等待审核的那次提交。只有提交人和审核者看得到,其他人总是 null。
created_atdatetime
创建时间(UTC)。
updated_atdatetime
最后更新时间(UTC)。浏览数之类的统计变化也会更新它。
对象

Disc

碟片

专辑里的一张碟:CD、BD、黑胶或配信等。

idinteger
碟片在本站的 ID;抓轨软件用的 Disc ID 在 tocs 里。
positioninteger
第几张,从 1 开始。
titlestring | null
碟名,例如「DISC 2 Instrumental」;没有时为 null。
titlesTitle[]
原名以外的其他名称:官方译名、翻译、读音、别名等,见 Title。
formatstring
介质。取值见 disc_format
bonus_idinteger | null
特典附带的碟片才有,指向那个特典。
tocsDiscToc[]
CD 的 TOC,每个压片一份,按 id 排列;其他碟为空数组。
tracksAlbumTrack[]
这张碟上的曲目,按曲号排列。
对象

DiscToc

CD 的 TOC

抓轨软件读出的一份 CD 目录,以及由它算出的 Disc ID。扇区数都含 150 扇区的引导区,和 MusicBrainz 的写法相同。

idinteger
TOC ID。
first_trackinteger
首轨号。
last_trackinteger
末轨号。
data_trackinteger | null
数据轨的轨号:增强 CD 是最后一轨,混合模式 CD 是第一轨;全是音频轨时为 null。
leadout_offsetinteger
整张碟的 lead-out 扇区。
offsetsinteger[]
每一轨(含数据轨)的起始扇区,从首轨到末轨。
sourcestring
来源:eac、xld、cueripper、manual 或 import。
cdcat_idstring
CDCat Disc ID,如 CDCAT1-ZX8Q-8MGS-W6KN-TFK3:只看音频轨的长度,同一母带的压片相同。
freedb_idstring
freedb(CDDB)ID,8 位大写十六进制,数据轨也算在内。
mb_discidstring
MusicBrainz Disc ID,只算第一个 session。
accuraterip_idstring
AccurateRip ID,写成 nnn-id1-id2-freedb,全小写;CUETools 的日志里只印后三段。
ctdb_idstring
CUETools 数据库(CTDB)的 TOC ID。
对象

AlbumTrack

专辑里的曲目

专辑详情里的曲目,带它自己的制作人员和原曲。

idinteger
曲目 ID。
disc_numberinteger
第几张碟。
track_numberinteger
曲号,在同一张碟里唯一。
number_labelstring | null
显示用的编号,和曲号不同时才有,例如黑胶的 A1。
titlestring
曲名,即包装上印的名字。
titlesTitle[]
原名以外的其他名称:官方译名、翻译、读音、别名等,见 Title。
durationinteger | null
时长(秒),不知道时为 null。
is_instrumentalboolean
是否是纯音乐。
isrcstring | null
国际标准录音代码。
favorites_countinteger
收藏数。
is_favoritedboolean
当前用户是否收藏了它。只在网站登录时有意义,其他请求总是 false。
has_lyricsboolean
是否有原文歌词。
lyrics_countinteger
歌词的份数,包括翻译。
translations_countinteger
其中翻译的份数。
originalsOriginal[]
原曲:这个曲目改编、翻唱或混音自哪首曲子。
creditsCredit[]
这个曲目的制作人员。
attributesAttribute[]
附加信息,例如 BPM。
对象

Track

曲目

曲目详情。

idinteger
曲目 ID。
album_idinteger
所在专辑的 ID。
disc_idinteger
所在碟片的 ID。
disc_numberinteger
第几张碟。
track_numberinteger
曲号。
number_labelstring | null
显示用的编号,例如黑胶的 A1。
titlestring
曲名(原名)。
titlesTitle[]
原名以外的其他名称:官方译名、翻译、读音、别名等,见 Title。
durationinteger | null
时长(秒),不知道时为 null。
is_instrumentalboolean
是否是纯音乐。
isrcstring | null
国际标准录音代码。
has_lyricsboolean
是否有原文歌词。
lyrics_countinteger
歌词的份数,包括翻译。
translations_countinteger
其中翻译的份数。
favorites_countinteger
收藏数。
is_favoritedboolean
当前用户是否收藏了它。只在网站登录时有意义,其他请求总是 false。
is_pendingboolean
是否审核中:提交后已经上线,正在等待审核。
originalsOriginal[]
原曲。
derived_tracksobject[]
把这个曲目当作原曲的曲目,例如它的改编和翻唱。
idinteger
曲目 ID。
titlestring
曲名(原名)。
albumAlbumSimple
那个曲目所在的专辑。
albumAlbumSimple
所在的专辑。
album_tracksobject[]
同一张专辑的全部曲目,按碟片和曲号排序,方便做上一首、下一首。
idinteger
曲目 ID。
disc_numberinteger
第几张碟。
track_numberinteger
曲号。
number_labelstring | null
显示用的编号。
titlestring
曲名(原名)。
titlesTitle[]
原名以外的其他名称:官方译名、翻译、读音、别名等,见 Title。
durationinteger | null
时长(秒)。
has_lyricsboolean
是否有原文歌词。
creditsobject[]
这个曲目的制作人员。
idinteger
ID。
rolestring
角色的 key,名称见 /catalog/schema 的 credit_roles。
role_labelstring | null
印刷的具体职务,显示时替代角色名;没有时为 null。
join_phrasestring | null
曲目上艺术家名字前面印的词,把它和排在前面的艺术家连成一行,例如 awfuless meets PODA。两人都还是艺术家。不翻译;没有时为 null。
detailstring | null
备注:给读者看的补充说明,页面上在 i 图标的提示里显示。
credited_asstring | null
署名,和艺术家名不同时才有。
parent_idinteger | null
这条 credit 所属的、同一曲目上那条 credit 的 ID,例如客串所属的艺术家;没有时为 null。
artistobject | null
艺术家;只知道署名、还没有对应的艺术家时为 null。
idinteger
艺术家 ID。
namestring
艺术家名称(原名)。
attributesAttribute[]
附加信息。
created_atdatetime
创建时间(UTC)。
updated_atdatetime
最后更新时间(UTC)。浏览数之类的统计变化也会更新它。
对象

Credit

制作人员

某位艺术家在专辑或曲目上的一个角色。同一个人担任几个角色就有几条。

idinteger
ID。
rolestring
角色的 key,例如 composer;名称见 /catalog/schema 的 credit_roles。「署名与发行」组的 6 个角色见 release_role。
role_labelstring | null
印刷的具体职务,例如 Graphic Designer,显示时替代角色名。不翻译;没有时为 null。
join_phrasestring | null
曲目上艺术家名字前面印的词,把它和排在前面的艺术家连成一行,例如 awfuless meets PODA。两人都还是艺术家。不翻译;没有时为 null。
categorystring | null
角色的分类。取值见 credit_role_category
artistobject | null
艺术家;只知道署名、还没有对应的艺术家时为 null。
idinteger
艺术家 ID。
namestring
艺术家名称(原名)。
image_urlurl | null
头像。
typestring
艺术家类型。取值见 artist_type
credited_asstring | null
署名,即专辑上印的名字;和艺术家名不同时才有。
parent_idinteger | null
这条 credit 所属的那条 credit 的 ID,在同一曲目上(或者都在整张专辑上)。曲目上的客串(featuring)一定有,指向它跟着的那位(「Xeudo Code & Xeno feat. eili」里是 Xeno);其他角色也可以有。有所属的 credit 不会再被别的 credit 所属。没有时为 null。
detailstring | null
备注:给读者看的补充说明,页面上在 i 图标的提示里显示。
对象

Product

发行版本

能买到的一个版本,例如初回限定盘、通常盘、配信版,各自勾选包含哪些碟片。

idinteger
版本 ID。
namestring
版本名,例如「初回限定盤」。
edition_typestring
通常版还是限定版。取值见 edition_type
limited_rulestring | null
限定的方式,只有限定版才有。取值见 limited_rule
limited_namestring | null
限定版的名称。
mediumstring
实体还是数字版。取值见 product_medium
catalog_numberstring | null
品番。
barcodestring | null
条码(JAN / EAN / UPC)。
release_datedate | null
这个版本的发行日期;为 null 时和专辑相同。
release_date_precisionstring
日期的精度。只知道年份或月份时,日期记为当年或当月的 1 号,请按精度显示。取值见 date_precision
regionstring | null
发行地区,ISO 3166-1 的两位代码,例如 JP。
pricesobject[]
这个版本的价格,按顺序:定价、会场价、通贩价等。
kindstring
价格种类。取值见 price_kind
notestring | null
备注,例如活动或店铺。
amountstring
金额,写成字符串,例如 "3300.00"。
currencystring
货币,ISO 4217 代码,例如 JPY。
tax_includedboolean | null
true 含税,false 不含税,null 未注明。
notestring | null
这个版本的备注,例如再版说明或和初版的差异,可能有多行。
is_hiresboolean
是否是高解析度音源。
is_availableboolean
是否仍在销售。
sort_orderinteger
显示顺序。
disc_idsinteger[]
这个版本包含的碟片 ID。
format_labelstring
显示用的规格,例如 2CD+BD,配信版是 DL。
对象

Bonus

特典

店铺特典、会场特典、初回特典等。特典 CD 是 bonus_id 指向这个特典的碟片。

idinteger
特典 ID。
namestring
特典名称。
typestring
特典的类型。取值见 bonus_type
descriptionstring | null
说明。
is_digitalboolean
是否是电子特典。
shopstring | null
店铺名,例如「とらのあな」。
availabilitystring | null
获得方式。取值见 limited_rule
notestring | null
条件,例如「購入者全員」「抽選」。
sort_orderinteger
显示顺序。
eventobject | null
会场特典对应的活动。
idinteger
活动 ID。
namestring
活动名称。
slugstring
活动的地址别名。
product_idsinteger[]
跟哪些版本送;空数组表示所有版本都送。
disc_idsinteger[]
这个特典附带的碟片。
对象

AlbumImage

专辑图片

一张图片在专辑里的用途:封面、背面、歌词本的某一页等。

idinteger
ID。
kindstring
图片的类别。取值见 image_kind
labelstring | null
补充说明,例如歌词本的页码「p. 01-02」。
captionstring | null
图片说明。
product_idinteger | null
只属于某个版本时才有。
bonus_idinteger | null
只属于某个特典时才有。
disc_idinteger | null
只属于某张碟时才有。
is_primaryboolean
是不是主封面或主横幅。每张专辑恰好一张主封面,至多一张主横幅,都不属于某个版本、特典或碟片。
sort_orderinteger
显示顺序。
imageImage
图片文件。
attributesAttribute[]
附加信息,例如封面角色。
对象

Original

原曲

曲目改编、翻唱或混音自哪首曲子:库里的另一个曲目,或者只有一段文字。

titlestring
原曲的曲名。指向库里的曲目时是那个曲目的曲名。
trackobject | null
原曲是库里的曲目时才有,否则为 null。
idinteger
原曲的曲目 ID。
albumobject
原曲所在的专辑。
idinteger
专辑 ID。
titlestring
专辑名(原名)。

歌词

歌词挂在曲目上:每个曲目最多一份原文,另外可以有翻译和音译。歌词归权利人所有,不适用 CC BY-SA,只能作资料参考和辨识之用。

GET/tracks/{id}/lyrics

曲目的歌词

一个曲目的全部歌词(原文、翻译、音译),只有概要,不含正文。按 ID 排序,不分页。

路径参数

idinteger必填
曲目 ID。

返回的 data

lyricsLyricSummary[]
这个曲目的歌词,见 LyricSummary。

状态码

  • 404RESOURCE_NOT_FOUND内容不存在或已被删除。

示例

GEThttps://api.cdcat.net/v1/tracks/5121/lyrics
{
"success": true,
"data": {
"lyrics": [
{
"id": 902,
"track_id": 5121,
"kind": "original",
"language": "ja",
"translation_of_id": null,
"format": "lrc",
"translator": null,
"is_ai_generated": false,
"creator": {
"id": 77,
"username": "mio",
"nickname": "澪",
"avatar_url": "https://img.cdcat.net/avatars/mio.webp"
},
"version": 2,
"updated_at": "2026-10-27T13:40:02Z"
},
{
"id": 903,
"track_id": 5121,
"kind": "translation",
"language": "zh-Hans",
"translation_of_id": 902,
"format": "lrc",
"translator": "澪",
"is_ai_generated": false,
"creator": { … },
"version": 1,
"updated_at": "2026-10-28T01:02:33Z"
}
]
}
}
GET/lyrics/{id}

歌词

一份歌词的正文和来源。

路径参数

idinteger必填
歌词 ID。

返回的 data

data 是一个 Lyric。

状态码

  • 404RESOURCE_NOT_FOUND内容不存在或已被删除。
歌词的权利

歌词归权利人所有,不适用 CC BY-SA,只能作资料参考和辨识之用,见使用规则。

示例

GEThttps://api.cdcat.net/v1/lyrics/902
{
"success": true,
"data": {
"id": 902,
"track_id": 5121,
"kind": "original",
"language": "ja",
"translation_of_id": null,
"format": "lrc",
"translator": null,
"is_ai_generated": false,
"creator": {
"id": 77,
"username": "mio",
"nickname": "澪",
"avatar_url": "https://img.cdcat.net/avatars/mio.webp"
},
"version": 2,
"updated_at": "2026-10-27T13:40:02Z",
"content": "[00:12.40]夜を渡る 星屑の地図\n[00:18.05]まだ名前のない場所へ",
"source": "歌詞カード",
"track": {
"id": 5121,
"title": "星屑の地図",
"track_number": 2,
"disc_number": 1,
"album": { … 字段见 AlbumSimple }
},
"created_at": "2026-10-26T08:20:00Z"
}
}
对象

LyricSummary

歌词(概要)

一份歌词的概要,不含正文。

idinteger
歌词 ID。
track_idinteger
曲目 ID。
kindstring
原文、翻译还是音译。取值见 lyric_kind
languagestring
语言(BCP 47),例如 ja、zh-Hans、ja-Latn;art 为造语。
translation_of_idinteger | null
翻译和音译才有:对应的原文歌词 ID,可以逐行对照。
formatstring
正文的格式。取值见 lyric_format
translatorstring | null
译者的署名。
is_ai_generatedboolean
是否是机器翻译。
creatorobject | null
最早提交这份歌词的用户;账号删除后为 null。
idinteger
用户 ID。
usernamestring
用户名。
nicknamestring
昵称。
avatar_urlurl
头像。
versioninteger
当前版本号,每次修改后加一。
updated_atdatetime
最后更新时间(UTC)。浏览数之类的统计变化也会更新它。
对象

Lyric

歌词

一份完整的歌词。

包含 LyricSummary 的全部字段,另外还有:

contentstring
正文。格式为 lrc 和 srt 时带时间轴。
sourcestring | null
来源,例如「歌詞カード」。
trackobject
所在的曲目。
idinteger
曲目 ID。
titlestring
曲名(原名)。
track_numberinteger
曲号。
disc_numberinteger
第几张碟。
albumAlbumSimple
所在的专辑。
created_atdatetime
创建时间(UTC)。

艺术家

艺术家包括个人、团体、同人社团、公司、虚拟歌手和角色。唱片公司、厂牌和发行商也是艺术家(类型 company),没有单独的厂牌。

GET/artists

艺术家列表

按条件筛选艺术家,分页返回,新加入的在前。审核中的艺术家默认不在列表里。

查询参数

pageinteger
页码,从 1 开始。默认 1
per_pageinteger
每页条数。超出范围返回 422。默认 151–100
typestring
艺术家类型。取值见 artist_type
searchstring
按名称、其他名称和地址别名搜索,包含即可。搜索时按匹配程度排序。≤ 100
has_albumsboolean
只列出有专辑的艺术家。默认 false
include_pendingboolean
也列出审核中的内容(已上线、等待审核)。默认 false

返回的 data

artistsArtist[]
这一页的艺术家,不含详情才有的字段。
paginationPagination
分页信息,见 Pagination。
pending_matchesinteger
搜索没有结果时,匹配的审核中艺术家数量;其他情况为 0。

状态码

  • 422VALIDATION_FAILED参数不合法,details 按参数名列出原因。

示例

GEThttps://api.cdcat.net/v1/artists?type=circle&has_albums=true&per_page=1
{
"success": true,
"data": {
"artists": [
{
"id": 352,
"name": "ステラノート",
"slug": null,
"type": "circle",
"is_active": true,
"bio": "2019年から活動している同人音楽サークル。",
"image_url": null,
"followers_count": 41,
"albums_count": 7,
"catalog_prefixes": ["STNT"],
"shouts_count": 2,
"version": 3,
"is_pending": false,
"pending_revision": null,
"created_at": "2026-10-18T06:00:00Z",
"updated_at": "2026-10-29T10:40:21Z"
}
],
"pagination": {
"total": 1830,
"per_page": 1,
"current_page": 1,
"last_page": 1830
},
"pending_matches": 0
}
}
GET/artists/{id}

艺术家详情

一位艺术家的资料,带其他名称、外部链接、属性和相关的艺术家。

路径参数

idinteger必填
艺术家 ID。

返回的 data

data 是一个 Artist。

状态码

  • 301这个 ID 已经合并到另一个,Location 和 data.moved_to 给出新的 ID。
  • 404RESOURCE_NOT_FOUND内容不存在或已被删除。

示例

GEThttps://api.cdcat.net/v1/artists/352
{
"success": true,
"data": {
"id": 352,
"name": "ステラノート",
"slug": null,
"type": "circle",
"is_active": true,
"bio": "2019年から活動している同人音楽サークル。",
"image_url": null,
"followers_count": 41,
"albums_count": 7,
"releases_count": 6,
"credited_albums_count": 2,
"catalog_prefixes": ["STNT"],
"shouts_count": 2,
"titles": [
{
"title": "Stella Note",
"locale": "en",
"kind": "official"
}
],
"links": [
{
"id": 610,
"url": "https://x.com/stellanote",
"label": null,
"external_id": null,
"is_verified": true,
"provider": {
"id": 7,
"key": "twitter",
"name": "X (Twitter)",
"icon_url": null,
"category": "social"
}
}
],
"attributes": [],
"images": [
… 字段见 ArtistImage
],
"relations": [
{
"artist": {
"id": 1404,
"name": "雨宮ルカ",
"image_url": null,
"type": "person"
},
"relation_type": "has_member",
"ended": false,
"note": null
}
],
"share_card_url": "https://img.cdcat.net/share-cards/artists/0/352.jpg?v=1761400000",
"version": 3,
"is_pending": false,
"pending_revision": null,
"created_at": "2026-10-18T06:00:00Z",
"updated_at": "2026-10-29T10:40:21Z"
}
}
GET/artists/{id}/albums

艺术家发行的专辑

这位艺术家在整张专辑上担任「署名与发行」角色(艺术家、发行、厂牌、经销、制造、企划)的专辑,按发行日期从新到旧。包括审核中的专辑。

路径参数

idinteger必填
艺术家 ID。

查询参数

pageinteger
页码,从 1 开始。默认 1
per_pageinteger
每页条数。超出范围返回 422。默认 241–100

返回的 data

albumsAlbumSimple[]
这一页的专辑。
paginationPagination
分页信息,见 Pagination。

状态码

  • 404RESOURCE_NOT_FOUND内容不存在或已被删除。

示例

GEThttps://api.cdcat.net/v1/artists/352/albums?per_page=1
{
"success": true,
"data": {
"albums": [
… 字段见 AlbumSimple
],
"pagination": {
"total": 6,
"per_page": 1,
"current_page": 1,
"last_page": 6
}
}
}
GET/artists/{id}/tracks

艺术家参与的曲目

这位艺术家参与的专辑:曲目上的任何角色,以及整张专辑上「署名与发行」以外的角色。按专辑分组,列出整张专辑上的角色和参与的曲目。

路径参数

idinteger必填
艺术家 ID。

查询参数

pageinteger
页码,从 1 开始。默认 1
per_pageinteger
每页条数。超出范围返回 422。默认 101–50
rolestring
只看这个角色,例如 composer。角色的 key 见 /catalog/schema 的 credit_roles。

返回的 data

albumsobject[]
这一页的专辑,每张一组。分页按专辑计算。
albumAlbumSimple
专辑。
rolesobject[]
在整张专辑上担任的角色。
rolestring
角色的 key。
role_labelstring | null
印刷的具体职务,显示时替代角色名;没有时为 null。
credited_asstring | null
署名,和艺术家名不同时才有。
detailstring | null
备注:给读者看的补充说明,页面上在 i 图标的提示里显示。
tracksobject[]
参与的曲目,按碟片和曲号排序。
idinteger
曲目 ID。
titlestring
曲名(原名)。
disc_positioninteger
第几张碟。
track_numberinteger
曲号。
number_labelstring | null
显示用的编号,例如黑胶的 A1。
rolesobject[]
在这个曲目上担任的角色,格式同 albums.roles。
paginationPagination
分页信息,见 Pagination。
rolesobject
每个角色参与过的专辑数,例如 { "composer": 4 }。不受 role 参数影响。
allinteger
参与过的专辑总数。

状态码

  • 404RESOURCE_NOT_FOUND内容不存在或已被删除。

示例

GEThttps://api.cdcat.net/v1/artists/1404/tracks?per_page=1
{
"success": true,
"data": {
"albums": [
{
"album": { … 字段见 AlbumSimple },
"roles": [],
"tracks": [
{
"id": 5121,
"title": "星屑の地図",
"disc_position": 1,
"track_number": 2,
"number_label": null,
"roles": [
{
"role": "composer",
"role_label": null,
"credited_as": null,
"detail": null
},
{
"role": "arranger",
"role_label": null,
"credited_as": null,
"detail": null
}
]
},
… 另 3 项
]
}
],
"pagination": {
"total": 4,
"per_page": 1,
"current_page": 1,
"last_page": 4
},
"roles": { "composer": 4, "arranger": 3, "lyricist": 1 },
"all": 4
}
}
GET/artists/{id}/card

艺术家卡片

一位艺术家的简要资料,适合做悬浮卡片:最多 4 个其他名称,简介截取前 160 个字。

路径参数

idinteger必填
艺术家 ID。

返回的 data

idinteger
艺术家 ID。
namestring
名称(原名)。
typestring
艺术家类型。取值见 artist_type
image_urlurl | null
头像。
is_activeboolean
是否仍在活动;个人去世、团体解散后为 false。
is_pendingboolean
是否审核中:提交后已经上线,正在等待审核。
titlesTitle[]
原名以外的其他名称:官方译名、翻译、读音、别名等,见 Title。
biostring | null
简介的开头,最多 160 个字,原样截取,可能带 Markdown 记号。
albums_countinteger
参与的专辑数。
followers_countinteger
收藏这位艺术家的人数。
releases_countinteger
「发行的专辑」的数量,见艺术家发行的专辑。
credited_albums_countinteger
「参与的专辑」的数量,见艺术家参与的曲目。

状态码

  • 301这个 ID 已经合并到另一个,Location 和 data.moved_to 给出新的 ID。
  • 404RESOURCE_NOT_FOUND内容不存在或已被删除。

示例

GEThttps://api.cdcat.net/v1/artists/352/card
{
"success": true,
"data": {
"id": 352,
"name": "ステラノート",
"type": "circle",
"image_url": null,
"is_active": true,
"is_pending": false,
"titles": [
{
"title": "Stella Note",
"locale": "en",
"kind": "official"
}
],
"bio": "2019年から活動している同人音楽サークル。",
"albums_count": 7,
"followers_count": 41,
"releases_count": 6,
"credited_albums_count": 2
}
}
GET/artists/lookup

按名称查找艺术家

用名字精确查找艺术家,一次最多 100 个,适合把制作人员表里的名字对应到艺术家。比较前会统一全角半角、大小写、假名和简繁日汉字。

查询参数

names[]string[]必填
要查找的名字,每个最多 200 个字符。1–100

返回的 data

matchesobject
按你传入的名字分组的结果。
<name>object[]
和这个名字完全一致的艺术家,可能有几位同名的,也可能没有(空数组)。比较主名称、官方译名、翻译、读音和别名,不比较简称。
idinteger
艺术家 ID。
namestring
名称(原名)。
typestring
艺术家类型。取值见 artist_type
image_urlurl | null
头像。
is_pendingboolean
是否审核中:提交后已经上线,正在等待审核。

状态码

  • 422VALIDATION_FAILED参数不合法,details 按参数名列出原因。

示例

GEThttps://api.cdcat.net/v1/artists/lookup?names[]=ステラノート&names[]=Ruka Amamiya&names[]=nobody
{
"success": true,
"data": {
"matches": {
"ステラノート": [
{
"id": 352,
"name": "ステラノート",
"type": "circle",
"image_url": null,
"is_pending": false
}
],
"Ruka Amamiya": [
{
"id": 1404,
"name": "雨宮ルカ",
"type": "person",
"image_url": null,
"is_pending": false
}
],
"nobody": []
}
}
}
对象

Artist

艺术家

列表和详情都用这个对象。标着「有时不出现」的字段只在详情里返回。

idinteger
艺术家 ID。网页地址是 https://cdcat.net/artists/{id}。
namestring
主名称,一般是原名。
slugstring | null
地址别名,只用于展示,不能用来查找。
typestring
艺术家类型。取值见 artist_type
is_activeboolean
是否仍在活动;个人去世、团体解散后为 false。
biostring | null
简介,Markdown。
image_urlurl | null
头像:主头像(images 里 is_primary 的 avatar)的 300 px 缩略图;没有时为 null。
followers_countinteger
收藏这位艺术家的人数。
albums_countinteger
参与的专辑数,担任什么角色都算。
releases_countinteger
「发行的专辑」的数量,见艺术家发行的专辑。有时不出现
credited_albums_countinteger
「参与的专辑」的数量,见艺术家参与的曲目。有时不出现
catalog_prefixesstring[]
品番前缀,例如 ["LACA"];公司和兼做厂牌的社团才有。
shouts_countinteger
艺术家页上的留言数。
titlesTitle[]
原名以外的其他名称:官方译名、翻译、读音、别名等,见 Title。有时不出现
linksLink[]
外部链接,已按顺序排好,见 Link。有时不出现
attributesAttribute[]
附加信息。有时不出现
imagesArtistImage[]
头像、横幅和其他图片,按显示顺序。有时不出现
relationsobject[]
相关的艺术家,从这位艺术家的角度描述。有时不出现
artistobject
对方。
idinteger
艺术家 ID。
namestring
名称(原名)。
image_urlurl | null
头像。
typestring
艺术家类型。取值见 artist_type
relation_typestring
关系,例如 has_member 表示对方是这个团体的成员。取值见 artist_relation
endedboolean
关系是否已结束:前成员、之前的声优。只有成员和声优的关系会是 true。
notestring | null
补充说明。
share_card_urlurl | null
分享卡片(1200×630 的 JPEG)的地址;还没生成时为 null。有时不出现
is_favoritedboolean
当前用户是否收藏了它。只在网站登录时有意义,其他请求总是 false。有时不出现
versioninteger
当前版本号,每次修改后加一。
is_pendingboolean
是否审核中:提交后已经上线,正在等待审核。
pending_revisionobject | null
等待审核的那次提交。只有提交人和审核者看得到,其他人总是 null。
created_atdatetime
创建时间(UTC)。
updated_atdatetime
最后更新时间(UTC)。浏览数之类的统计变化也会更新它。
对象

ArtistImage

艺术家图片

一张图片在艺术家页上的用途:头像、横幅、照片等。头像和横幅可以有多张,各有至多一张主图(is_primary)。

idinteger
ID。
kindstring
图片的类别。取值见 artist_image_kind
labelstring | null
补充说明,例如年份「2024」或活动「C105」。
captionstring | null
图片说明。
is_primaryboolean
是不是主头像或主横幅,各至多一张。
sort_orderinteger
显示顺序。
imageImage
图片文件。

活动

活动系列(如 M3、Comic Market)下面是每一届活动。会场图和摊位来自主办方公开的资料,按原样保存。

GET/event-series

活动系列列表

全部活动系列,按名称排序,不分页。

返回的 data

event_seriesEventSeries[]
活动系列,带 latest_start_date。

示例

GEThttps://api.cdcat.net/v1/event-series
{
"success": true,
"data": {
"event_series": [
{
"id": 1,
"name": "M3",
"slug": "m3",
"location": "東京",
"description": {
"ja": "音系・メディアミックス同人即売会。",
"zh-Hans": "以音乐为主的同人即卖会。",
"en": "A doujin market for music and media."
},
"website": "https://www.m3net.jp",
"banner_url": null,
"visual_orientation": "portrait",
"events_count": 58,
"latest_start_date": "2026-10-25"
},
… 另 3 项
]
}
}
GET/event-series/{id}

活动系列详情

一个活动系列。系列下的各届活动用 活动列表 的 series_id 分页获取。

路径参数

idinteger必填
活动系列 ID。

返回的 data

data 是一个 EventSeries。

状态码

  • 404RESOURCE_NOT_FOUND内容不存在或已被删除。

示例

GEThttps://api.cdcat.net/v1/event-series/1
{
"success": true,
"data": {
"id": 1,
"name": "M3",
"slug": "m3",
"location": "東京",
"description": { … },
"website": "https://www.m3net.jp",
"banner_url": null,
"visual_orientation": "portrait",
"events_count": 58
}
}
GET/events

活动列表

按条件筛选各届活动,分页返回,默认最近的在前。

查询参数

pageinteger
页码,从 1 开始。默认 1
per_pageinteger
每页条数。超出范围返回 422。默认 151–100
series_idinteger
只列出这个活动系列的活动。
searchstring
按名称和地址别名搜索:去掉空格后 2 到 100 个字符,最多 3 个词,每个词都要匹配。2–100
start_fromdate
开始日期不早于这一天(YYYY-MM-DD)。
start_todate
开始日期不晚于这一天(YYYY-MM-DD)。
sortstring
start_date 按开始日期,released_albums_count 按首发专辑数。默认 start_datestart_datereleased_albums_count
directionstring
排列方向:asc 从小到大,desc 从大到小。默认 descascdesc

返回的 data

eventsEvent[]
这一页的活动,不含详情才有的字段。
paginationPagination
分页信息,见 Pagination。

状态码

  • 422VALIDATION_FAILED参数不合法,details 按参数名列出原因。

示例

GEThttps://api.cdcat.net/v1/events?series_id=1&per_page=1
{
"success": true,
"data": {
"events": [
{
"id": 58,
"event_series_id": 1,
"series": {
"id": 1,
"name": "M3",
"slug": "m3",
"website": "https://www.m3net.jp",
"visual_orientation": "portrait"
},
"name": "M3-2026秋",
"slug": "M3-58",
"start_date": "2026-10-25",
"end_date": null,
"start_time": "10:30",
"end_time": "15:30",
"venue": "東京流通センター",
"location": "東京",
"website_url": null,
"description": null,
"main_visual_url": null,
"main_visual_width": null,
"main_visual_height": null,
"key_visuals": null,
"meta": null,
"albums_count": 0,
"artists_count": 0,
"released_albums_count": 214,
"booths_count": 1520,
"created_at": "2026-10-10T00:00:00Z",
"updated_at": "2026-10-26T03:00:00Z"
}
],
"pagination": {
"total": 58,
"per_page": 1,
"current_page": 1,
"last_page": 58
}
}
}
GET/events/{id}

活动详情

一届活动,比列表多出摊位数、有没有会场图和分享卡片。

路径参数

idinteger必填
活动 ID。

返回的 data

data 是一个 Event。

状态码

  • 404RESOURCE_NOT_FOUND内容不存在或已被删除。

示例

GEThttps://api.cdcat.net/v1/events/58
{
"success": true,
"data": {
"id": 58,
"name": "M3-2026秋",
"start_date": "2026-10-25",
… 字段见 Event
"booths_count": 1520,
"has_map": true,
"share_card_url": null
}
}
GET/events/{id}/map

会场图

一届活动的会场平面图:展馆、每张桌子的位置和背景的形状,由主办方的平面图转换而来。

路径参数

idinteger必填
活动 ID。

返回的 data

data 是一个 EventMap。

状态码

  • 304带了 If-None-Match,内容没有变化。
  • 404RESOURCE_NOT_FOUND活动不存在,或者这一届还没有会场图(先看活动详情的 has_map)。

数据比较大,响应带 ETag 和 Cache-Control: public, max-age=60,请带 If-None-Match 重复请求。坐标的单位是平面图 PDF 的 pt,y 轴向下。

示例

GEThttps://api.cdcat.net/v1/events/58/map
{
"success": true,
"data": {
"width": 2384,
"height": 1684,
"background": [
{ "d": "M40 40H2344V1644H40Z", "s": 1 },
… 另 312 项
],
"labels": [
{
"text": "A",
"x": 120,
"y": 88,
"size": 24,
"kind": "area"
},
… 另 140 项
],
"halls": [
{
"id": 12,
"building": "第一展示場",
"floor": null,
"name": "第一展示場",
"bbox": [40, 40, 1150, 1604]
}
],
"spaces": [
[3301, 12, "A", "01", 96, 120, 18, 12],
… 另 1517 项
],
"genres": {
"201": { "label": "オリジナル", "group": "music" },
… 另 18 项
}
}
}
GET/events/{id}/booths

摊位

一届活动的全部摊位,按主办方列表的顺序,一次全部返回。摊位按主办方的资料原样保存,一个摊位可以关联零到多位艺术家。

路径参数

idinteger必填
活动 ID。

返回的 data

boothsEventBooth[]
全部摊位;还没有导入时为空数组。

状态码

  • 304带了 If-None-Match,内容没有变化。
  • 404RESOURCE_NOT_FOUND内容不存在或已被删除。

和会场图一样带 ETag 和 Cache-Control: public, max-age=60。摊位里的文字和 cut 图来自主办方,is_adult 只是标记。

示例

GEThttps://api.cdcat.net/v1/events/58/booths
{
"success": true,
"data": {
"booths": [
{
"id": 77012,
"space_id": 3301,
"space_code": "A-01a",
"area": "A",
"sub": "a",
"name": "ステラノート",
"name_kana": "すてらのーと",
"description": "新譜「星屑のアトラス」を頒布します。",
"genre": "201",
"keywords": ["オリジナル", "ボーカル"],
"links": [
{
"type": "website",
"url": "https://stellanote.example"
}
],
"twitter_handle": "stellanote",
"image_url": "https://img.cdcat.net/images/9c/04/9c04e1aa71f2.webp",
"embeds": [],
"is_adult": false,
"artists": [
{ "id": 352, "name": "ステラノート", "image_url": null }
],
"album_ids": [1287]
},
… 另 1519 项
]
}
}
对象

EventSeries

活动系列

例如 M3、Comic Market。

idinteger
活动系列 ID。网页地址是 https://cdcat.net/event-series/{id}。
namestring
名称。
slugstring
地址别名。
locationstring
举办的城市或地区。
descriptionobject | null
介绍,按语言分开的对象,例如 { "ja": "…", "en": "…" };不一定每种语言都有。
websiteurl | null
官网。
banner_urlurl | null
横幅图。
visual_orientationstring
各届主视觉的方向:竖版(场刊封面)或横版。portraitlandscape
events_countinteger
有多少届。
latest_start_datedate | null
最近一届的开始日期。只在列表里有。有时不出现
对象

Event

活动

一届活动。标着「有时不出现」的字段只在详情里返回。

idinteger
活动 ID。网页地址是 https://cdcat.net/events/{id}。
event_series_idinteger | null
所属的活动系列;独立举办的活动为 null。
seriesobject | null
所属的活动系列。
idinteger
活动系列 ID。
namestring
名称。
slugstring
地址别名。
websiteurl | null
官网。
visual_orientationstring
主视觉的方向。
namestring
名称,例如「M3-2026秋」。
slugstring
地址别名。
start_datedate
开始日期。
end_datedate | null
结束日期;只有一天时为 null。
start_timestring | null
开场时间 HH:MM,会场当地时间。
end_timestring | null
结束时间 HH:MM。
venuestring | null
会场。
locationstring | null
城市或地区。
website_urlurl | null
这一届自己的网站;系列的官网在 series.website。
descriptionobject | null
介绍,按语言分开的对象。
main_visual_urlurl | null
主视觉或场刊封面。
main_visual_widthinteger | null
主视觉的宽(像素)。
main_visual_heightinteger | null
主视觉的高(像素)。
key_visualsarray | null
其他视觉图,格式还没有确定,请不要依赖它。
metaobject | null
导入时写入的附加信息,例如摊位类别代码的名称;格式可能改变。
albums_countinteger
后台手填的发布专辑数,不自动更新;请用 released_albums_count。
artists_countinteger
后台手填的参展社团数,不自动更新。
released_albums_countinteger
在这一届首发的专辑数,实时统计,包括审核中的专辑。
booths_countinteger
摊位数,包括场外参加的。有时不出现
has_mapboolean
是否有会场图。有时不出现
share_card_urlurl | null
分享卡片(1200×630 的 JPEG)的地址;还没生成时为 null。有时不出现
created_atdatetime
创建时间(UTC)。
updated_atdatetime
最后更新时间(UTC)。浏览数之类的统计变化也会更新它。
对象

EventMap

会场图

一届活动的平面图。坐标的单位是平面图 PDF 的 pt,原点在左上角,y 轴向下。

widthnumber
整张图的宽。
heightnumber
整张图的高。
backgroundobject[]
墙、柱子、区域等背景形状,按绘制顺序排列。
dstring
SVG 的 path 数据。
snumber
明度,0 是墙,1 是地面。
einteger
为 1 时用 even-odd 填充规则。有时不出现
wnumber
描边宽度;没有时只填充。有时不出现
labelsobject[]
会场里的文字和区块字母。
textstring
文字。
xnumber
位置的 x。
ynumber
位置的 y。
sizenumber
字号。
rotatenumber
旋转角度(度)。有时不出现
verticalboolean
是否竖排。有时不出现
kindstring
为 area 时是区块字母(A、あ……)。有时不出现
hallsobject[]
展馆和楼层,按顺序排列。
idinteger
展馆 ID,即 spaces 里的 hall_id。
buildingstring
建筑,例如「第一展示場」。
floorstring | null
楼层,例如 2F。
namestring
显示用的名称。
bboxnumber[]
展馆在图上的范围 [x, y, w, h]。
spacesarray[]
一张桌子一项,写成数组 [id, hall_id, area, number, x, y, w, h]。摊位的 space_id 指向这里的 id。
genresobject
摊位类别代码的名称,例如 { "201": { "label": "オリジナル", "group": "music" } }。
对象

EventBooth

摊位

主办方列表里的一条参展信息,按原样保存:一个摊位可能是几个社团合办,名字里也可能带着读音或说明。

idinteger
摊位 ID。
space_idinteger | null
所在的桌子,即会场图 spaces 里的 id;场外参加的摊位为 null。
space_codestring | null
摊位号,例如 A-01a。
areastring | null
区块,例如 A。
substring | null
占桌子的哪一部分:a、b 是半张,ab 是整张,x、y、z 是迷你摊位的三分之一。ababxyz
namestring
摊位名,按主办方的原样。
name_kanastring | null
名称的读音。
descriptionstring | null
主办方列表里的说明。
genrestring | null
类别代码,名称见会场图的 genres。
keywordsstring[]
关键词。
linksobject[]
主办方列表里的链接。
typestring
链接的种类,例如 website。
urlurl
地址。
twitter_handlestring | null
X(Twitter)账号,小写,不带 @。
image_urlurl | null
cut 图,已经保存到本站。
embedsobject[]
嵌入的视频。
typestring
目前只有 youtube。
idstring
视频 ID。
is_adultboolean
成人向标记,接口不过滤。
artistsobject[]
关联的艺术家,可以有几位,也可以没有。
idinteger
艺术家 ID。
namestring
名称(原名)。
image_urlurl | null
头像。
album_idsinteger[]
这些艺术家在这一届首发的专辑 ID。

条目

条目是专辑关联的原作,比如动画、游戏、电影和书籍。专辑通过条目归入系列。

GET/entries

条目列表

按条件筛选条目,分页返回。审核中的条目默认不在列表里。

查询参数

pageinteger
页码,从 1 开始。默认 1
per_pageinteger
每页条数。超出范围返回 422。默认 151–100
typestring
条目类型。取值见 entry_type
formatstring
子类型,可选的值随类型不同,见 entry_type。
platformstring
游戏平台,完全一致才算,例如 Switch。
franchise_idinteger
只列出属于这个系列(包括它的子系列)的条目。
yearinteger
发行年份。
searchstring
按名称、其他名称(包括别名、简称)和地址别名搜索。没传 sort 时按相关度排序。≤ 255
include_pendingboolean
也列出审核中的内容(已上线、等待审核)。默认 false
sortstring
排序依据。默认 ididnamerelease_datecreated_atupdated_at
directionstring
排列方向:asc 从小到大,desc 从大到小。默认 descascdesc

返回的 data

entriesEntry[]
这一页的条目,不含详情才有的字段。
paginationPagination
分页信息,见 Pagination。

状态码

  • 422VALIDATION_FAILED参数不合法,details 按参数名列出原因。

示例

GEThttps://api.cdcat.net/v1/entries?type=game&sort=release_date&direction=desc&per_page=1
{
"success": true,
"data": {
"entries": [
{
"id": 240,
"name": "ステラ・クロニクル",
"slug": "stella-chronicle",
"type": "game",
"format": "full",
"platforms": ["Switch", "PC"],
"release_date": "2025-03-20",
"release_date_precision": "day",
"description": null,
"image_url": null,
"banner_url": null,
"titles": [
{
"title": "Stella Chronicle",
"locale": "en",
"kind": "official"
},
{
"title": "星界编年史",
"locale": "zh-Hans",
"kind": "translation"
}
],
"albums_count": 3,
"version": 2,
"is_pending": false,
"pending_revision": null,
"created_at": "2026-10-19T04:00:00Z",
"updated_at": "2026-10-27T08:30:00Z"
}
],
"pagination": {
"total": 412,
"per_page": 1,
"current_page": 1,
"last_page": 412
}
}
}
GET/entries/{id}

条目详情

一个条目,带外部链接、关联的专辑、所属的系列和相关的条目。

路径参数

idinteger必填
条目 ID。

返回的 data

data 是一个 Entry。

状态码

  • 404RESOURCE_NOT_FOUND内容不存在或已被删除。

示例

GEThttps://api.cdcat.net/v1/entries/240
{
"success": true,
"data": {
"id": 240,
"name": "ステラ・クロニクル",
"type": "game",
… 字段见 Entry
"links": [],
"albums": [
{
"id": 1301,
"title": "ステラ・クロニクル オリジナルサウンドトラック",
… 字段见 AlbumSimple
"relation_type": "ost",
"note": null
}
],
"franchises": [
{
"id": 31,
"name": "ステラ・クロニクル",
"slug": null,
"image_url": null,
"parent": null
}
],
"related_entries": [
{
"id": 241,
"name": "ステラ・クロニクル2",
"slug": null,
"type": "game",
"format": "full",
"image_url": null,
"release_date": "2027-01-01",
"release_date_precision": "year",
"relation_type": "sequel",
"note": null
}
]
}
}
对象

Entry

条目

列表和详情都用这个对象。标着「有时不出现」的字段只在详情里返回。

idinteger
条目 ID。网页地址是 https://cdcat.net/entries/{id}。
namestring
主名称,一般是原名。
slugstring | null
地址别名,只用于展示,不能用来查找。
typestring
条目类型。取值见 entry_type
formatstring | null
子类型,可选的值随类型不同,见 entry_type。
platformsstring[]
游戏平台,例如 ["Switch", "PC"];不是游戏时为空数组。
release_datedate | null
发行或首播日期。
release_date_precisionstring
日期的精度。只知道年份或月份时,日期记为当年或当月的 1 号,请按精度显示。取值见 date_precision
descriptionstring | null
简介,纯文本。
image_urlurl | null
图片,可能放在其他网站上。
banner_urlurl | null
横幅图。
titlesTitle[]
原名以外的其他名称:官方译名、翻译、读音、别名等,见 Title。
albums_countinteger
关联的专辑数,包括审核中的。
linksLink[]
外部链接,已按顺序排好,见 Link。有时不出现
albumsAlbumSimple[]
关联的专辑,按发行日期排序。有时不出现

包含 AlbumSimple 的全部字段,另外还有:

relation_typestring
专辑和条目的关系。取值见 entry_album_relation
notestring | null
关系的补充说明。
franchisesobject[]
所属的系列。有时不出现
idinteger
系列 ID。
namestring
系列名称(原名)。
slugstring | null
地址别名,只用于展示,不能用来查找。
image_urlurl | null
系列的图片。
parentobject | null
父系列;顶层系列为 null。
idinteger
父系列 ID。
namestring
父系列名称。
slugstring | null
地址别名,只用于展示,不能用来查找。
related_entriesobject[]
相关的条目,从这个条目的角度描述:sequel 表示对方是它的续作。有时不出现
idinteger
条目 ID。
namestring
名称(原名)。
slugstring | null
地址别名,只用于展示,不能用来查找。
typestring
条目类型。取值见 entry_type
formatstring | null
子类型。
image_urlurl | null
图片。
release_datedate | null
发行日期。
release_date_precisionstring
日期的精度。只知道年份或月份时,日期记为当年或当月的 1 号,请按精度显示。取值见 date_precision
relation_typestring
关系。取值见 entry_relation
notestring | null
补充说明。
sort_orderinteger
只在系列详情的条目里有:在系列里的顺序。有时不出现
versioninteger
当前版本号,每次修改后加一。
is_pendingboolean
是否审核中:提交后已经上线,正在等待审核。
pending_revisionobject | null
等待审核的那次提交。只有提交人和审核者看得到,其他人总是 null。
created_atdatetime
创建时间(UTC)。
updated_atdatetime
最后更新时间(UTC)。浏览数之类的统计变化也会更新它。

系列

系列把相关的条目组织在一起,最多两层:系列和子系列。它和活动系列(/event-series)是两回事。

GET/franchises

系列列表

按条件筛选系列,分页返回。默认只列顶层系列;搜索时包括子系列。审核中的系列默认不在列表里。

查询参数

pageinteger
页码,从 1 开始。默认 1
per_pageinteger
每页条数。超出范围返回 422。默认 151–100
searchstring
按名称、其他名称和地址别名搜索。没传 sort 时按相关度排序。≤ 255
parent_idinteger
只列出这个系列的子系列。
top_levelboolean
true 只列顶层系列,false 列出全部。没有 search 时默认 true,有 search 时默认 false;传了 parent_id 时不起作用。
include_pendingboolean
也列出审核中的内容(已上线、等待审核)。默认 false
sortstring
排序依据。条目数和专辑数包括子系列。默认 ididnameentries_countalbums_countcreated_atupdated_at
directionstring
排列方向:asc 从小到大,desc 从大到小。默认 descascdesc

返回的 data

franchisesFranchise[]
这一页的系列,不含详情才有的字段。
paginationPagination
分页信息,见 Pagination。

状态码

  • 422VALIDATION_FAILED参数不合法,details 按参数名列出原因。

示例

GEThttps://api.cdcat.net/v1/franchises?sort=albums_count&per_page=1
{
"success": true,
"data": {
"franchises": [
{
"id": 31,
"name": "ステラ・クロニクル",
"slug": null,
"parent_id": null,
"description": null,
"image_url": null,
"banner_url": null,
"sort_order": 0,
"entries_count": 2,
"albums_count": 5,
"children_count": 0,
"titles": [
{
"title": "Stella Chronicle",
"locale": "en",
"kind": "official"
}
],
"parent": null,
"version": 1,
"is_pending": false,
"pending_revision": null,
"created_at": "2026-10-19T04:10:00Z",
"updated_at": "2026-10-19T04:10:00Z"
}
],
"pagination": {
"total": 96,
"per_page": 1,
"current_page": 1,
"last_page": 96
}
}
}
GET/franchises/{id}

系列详情

一个系列,带它的子系列(以及子系列的条目)、直接属于它的条目,和属于整个系列的专辑。

路径参数

idinteger必填
系列 ID。

返回的 data

data 是一个 Franchise。

状态码

  • 404RESOURCE_NOT_FOUND内容不存在或已被删除。

示例

GEThttps://api.cdcat.net/v1/franchises/31
{
"success": true,
"data": {
"id": 31,
"name": "ステラ・クロニクル",
… 字段见 Franchise
"links": [],
"children": [],
"entries": [
{
"id": 240,
"name": "ステラ・クロニクル",
… 字段见 Entry
"sort_order": 0
},
… 另 1 项
],
"albums": [
{
"id": 1288,
"title": "ステラ・クロニクル 10th Anniversary Box",
… 字段见 AlbumSimple
"sort_order": 0
}
]
}
}
GET/franchises/{id}/albums

系列的专辑

系列和它的子系列下的全部专辑:经条目关联的专辑,加上属于整个系列的专辑,去掉重复后分页,按发行日期排序。

路径参数

idinteger必填
系列 ID。

查询参数

pageinteger
页码,从 1 开始。默认 1
per_pageinteger
每页条数。超出范围返回 422。默认 241–100
entry_idinteger
只看关联到这个条目的专辑。
relation_typestring
只看和系列里的条目是这种关系的专辑,例如 ost。传了它就不包括属于整个系列的专辑。取值见 entry_album_relation
sortstring
只能按发行日期。默认 release_daterelease_date
directionstring
排列方向:asc 从小到大,desc 从大到小。默认 descascdesc

返回的 data

albumsAlbumSimple[]
这一页的专辑。

包含 AlbumSimple 的全部字段,另外还有:

entriesobject[]
这张专辑关联的、属于这个系列的条目;属于整个系列的专辑为空数组。
idinteger
条目 ID。
namestring
条目名称(原名)。
typestring
条目类型。取值见 entry_type
relation_typestring
专辑和条目的关系。取值见 entry_album_relation
paginationPagination
分页信息,见 Pagination。

状态码

  • 404RESOURCE_NOT_FOUND内容不存在或已被删除。
  • 422VALIDATION_FAILED参数不合法,details 按参数名列出原因。

示例

GEThttps://api.cdcat.net/v1/franchises/31/albums?per_page=1
{
"success": true,
"data": {
"albums": [
{
"id": 1301,
"title": "ステラ・クロニクル オリジナルサウンドトラック",
… 字段见 AlbumSimple
"entries": [
{
"id": 240,
"name": "ステラ・クロニクル",
"type": "game",
"relation_type": "ost"
}
]
}
],
"pagination": {
"total": 5,
"per_page": 1,
"current_page": 1,
"last_page": 5
}
}
}
对象

Franchise

系列

列表和详情都用这个对象。标着「有时不出现」的字段只在详情里返回。统计都包括子系列。

idinteger
系列 ID。网页地址是 https://cdcat.net/franchises/{id}。
namestring
主名称,一般是原名。
slugstring | null
地址别名,只用于展示,不能用来查找。
parent_idinteger | null
父系列 ID;顶层系列为 null。
descriptionstring | null
简介,纯文本。
image_urlurl | null
图片,可能放在其他网站上。
banner_urlurl | null
横幅图。
sort_orderinteger
在父系列里的顺序。
entries_countinteger
条目数,包括子系列的,去掉重复。
albums_countinteger
专辑数:经条目关联的,加上属于整个系列的,去掉重复。
children_countinteger
子系列数。
titlesTitle[]
原名以外的其他名称:官方译名、翻译、读音、别名等,见 Title。
parentobject | null
父系列;顶层系列为 null。children 里的子系列没有这个字段。有时不出现
idinteger
父系列 ID。
namestring
父系列名称。
slugstring | null
地址别名,只用于展示,不能用来查找。
linksLink[]
外部链接,已按顺序排好,见 Link。有时不出现
childrenFranchise[]
子系列,带各自的统计、其他名称和条目,没有外部链接。有时不出现
entriesEntry[]
直接属于这个系列的条目,按顺序和发行日期排列,带 sort_order。有时不出现
albumsAlbumSimple[]
属于整个系列的专辑,例如周年合集。有时不出现

包含 AlbumSimple 的全部字段,另外还有:

sort_orderinteger
在系列里的顺序。
versioninteger
当前版本号,每次修改后加一。
is_pendingboolean
是否审核中:提交后已经上线,正在等待审核。
pending_revisionobject | null
等待审核的那次提交。只有提交人和审核者看得到,其他人总是 null。
created_atdatetime
创建时间(UTC)。
updated_atdatetime
最后更新时间(UTC)。浏览数之类的统计变化也会更新它。

字典与取值表

接口里的取值都是固定的英文小写。完整、最新的列表以 /catalog/schema 为准,这里说明各个值的含义。

GET/catalog/schema

目录字典

接口用到的全部取值表,以及后台维护的制作人员角色、属性定义和链接提供方,带四种语言的名称。

返回的 data

enumsobject
取值表,键是名称(如 album_type),值是全部取值。
credit_rolesobject[]
制作人员的角色,credits[].role 是这里的 key。
keystring
角色的 key,例如 composer。
categorystring
角色的分类。取值见 credit_role_category
namesobject
各语言的名称,例如 { "ja": "作曲", "en": "Composer" }。
aliasesstring[]
外站的常见写法,可以用来把其他网站的人员表对应过来。
is_album_roleboolean
能不能用于整张专辑。
is_track_roleboolean
能不能用于单个曲目。
attribute_definitionsobject[]
属性的定义:专辑、曲目、图片和艺术家可以带的附加信息,例如「封面角色」。
keystring
属性的 key,即 Attribute 的 key。
namesobject
各语言的名称。
descriptionobject | null
各语言的填写说明。
groupstring | null
分组,例如「东方 Project」。
value_typestring
值的类型。取值见 attribute_value_type
choicesarray | null
choice 类型的可选值。
reference_typesstring[] | null
reference 类型能指向哪些内容,例如 entry。
applies_tostring[]
能挂在哪些对象上:album、track、album_image、artist。
is_multipleboolean
能不能填多个值。
link_providersLinkProvider[]
链接提供方,和 链接提供方列表 相同。
aggregatesobject
编辑器用的数据结构说明,读取资料用不到。
limitsobject
上传图片的限制,读取资料用不到。

状态码

  • 304带了 If-None-Match,内容没有变化。

示例

GEThttps://api.cdcat.net/v1/catalog/schema
{
"success": true,
"data": {
"enums": {
"album_type": [
"album",
"ep",
"single",
"compilation",
"drama",
"radio"
],
… 另 19 项
},
"credit_roles": [
{
"key": "composer",
"category": "composition",
"names": {
"en": "Composer",
"ja": "作曲",
"zh-Hans": "作曲",
"zh-Hant": "作曲"
},
"aliases": ["Composer", "Music", "作曲"],
"is_album_role": true,
"is_track_role": true
},
… 另 48 项
],
"attribute_definitions": [
{
"key": "bpm",
"names": {
"en": "BPM",
"ja": "BPM",
"zh-Hans": "BPM",
"zh-Hant": "BPM"
},
"description": null,
"group": null,
"value_type": "integer",
"choices": null,
"reference_types": null,
"applies_to": ["track"],
"is_multiple": false
},
… 另 3 项
],
"link_providers": [
… 字段见 LinkProvider
],
"aggregates": { … },
"limits": { … }
}
}
取值表

album_type

专辑类型

专辑的形态,和 Spotify 的 album_type 类似。

album
专辑。
ep
EP、迷你专辑。
single
单曲。
compilation
合辑、精选集。
drama
广播剧、有声剧 CD。
radio
广播节目的 CD。
取值表

album_category

专辑类别

专辑的音乐来自哪里,可以有几个。空数组表示作曲家作品集,不属于任何作品企划。

game
游戏音乐,包括和游戏有关但不对应具体游戏的。
animation
动画音乐。
publication
漫画、轻小说等出版物。
audio_drama
广播剧、有声剧。
tokusatsu
特摄和人偶剧。
live_action
电影、电视剧、舞台剧。
doujin
同人社团或个人自主创作的音乐,原创和二次创作都算。
event
为活动制作的音乐,例如展会、演出和比赛的主题曲。
soundtrack
原声集:作品里实际使用的配乐和歌曲(OST),通常和游戏、动画等类别一起出现。
取值表

disc_format

碟片介质

HQCD、SHM-CD 这类细分记为 cd。

cd
CD。
sacd
SACD。
dvd
DVD。
bd
蓝光。
vinyl
黑胶。
cassette
磁带。
minidisc
MiniDisc(迷你光碟)。
usb
USB 存储设备。
digital
配信(数字版)。
other
其他。
取值表

date_precision

日期精度

日期精确到哪一级。

day
精确到日。
month
只知道年月,日期记为当月 1 号。
year
只知道年份,日期记为当年 1 月 1 日。
取值表

title_kind

名称的种类

其他名称(Title)是什么样的名称。

official
官方的其他语言名称,例如包装背面印的英文名。
translation
非官方的翻译。
transliteration
音译、罗马字、假名读音。
alias
别名、旧名。
abbreviation
简称。
取值表

artist_type

艺术家类型

艺术家是什么。

person
个人。
group
团体、乐队。
circle
同人社团。
company
公司:唱片公司、厂牌、发行商、制作公司、工作室。
virtual
虚拟歌手、VTuber。
character
演唱角色歌的角色。
取值表

artist_relation

艺术家关系

从当前这位艺术家的角度描述,两边各看到一种。

member_of
当前艺术家是对方的成员,小分队也算。
has_member
对方是当前团体的成员。
voice_of
当前艺术家为对方(角色)配音。
voiced_by
对方为当前角色配音。
alias
当前艺术家和对方是同一个人或团体的不同名义,两边都是这个值。
related
其他相关。
取值表

artist_image_kind

艺术家图片类别

图片在艺术家页上的用途。

avatar
头像,可以有多张;主头像(is_primary)正方形,image_url 是它的缩略图。
banner
横幅,可以有多张;主横幅(is_primary)是横图,显示在艺术家页顶部。
photo
照片。
illustration
立绘、插画,多见于虚拟歌手和角色。
other
其他。
取值表

credit_role_category

角色分类

制作人员角色的分组。具体的角色见 /catalog/schema 的 credit_roles。

release
署名与发行:艺术家、发行、厂牌等,见 release_role。
composition
作曲。
lyrics
作词。
arrangement
编曲、混音改编。
vocals
演唱、和声、配音。
performance
演奏、乐团、指挥。
production
制作人、监督。
engineering
录音、混音、母带。
artwork
插画、设计、摄影。
other
其他。
取值表

release_role

署名与发行

「署名与发行」组的 6 个角色,是 credits[].role 的一部分。专辑的署名(Byline)从这里算出。

artist
艺术家:封面或曲目上署名的艺术家。
publisher
发行(発売元),只用于整张专辑。
label
厂牌(レーベル),只用于整张专辑。
distributor
经销(販売元),只用于整张专辑。
manufacturer
制造(製造元),只用于整张专辑。
planning
企划(企画),只用于整张专辑。
取值表

edition_type

版本类型

通常版还是限定版。

regular
通常版。
limited
限定版,限定方式见 limited_rule。
取值表

limited_rule

限定方式

限定版和特典的获得条件。

first_press
初回限定。
count
数量限定。
period
期间限定。
shop
店铺限定。
event
会场限定。
region
地区限定。
取值表

price_kind

价格种类

是版本的哪一种价格。

list
定价。
event
活动会场的价格。
shop
店铺或通贩的价格。
other
其他价格。
取值表

product_medium

版本的形态

实体还是数字内容。

physical
实体。
digital
数字内容(配信、下载)。
取值表

bonus_type

特典类型

特典是什么。

bonus_track
附赠曲目。
bonus_disc
特典碟。
booklet
小册子。
photo_item
照片、卡片类。
goods
周边商品。
digital_content
电子内容。
serial_code
序列号。
event_entry
活动报名券。
signed_item
签名物品。
other
其他。
取值表

image_kind

图片类别

图片在专辑里的用途,参考 VGMdb 的分类。

cover
专辑封面,可以有多张;主封面(is_primary)每张专辑恰好一张,一般是正方形,也可能是别的形状(最长 2:1),用 width、height 判断。
banner
横幅,可以有多张;主横幅(is_primary)显示在专辑页顶部,至多一张。
front
正面。
back
背面。
booklet
歌词本,页码写在 label 里。
disc
碟面。
disc_back
碟背。
obi_front
侧标正面。
obi_back
侧标背面。
tray
托盘。
box
外盒。
sticker
贴纸。
bonus_item
特典物品。
illustration
插画。
oshinagaki
品书(お品書き):社团在展会前公布的新刊和价目一览。
other
其他。
取值表

lyric_kind

歌词种类

一份歌词是原文、翻译还是音译。

original
原文,每个曲目最多一份。
translation
翻译。
transliteration
音译、罗马字。
取值表

lyric_format

歌词格式

歌词正文的写法。

plain
纯文本。
lrc
LRC,带时间轴。
srt
SRT 字幕,带时间轴。
取值表

entry_type

条目类型

条目是什么作品。子类型 format 随类型不同:动画是 tv、movie、ova、web、special;游戏是 full、dlc、expansion;剧集是 series、special;书籍是 novel、light_novel、other;漫画是 serial、oneshot;舞台是 musical、play;电影和其他没有子类型。

anime
动画,包括动画电影。
game
游戏。
movie
真人电影。
tv
真人剧集。
book
书籍。
manga
漫画。
stage
舞台剧、音乐剧。
other
其他。
取值表

entry_relation

条目关系

从当前条目的角度描述,两边各看到一种。

sequel
对方是当前条目的续作。
prequel
对方是当前条目的前作。
side_story
对方是当前条目的外传。
main_story
对方是当前条目的本篇。
spin_off
对方是当前条目的衍生作品。
spin_off_of
当前条目衍生自对方。
adaptation
对方改编自当前条目。
source
对方是当前条目的原作。
remake
对方是当前条目的重制版。
remake_of
当前条目是对方的重制版。
alternative
另一个版本。
shared_world
同一个世界观。
related
其他相关。
取值表

entry_album_relation

专辑和条目的关系

一张专辑对某个条目来说是什么。

opening
片头曲。
ending
片尾曲。
insert_song
插曲。
theme_song
主题曲。
character_song
角色歌。
image_song
印象曲。
ost
原声带。
drama
广播剧。
other
其他。
fan_work
同人作品:这部作品的二次创作专辑,条目页排在官方专辑后面。
取值表

attribute_value_type

属性值的类型

属性定义的 value_type,决定 Attribute 的 value 是什么。

text
文字。
integer
整数。
decimal
小数,写成字符串。
date
日期,写成 { date, precision }。
url
网址。
boolean
是或否。
choice
从定义的 choices 里选一个。
reference
指向库里的内容,写成 { type, id }。

常用对象

在很多接口里都会出现的对象。

对象

Title

其他名称

原名以外的名称。official、translation、transliteration 每种语言最多一个,别名和简称不限。

titlestring
名称。
localestring | null
语言(BCP 47),例如 ja、zh-Hans、en;罗马字是 ja-Latn,假名读音是 ja-Hrkt。别名和简称可能为 null。
kindstring
名称的种类。取值见 title_kind
对象

Image

图片

上传到本站的图片。原图比缩略图还小时,缩略图的地址就是原图。

idinteger
图片 ID。
urlurl
原图(WebP)。
thumbnail_urlurl
长边最多 600px 的缩略图。
medium_urlurl
长边最多 1200px 的缩略图。
widthinteger | null
原图的宽(像素)。
heightinteger | null
原图的高(像素)。
mimestring
MIME 类型,例如 image/webp。
对象

Byline

署名

标题下面那一行署名,保存专辑时算好。

rolestring
publisher 时是整张专辑的全部发行方,artist 时是全部艺术家。publisherartist
artistsobject[]
署名的艺术家,按制作人员的顺序。
idinteger | null
艺术家 ID;只有署名、没有对应的艺术家时为 null。
namestring
署名;没有单独的署名时是艺术家名。
对象

Attribute

属性

后台定义的附加信息,例如封面角色、BPM。定义见 /catalog/schema 的 attribute_definitions。

idinteger
ID。
keystring
属性的 key,例如 cover_character。
valuestring | integer | boolean | object
值,类型随属性不同:文字、网址和选项是字符串;整数是数字;小数是字符串;布尔值是 true / false;日期是 { date, precision };引用是 { type, id },例如 { "type": "entry", "id": 12 }。
labelstring | null
引用类型的属性才有:所指内容的名称。
sort_orderinteger
显示顺序。
对象

Pagination

分页

列表接口的分页信息。

totalinteger
一共多少条。
per_pageinteger
每页多少条。
current_pageinteger
当前是第几页。
last_pageinteger
最后一页的页码。
对象

Error

错误

出错时 error 里的对象。

codeinteger
数字错误码。
namestring
错误名,例如 RESOURCE_NOT_FOUND。请用它来判断错误类型。
messagestring
英文说明,只用于调试,可能改变。
detailsobject
参数错误时按参数名列出原因;超过频率限制时是 { retry_after }。有时不出现

更新记录

对调用方有影响的变化,最新的在前。正式上线前接口还在测试阶段,字段可能调整。

  1. disc_format 新增 minidisc 和 usb,版本规格里写作 MiniDisc 和 USB。
  2. 艺术家的 relation_type 简化:subunit_of、has_subunit 并入 member_of、has_member;persona_of、has_persona 合并为没有方向的 alias。
  3. 专辑详情的碟片新增 tocs:CD 的 TOC,以及 CDCat Disc ID 和 freedb、MusicBrainz、AccurateRip、CTDB 的 ID。
  4. 首次公开,测试版。