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 接口。