Emby 接口文档
认证
AuthenticateByName 登录
参见 Jellyfin 的 AuthenticateByName 接口。
Ping 测试服务器连通性
GET: [host]/System/Ping
请求节点
Items 获取专辑列表
GET: [host]/Users/[UserId]/Items
query:
参数名 | 备注 |
---|---|
SortBy | 排序方式列表,可选值: Random , DateCreated , PremiereDate , PlayCount , DatePlayed , SortName , CommunityRating |
SortOrder | 排序,可选值: Ascending , Descending |
IncludeItemTypes | 包含的项目类型,可选值:MusicAlbum |
Recursive | 是否递归查询 |
Fields | 包含的字段列表,可选值:SortName , BasicSyncInfo , ChildCount , DateCreated , ProductionYear |
ImageTypeLimit | 返回的每个图片类型图片数量 |
EnableImageTypes | 图片类型列表,可选值:Primary , Backdrop , Thumb |
StartIndex | 起始行数 |
Limit | 最大数量,可选 |
ParentId | 父视图ID,可选 |
artistIds | 歌手 id 列表,可选 |
GenreIds | 类型ID列表,可选 |
SearchTerm | 搜索词,可选 |
response:
{
"Items": [
{
"Name": "爆笑三国演义",
"ServerId": "54068b26c84949dc809677381d1267a9",
"Id": "79106",
"DateCreated": "2024-04-12T01:50:05.0000000Z",
"SupportsSync": true,
"SortName": "爆笑三国演义",
"RunTimeTicks": 3305120000,
"ProductionYear": 2023,
"IsFolder": true,
"Type": "MusicAlbum",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"Artists": [
"佳音少儿、 金德哥哥"
],
"ArtistItems": [
{
"Name": "佳音少儿、 金德哥哥",
"Id": "79105"
}
],
"Composers": [],
"AlbumArtist": "佳音少儿、 金德哥哥",
"AlbumArtists": [
{
"Name": "佳音少儿、 金德哥哥",
"Id": "79105"
}
],
"ImageTags": {},
"BackdropImageTags": []
},
{
"Name": "森之恋歌",
"ServerId": "54068b26c84949dc809677381d1267a9",
"Id": "79103",
"DateCreated": "2024-04-10T04:24:53.0000000Z",
"SupportsSync": true,
"SortName": "森之恋歌",
"RunTimeTicks": 2332317080,
"ProductionYear": 2022,
"IsFolder": true,
"Type": "MusicAlbum",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"Artists": [
"单依纯"
],
"ArtistItems": [
{
"Name": "单依纯",
"Id": "7113"
}
],
"Composers": [],
"AlbumArtist": "单依纯",
"AlbumArtists": [
{
"Name": "单依纯",
"Id": "7113"
}
],
"ImageTags": {
"Primary": "08f7baa96fe117a2d22ced7f34f292f1"
},
"BackdropImageTags": []
}
],
"TotalRecordCount": 3654
}
Items/[id] 获取专辑信息
GET: [host]/Users/[UserId]/Items/[id]
response:
{
"Name": "森之恋歌",
"ServerId": "54068b26c84949dc809677381d1267a9",
"Id": "79103",
"Etag": "3fe9c1df1c602725cefae4ab30e445b6",
"DateCreated": "2024-04-10T04:24:53.0000000Z",
"CanDelete": true,
"CanDownload": false,
"PresentationUniqueKey": "b1e9c0c3922344d4b852b46bd0130b23",
"SupportsSync": true,
"SortName": "森之恋歌",
"ForcedSortName": "森之恋歌",
"ExternalUrls": [],
"Taglines": [],
"Genres": [],
"RunTimeTicks": 2332317080,
"PlayAccess": "Full",
"ProductionYear": 2022,
"RemoteTrailers": [],
"ProviderIds": {},
"IsFolder": true,
"Type": "MusicAlbum",
"Studios": [],
"GenreItems": [],
"TagItems": [],
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"DisplayPreferencesId": "f13d7f51d4f1f8b6fcd620855eb88c1e",
"PrimaryImageAspectRatio": 1,
"Artists": [
"单依纯"
],
"ArtistItems": [
{
"Name": "单依纯",
"Id": "7113"
}
],
"Composers": [],
"AlbumArtist": "单依纯",
"AlbumArtists": [
{
"Name": "单依纯",
"Id": "7113"
}
],
"ImageTags": {
"Primary": "08f7baa96fe117a2d22ced7f34f292f1"
},
"BackdropImageTags": [],
"LockedFields": [],
"LockData": false
}
AlbumArtists 获取专辑艺术家列表
GET: [host]/Artists/AlbumArtists
其他格式与歌手列表一致。
Artists 获取歌手列表
参见 Jellyfin 的 Artists 接口。
补充 query:
参数名 | 备注 |
---|---|
ParentId | 父视图ID,可选 |
GenreIds | 类型ID列表,可选 |
Items/[id] 获取歌手信息
参见 Jellyfin 的 Items/id 接口。
Similar 获取相似歌手
参见 Jellyfin 的 Similar 接口。
Images 图片链接
GET: [host]/Items/[id]/Primary?fillHeight=600&fillWidth=600
请求头需要添加授权信息。
Playlists 创建歌单
POST: [host]/Playlists
body(application/json
):
参数名 | 备注 |
---|---|
Name | 歌单名 |
Ids | 包含的歌曲ID列表,不建议传空列表,因为 Emby 的电影和音乐可以混在一个歌单里,初始化时有音乐方便后续只查询包含音乐的歌单。 |
MediaType | 媒体类型,可选值:Audio |
response:
{
"Id": "bea612652ad4b3578c76fa87a13e7fa7"
}
Items/[id] 删除歌单
DELETE: [host]/Items/[id]
response code: 204
Items 从服务器删除歌曲
DELETE: [host]/Items
query:
参数名 | 备注 |
---|---|
Ids | 包含的歌曲ID列表 |
危险操作,此接口需要管理员权限。
Items 获取目录列表
GET: [host]/Users/[UserId]/Items
query:
参数名 | 备注 |
---|---|
ParentId | 目录ID,传音乐库ID时查询根目录 |
EnableImageTypes | Primary,Backdrop,Thumb |
ImageTypeLimit | 1 |
SortBy | 排序方式,可选值:IsFolder , Filename |
StartIndex | 行数偏移 |
Limit | 结果数量 |
Fields | 返回的列,可选值:BasicSyncInfo,CanDelete,PrimaryImageAspectRatio,ProductionYear,Status,EndDate |
response:
{
"Items": [
{
"Name": "阿悄单曲集",
"ServerId": "5472030a784c45f4a90845bd9886bc98",
"Id": "27163",
"CanDelete": true,
"SupportsSync": true,
"IsFolder": true,
"Type": "Folder",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"ImageTags": {},
"BackdropImageTags": [],
"PrimaryImageItemId": "27182",
"PrimaryImageTag": "1b50e7c8bca70c47ddb8ba969c9d34ad"
},
{
"Name": "最坚强的...阿悄勇敢作品集",
"ServerId": "5472030a784c45f4a90845bd9886bc98",
"Id": "27173",
"CanDelete": true,
"SupportsSync": true,
"IsFolder": true,
"Type": "Folder",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"ImageTags": {},
"BackdropImageTags": [],
"PrimaryImageItemId": "27193",
"PrimaryImageTag": "60c07108c93ed897bd7b5ad4624e1090"
},
{
"Name": "犯贱",
"ServerId": "5472030a784c45f4a90845bd9886bc98",
"Id": "27159",
"CanDelete": true,
"SupportsSync": true,
"RunTimeTicks": 2138906120,
"ProductionYear": 2008,
"IndexNumber": 47,
"IsFolder": false,
"Type": "Audio",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"PrimaryImageAspectRatio": 1,
"Artists": [
"徐良",
"阿悄"
],
"ArtistItems": [
{
"Name": "徐良",
"Id": "54622"
},
{
"Name": "阿悄",
"Id": "55566"
}
],
"Composers": [],
"Album": "流行网络歌",
"AlbumArtists": [],
"ImageTags": {
"Primary": "f50019d3a0df167ac2cd3797aa3fe0b9"
},
"BackdropImageTags": [],
"MediaType": "Audio"
}
],
"TotalRecordCount": 15
}
Genres 获取全部类型
GET: [host]/Genres
query:
参数名 | 备注 |
---|---|
ParentId | 20111 |
Recursive | 是否递归查询 |
IncludeItemTypes | 固定值,MusicAlbum |
userId | 用户ID |
StartIndex | 起始行数 |
Limit | 最大行数 |
SortBy | 固定值,SortName |
SortOrder | 固定值,Ascending |
response:
{
"Items": [
{
"Name": "播客",
"ServerId": "5472030a784c45f4a90845bd9886bc98",
"Id": "59145",
"CanDelete": false,
"SupportsSync": true,
"Type": "MusicGenre",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"PrimaryImageAspectRatio": 1,
"ImageTags": {
"Primary": "c7a60444a93cb13209189ed883f8a638"
},
"BackdropImageTags": []
},
{
"Name": "古风",
"ServerId": "5472030a784c45f4a90845bd9886bc98",
"Id": "61242",
"CanDelete": false,
"SupportsSync": true,
"Type": "MusicGenre",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"PrimaryImageAspectRatio": 1,
"ImageTags": {
"Primary": "fb59591640202c85ef243b7e1df8789d"
},
"BackdropImageTags": []
},
],
"TotalRecordCount": 38
}
Stream.js 获取歌词
GET: [host]/Items/[id]/[MediaSourceId]/Subtitles/[SubtitleIndex]/Stream.js
SubtitleIndex 从歌曲信息中获取,取
MediaStreams[Type=Subtitle&Codec=lrc].Index
的值
query:
参数名 | 备注 |
---|---|
MediaBrowser Client | 客户端名称 |
Device | 设备名 |
DeviceId | 设备Id |
Version | 客户端版本号 |
Token | 访问令牌,登录后从响应中的 AccessToken 字段获取 |
response:
{
"TrackEvents": [
{
"Text": "艾里甫与赛乃姆 - 刀郎",
"StartPositionTicks": 0,
"EndPositionTicks": 90000000
},
{
"Text": "词:刀郎",
"StartPositionTicks": 90000000,
"EndPositionTicks": 180000000
},
{
"Text": "曲:刀郎",
"StartPositionTicks": 180000000,
"EndPositionTicks": 270100000
},
{
"Text": "从小和你青梅竹马相约在天山下",
"StartPositionTicks": 270100000,
"EndPositionTicks": 339300000
},
{
"Text": "",
"StartPositionTicks": 339300000,
"EndPositionTicks": 371200000
},
{
"Text": "我们本来是天底下最幸福的人啊",
"StartPositionTicks": 371200000,
"EndPositionTicks": 457400000
},
{
"Text": "",
"StartPositionTicks": 457400000,
"EndPositionTicks": 470100000
},
{
"Text": "赛乃姆你是花丛中最美的石榴花",
"StartPositionTicks": 470100000,
"EndPositionTicks": 551700000
},
{
"Text": "",
"StartPositionTicks": 551700000,
"EndPositionTicks": 570800000
},
{
"Text": "艾里甫我却是巴格达上孤独的阿卡",
"StartPositionTicks": 570800000,
"EndPositionTicks": 643300000
},
{
"Text": "",
"StartPositionTicks": 643300000,
"EndPositionTicks": 696000000
},
{
"Text": "夜莺歌声在每个夜晚都会陪伴她",
"StartPositionTicks": 696000000,
"EndPositionTicks": 765400000
},
{
"Text": "",
"StartPositionTicks": 765400000,
"EndPositionTicks": 795500000
},
{
"Text": "我的琴声却飘荡在遥远的巴格达",
"StartPositionTicks": 795500000,
"EndPositionTicks": 877900000
},
{
"Text": "",
"StartPositionTicks": 877900000,
"EndPositionTicks": 896800000
},
{
"Text": "为了爱情我被放逐在天涯",
"StartPositionTicks": 896800000,
"EndPositionTicks": 976600000
},
{
"Text": "",
"StartPositionTicks": 976600000,
"EndPositionTicks": 996000000
},
{
"Text": "莫非今生和你厮守变成了神话",
"StartPositionTicks": 996000000,
"EndPositionTicks": 1067300000
},
{
"Text": "",
"StartPositionTicks": 1067300000,
"EndPositionTicks": 1095900000
},
{
"Text": "我寻遍天山南北我要找到你赛乃姆",
"StartPositionTicks": 1095900000,
"EndPositionTicks": 1181700000
},
{
"Text": "",
"StartPositionTicks": 1181700000,
"EndPositionTicks": 1195800000
},
{
"Text": "不管是跋山涉水历尽千辛万苦",
"StartPositionTicks": 1195800000,
"EndPositionTicks": 1281000000
},
{
"Text": "",
"StartPositionTicks": 1281000000,
"EndPositionTicks": 1295300000
},
{
"Text": "花园里种不出天山上的雪莲花",
"StartPositionTicks": 1295300000,
"EndPositionTicks": 1376800000
},
{
"Text": "",
"StartPositionTicks": 1376800000,
"EndPositionTicks": 1395600000
},
{
"Text": "不历经磨难我找不到今生的幸福",
"StartPositionTicks": 1395600000,
"EndPositionTicks": 1481900000
},
{
"Text": "",
"StartPositionTicks": 1481900000,
"EndPositionTicks": 1758000000
},
{
"Text": "夜莺歌声在每个夜晚都会陪伴她",
"StartPositionTicks": 1758000000,
"EndPositionTicks": 1826600000
},
{
"Text": "",
"StartPositionTicks": 1826600000,
"EndPositionTicks": 1857600000
},
{
"Text": "我的琴声却飘荡在遥远的巴格达",
"StartPositionTicks": 1857600000,
"EndPositionTicks": 1939100000
},
{
"Text": "",
"StartPositionTicks": 1939100000,
"EndPositionTicks": 1958600000
},
{
"Text": "为了爱情我被放逐在天涯",
"StartPositionTicks": 1958600000,
"EndPositionTicks": 2039600000
},
{
"Text": "",
"StartPositionTicks": 2039600000,
"EndPositionTicks": 2059000000
},
{
"Text": "莫非今生和你厮守变成了神话",
"StartPositionTicks": 2059000000,
"EndPositionTicks": 2131000000
},
{
"Text": "",
"StartPositionTicks": 2131000000,
"EndPositionTicks": 2158800000
},
{
"Text": "我寻遍天山南北我要找到你赛乃姆",
"StartPositionTicks": 2158800000,
"EndPositionTicks": 2242800000
},
{
"Text": "",
"StartPositionTicks": 2242800000,
"EndPositionTicks": 2258300000
},
{
"Text": "不管是跋山涉水历尽千辛万苦",
"StartPositionTicks": 2258300000,
"EndPositionTicks": 2343300000
},
{
"Text": "",
"StartPositionTicks": 2343300000,
"EndPositionTicks": 2358900000
},
{
"Text": "花园里种不出天山上的雪莲花",
"StartPositionTicks": 2358900000,
"EndPositionTicks": 2439100000
},
{
"Text": "",
"StartPositionTicks": 2439100000,
"EndPositionTicks": 2458700000
},
{
"Text": "不历经磨难我找不到今生的幸福",
"StartPositionTicks": 2458700000,
"EndPositionTicks": 2543500000
},
{
"Text": "",
"StartPositionTicks": 2543500000,
"EndPositionTicks": 2572400000
},
{
"Text": "我寻遍天山南北我要找到你赛乃姆",
"StartPositionTicks": 2572400000,
"EndPositionTicks": 2655000000
},
{
"Text": "",
"StartPositionTicks": 2655000000,
"EndPositionTicks": 2669100000
},
{
"Text": "不管是跋山涉水历尽千辛万苦",
"StartPositionTicks": 2669100000,
"EndPositionTicks": 2756300000
},
{
"Text": "",
"StartPositionTicks": 2756300000,
"EndPositionTicks": 2771600000
},
{
"Text": "花园里种不出天山上的雪莲花",
"StartPositionTicks": 2771600000,
"EndPositionTicks": 2851700000
},
{
"Text": "",
"StartPositionTicks": 2851700000,
"EndPositionTicks": 2869600000
},
{
"Text": "不历经磨难我找不到今生的幸福",
"StartPositionTicks": 2869600000
}
]
}
Views 获取视图列表
GET: [host]/Users/[UserId]/Views
response:
{
"Items": [
{
"Name": "电影",
"ServerId": "54068b26c84949dc809677381d1267a9",
"Id": "11013",
"Guid": "3227ce1e069754c594af25ea66d69fc7",
"Etag": "f0a63776848cf0513618763c2e49df1e",
"DateCreated": "2023-12-07T05:32:20.0000000Z",
"CanDelete": false,
"CanDownload": false,
"PresentationUniqueKey": "3227ce1e069754c594af25ea66d69fc7",
"SortName": "电影",
"ForcedSortName": "电影",
"ExternalUrls": [],
"Path": "/var/packages/EmbyServer/var/root/default/电影",
"Taglines": [],
"FileName": "电影",
"PlayAccess": "Full",
"RemoteTrailers": [],
"ProviderIds": {},
"IsFolder": true,
"ParentId": "1",
"Type": "CollectionFolder",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"ChildCount": 3,
"DisplayPreferencesId": "3227ce1e069754c594af25ea66d69fc7",
"PrimaryImageAspectRatio": 1.7777777777777777,
"CollectionType": "movies",
"ImageTags": {
"Primary": "405c8c5a67bf8e5ded4bd593b5af9926"
},
"BackdropImageTags": [],
"LockedFields": [],
"LockData": false
},
{
"Name": "电视剧",
"ServerId": "54068b26c84949dc809677381d1267a9",
"Id": "12075",
"Guid": "fc8fa12ee6bc083abb484b1b0bbc420f",
"Etag": "57b2fc16eb7cf0f78b1bf89743af526c",
"DateCreated": "2023-12-07T05:35:46.0000000Z",
"CanDelete": false,
"CanDownload": false,
"PresentationUniqueKey": "fc8fa12ee6bc083abb484b1b0bbc420f",
"SortName": "电视剧",
"ForcedSortName": "电视剧",
"ExternalUrls": [],
"Path": "/var/packages/EmbyServer/var/root/default/电视剧",
"Taglines": [],
"FileName": "电视剧",
"PlayAccess": "Full",
"RemoteTrailers": [],
"ProviderIds": {},
"IsFolder": true,
"ParentId": "1",
"Type": "CollectionFolder",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"ChildCount": 4,
"DisplayPreferencesId": "fc8fa12ee6bc083abb484b1b0bbc420f",
"PrimaryImageAspectRatio": 0.6666666666666666,
"CollectionType": "tvshows",
"ImageTags": {
"Primary": "71dd3f151805e02efca3fa7331ea0ffc"
},
"BackdropImageTags": [
"b5b4ab3a04d43f9dad650208c956ee56"
],
"LockedFields": [],
"LockData": false
},
{
"Name": "综艺",
"ServerId": "54068b26c84949dc809677381d1267a9",
"Id": "14508",
"Guid": "22376d03fca73f102a0de4d40ed3cd41",
"Etag": "f0a63776848cf0513618763c2e49df1e",
"DateCreated": "2023-12-07T05:38:21.0000000Z",
"CanDelete": false,
"CanDownload": false,
"PresentationUniqueKey": "22376d03fca73f102a0de4d40ed3cd41",
"SortName": "综艺",
"ForcedSortName": "综艺",
"ExternalUrls": [],
"Path": "/var/packages/EmbyServer/var/root/default/综艺",
"Taglines": [],
"FileName": "综艺",
"PlayAccess": "Full",
"RemoteTrailers": [],
"ProviderIds": {},
"IsFolder": true,
"ParentId": "1",
"Type": "CollectionFolder",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"ChildCount": 4,
"DisplayPreferencesId": "22376d03fca73f102a0de4d40ed3cd41",
"PrimaryImageAspectRatio": 1.7777777777777777,
"CollectionType": "tvshows",
"ImageTags": {
"Primary": "faf947548d07f9e99462e33fbf38a593"
},
"BackdropImageTags": [],
"LockedFields": [],
"LockData": false
},
{
"Name": "音乐",
"ServerId": "54068b26c84949dc809677381d1267a9",
"Id": "4",
"Guid": "28e9960207c978c0d9aaefc8ae2d3a79",
"Etag": "1805ebfb97d3af5c940a5d654007f81e",
"DateCreated": "2023-11-26T06:22:14.0000000Z",
"CanDelete": false,
"CanDownload": false,
"PresentationUniqueKey": "28e9960207c978c0d9aaefc8ae2d3a79",
"SortName": "音乐",
"ForcedSortName": "音乐",
"ExternalUrls": [],
"Path": "/var/packages/EmbyServer/var/root/default/音乐",
"Taglines": [],
"FileName": "音乐",
"PlayAccess": "Full",
"RemoteTrailers": [],
"ProviderIds": {},
"IsFolder": true,
"ParentId": "1",
"Type": "CollectionFolder",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"ChildCount": 6,
"DisplayPreferencesId": "28e9960207c978c0d9aaefc8ae2d3a79",
"PrimaryImageAspectRatio": 1.7777777777777777,
"CollectionType": "music",
"ImageTags": {
"Primary": "f7c61a28148d5a2fad6ca0bda48ebf49"
},
"BackdropImageTags": [],
"LockedFields": [],
"LockData": false
},
{
"Name": "合集",
"ServerId": "54068b26c84949dc809677381d1267a9",
"Id": "30885",
"Guid": "e7bfe656953e3fad0bdf034be7969a97",
"Etag": "4cc2e1798871df8cf8649fb49a223731",
"DateCreated": "2023-12-07T20:39:49.0000000Z",
"CanDelete": false,
"CanDownload": false,
"PresentationUniqueKey": "e7bfe656953e3fad0bdf034be7969a97",
"SortName": "合集",
"ForcedSortName": "合集",
"ExternalUrls": [],
"Path": "/var/packages/EmbyServer/var/root/default/合集",
"Taglines": [],
"FileName": "合集",
"PlayAccess": "Full",
"RemoteTrailers": [],
"ProviderIds": {},
"IsFolder": true,
"ParentId": "1",
"Type": "CollectionFolder",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"ChildCount": 3,
"DisplayPreferencesId": "e7bfe656953e3fad0bdf034be7969a97",
"PrimaryImageAspectRatio": 1.7777777777777777,
"CollectionType": "boxsets",
"ImageTags": {
"Primary": "30a549922a74abc9f506e7b363ccfc65"
},
"BackdropImageTags": [],
"LockedFields": [],
"LockData": false
},
{
"Name": "短视频",
"ServerId": "54068b26c84949dc809677381d1267a9",
"Id": "31373",
"Guid": "9548a2410227b737d377fefbd086a046",
"Etag": "b262db8903af6dc3c585931b679cf387",
"DateCreated": "2023-12-14T03:01:56.0000000Z",
"CanDelete": false,
"CanDownload": false,
"PresentationUniqueKey": "9548a2410227b737d377fefbd086a046",
"SortName": "短视频",
"ForcedSortName": "短视频",
"ExternalUrls": [],
"Path": "/var/packages/EmbyServer/var/root/default/混合内容",
"Taglines": [],
"FileName": "混合内容",
"PlayAccess": "Full",
"RemoteTrailers": [],
"ProviderIds": {},
"IsFolder": true,
"ParentId": "1",
"Type": "CollectionFolder",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"ChildCount": 9,
"DisplayPreferencesId": "9548a2410227b737d377fefbd086a046",
"PrimaryImageAspectRatio": 1.7777777777777777,
"ImageTags": {
"Primary": "604035e56178ae7a63e5039e405b7c69"
},
"BackdropImageTags": [],
"LockedFields": [],
"LockData": false
},
{
"Name": "纪录片",
"ServerId": "54068b26c84949dc809677381d1267a9",
"Id": "64855",
"Guid": "1c474c9c4d728d1a2f621adad0f221ae",
"Etag": "57b2fc16eb7cf0f78b1bf89743af526c",
"DateCreated": "2024-02-28T13:12:33.0000000Z",
"CanDelete": false,
"CanDownload": false,
"PresentationUniqueKey": "1c474c9c4d728d1a2f621adad0f221ae",
"SortName": "纪录片",
"ForcedSortName": "纪录片",
"ExternalUrls": [],
"Path": "/var/packages/EmbyServer/var/root/default/纪录片",
"Taglines": [],
"FileName": "纪录片",
"PlayAccess": "Full",
"RemoteTrailers": [],
"ProviderIds": {},
"IsFolder": true,
"ParentId": "1",
"Type": "CollectionFolder",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"ChildCount": 6,
"DisplayPreferencesId": "1c474c9c4d728d1a2f621adad0f221ae",
"PrimaryImageAspectRatio": 0.6688963210702341,
"CollectionType": "tvshows",
"ImageTags": {
"Primary": "a3a250e5e6f81e1c058d335d63b31786"
},
"BackdropImageTags": [
"4876668c3b323fa676ca5ff5b5a2fd3f"
],
"LockedFields": [],
"LockData": false
}
],
"TotalRecordCount": 7
}
Items 获取歌单列表
GET: [host]/Users/[UserId]/Items
query:
参数名 | 备注 |
---|---|
SortBy | 排序方式列表,可选值: SortName |
SortOrder | 排序,可选值: Ascending , Descending |
ParentId | 视图ID,由上一步获取,筛选 CollectionType = music 的视图 |
GenreIds | 类型ID列表,可选 |
Recursive | 是否递归查询 |
includeItemTypes | 项目类型,可选值:Playlist |
Fields | 包含的字段列表,可选值:SortName , CanDelete , PrimaryImageAspectRatio , BasicSyncInfo , Container , ProductionYear , Status , EndDate , Prefix |
EnableImageTypes | 图像类型列表,可选值:Primary , Backdrop , Thumb |
StartIndex | 起始行数 |
Limit | 最大数量,可选 |
response:
{
"Items": [
{
"Name": "电影列表",
"ServerId": "54068b26c84949dc809677381d1267a9",
"Id": "66945",
"Prefix": "电",
"CanDelete": true,
"SupportsSync": true,
"RunTimeTicks": 87574387960,
"IsFolder": true,
"Type": "Playlist",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"PrimaryImageAspectRatio": 1,
"ImageTags": {
"Primary": "7a76da4af13b608e8498635c878e5752"
},
"BackdropImageTags": []
},
{
"Name": "纯歌曲",
"ServerId": "54068b26c84949dc809677381d1267a9",
"Id": "66946",
"Prefix": "纯",
"CanDelete": true,
"SupportsSync": true,
"RunTimeTicks": 4177020410,
"IsFolder": true,
"Type": "Playlist",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"PrimaryImageAspectRatio": 1,
"ImageTags": {
"Primary": "ea67ae6c9fb3232d03d03d18e4ec2ef0"
},
"BackdropImageTags": []
}
],
"TotalRecordCount": 2
}
Info 获取服务器信息
参见 Jellyfin 的 Info 接口。
ScheduledTasks 获取扫描状态
参见 Jellyfin 的 ScheduledTasks 接口。