一起開發 開發者文件

開放介面

透過 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. 首次公開,測試版。