小程序-云音乐
  1. 电台
小程序-云音乐
  • 使用须知
  • 首页中心
    • 榜单
      • 获取所有榜单
      • 根据榜单的ID获取榜单
    • 歌单
      • 获取推荐歌单
      • 获取歌单中所有歌曲
      • 获取歌单详情
      • 获取歌单详情动态
      • 获取歌单分类
      • 获取热门歌单分类
      • 根据歌单分类获取歌单( 网友精选碟 )
      • 收藏/取消收藏歌单
    • 电台
      • 获取热门电台
        GET
      • 获取推荐电台
        GET
      • 获取电台今日优选电台
        GET
      • 获取电台分类
        GET
      • 根据分类id获取热门电台列表
        GET
      • 获取电台详情
        POST
      • 获取电台节目列表
        GET
      • 订阅电台
        POST
    • 搜索
      • 获取默认搜索关键词
      • 获取热搜列表(简略)
      • 获取热搜列表(详细)
      • 根据关键字进行搜索
      • 获取搜索建议
    • 获取轮播图
      GET
    • 获取每日推荐歌曲
      POST
  • 登录
    • 二维码登录
      • 二维码 key 生成
      • 根据key生成二维码
      • 检测二维码扫码状态
    • 游客登录
      GET
    • 退出登录
      GET
  • 个人中心
    • 获取用户信息
      • 根据id获取用户信息
      • 获取用户信息 , 歌单,收藏,mv, dj 数量
      • 获取账号信息
      • 获取用户等级信息
      • 获取登录状态
    • 歌单
      • 获取用户歌单
    • 最近播放
      • 最近播放-歌曲
      • 最近播放-视频
      • 最近播放-歌单
      • 最近播放-专辑
      • 最近播放-播客
      • 最近播放-声音
      • 将 mlog id 转为视频 id
    • 我的收藏
      • 获取收藏的专辑
      • 获取收藏的mv
      • 获取点赞过的视频
      • 获取我收藏的电台
    • 更新用户信息
      • 更新用户信息
      • 可更新头像
  • 视频中心
    • mv
      • 获取全部 mv
      • 获取推荐的mv
      • 获取 mv 数据
      • 获取 mv 点赞转发评论数数据
      • 获取 mv 播放地址
    • 视频
      • 获取推荐的视频
      • 获取全部视频列表
      • 获取视频详情
      • 获取视频点赞转发评论数数据
      • 获取视频播放地址
      • 获取视频标签列表
      • 获取视频标签/分类下的视频
  • 通用
    • 歌曲
      • 歌曲详情字段说明
      • 获取歌曲url
      • 喜欢音乐
      • 获取喜欢音乐列表
    • 歌词
      • 获取歌曲的歌词
      • 获取歌曲的逐字歌词
    • 评论
      • 获取资源评论
      • 获取楼层评论
      • 给评论点赞
      • 发送/删除评论
    • 收藏资源
      • 收藏视频
      • 收藏 MV
      • 收藏歌单
      • 收藏专辑
    • 歌单
      • 歌单添加或删除歌曲
      • 新建歌单
      • 删除歌单
    • 点赞资源(歌曲,歌单,MV,电台,视频)
    • 心动模式/智能播放
  1. 电台

获取电台节目列表

开发中
GET
/dj/program
说明 : 登录后调用此接口 , 传入rid, 可查看对应电台的电台节目以及对应的 id, 需要 注意的是这个接口返回的 mp3Url 已经无效 , 都为 null, 但是通过调用 /song/url 这 个接口 , 传入节目 id 仍然能获取到节目音频 , 如 /song/url?id=478446370 获取代 码时间的一个节目的音频
必选参数 : rid: 电台 的 id
可选参数 :
limit : 返回数量 , 默认为 30
offset : 偏移数量,用于分页 , 如 :( 页数 -1)*30, 其中 30 为 limit 的值 , 默认为 0
asc : 排序方式,默认为 false (新 => 老 ) 设置 true 可改为 老 => 新

请求参数

Query 参数
rid
string 
可选
示例值:
336355127
limit
string 
可选
示例值:
40

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:3000/dj/program?rid=336355127&limit=40'

返回响应

🟢200成功
application/json
Body
count
integer 
必需
code
integer 
必需
programs
array [object {59}] 
必需
mainSong
object 
必需
songs
null 
必需
dj
object 
必需
blurCoverUrl
string 
必需
radio
object 
必需
duration
integer 
必需
authDTO
null 
必需
buyed
boolean 
必需
programDesc
null 
必需
h5Links
null 
必需
canReward
boolean 
必需
auditStatus
integer 
必需
videoInfo
null 
必需
score
integer 
必需
liveInfo
null 
必需
alg
null 
必需
disPlayStatus
null 
必需
auditDisPlayStatus
integer 
必需
categoryName
null 
必需
secondCategoryName
null 
必需
existLyric
boolean 
必需
djPlayRecordVo
null 
必需
recommended
boolean 
必需
icon
null 
必需
additionIconList
null 
必需
adIconInfo
null 
必需
replaceVoiceId
integer 
必需
replaceResource
null 
必需
titbitImages
null 
必需
isPublish
boolean 
必需
titbits
null 
必需
subscribedCount
integer 
必需
channels
array[string]
必需
trackCount
integer 
必需
reward
boolean 
必需
privacy
boolean 
必需
commentThreadId
string 
必需
listenerCount
integer 
必需
createEventId
integer 
必需
serialNum
integer 
必需
scheduledPublishTime
integer 
必需
mainTrackId
integer 
必需
programFeeType
integer 
必需
coverUrl
string 
必需
feeScope
integer 
必需
categoryId
integer 
必需
coverId
integer 
必需
smallLanguageAuditStatus
integer 
必需
bdAuditStatus
integer 
必需
secondCategoryId
integer 
必需
pubStatus
integer 
必需
description
string 
必需
createTime
integer 
必需
name
string 
必需
id
integer 
必需
shareCount
integer 
必需
subscribed
boolean 
必需
likedCount
integer 
必需
commentCount
integer 
必需
more
boolean 
必需
示例
{
    "count": 36,
    "code": 200,
    "programs": [
        {
            "mainSong": {
                "name": "Visual Studio Code - 吕鹏",
                "id": 530692704,
                "position": 0,
                "alias": [],
                "status": 0,
                "fee": 0,
                "copyrightId": 0,
                "disc": "",
                "no": 0,
                "artists": [
                    {
                        "name": "代码时间",
                        "id": 0,
                        "picId": 0,
                        "img1v1Id": 0,
                        "briefDesc": "",
                        "picUrl": "http://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
                        "img1v1Url": "http://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
                        "albumSize": 0,
                        "alias": [],
                        "trans": "",
                        "musicSize": 0,
                        "topicPerson": 0
                    }
                ],
                "album": {
                    "name": "[DJ节目]代码时间的DJ节目 第37期",
                    "id": 0,
                    "type": null,
                    "size": 0,
                    "picId": 109951163108762080,
                    "blurPicUrl": "http://p1.music.126.net/DNJDC75rAZZkXWcuHSN5zA==/109951163108762078.jpg",
                    "companyId": 0,
                    "pic": 109951163108762080,
                    "picUrl": "http://p1.music.126.net/DNJDC75rAZZkXWcuHSN5zA==/109951163108762078.jpg",
                    "publishTime": 0,
                    "description": "",
                    "tags": "",
                    "company": null,
                    "briefDesc": "",
                    "artist": {
                        "name": "代码时间",
                        "id": 0,
                        "picId": 0,
                        "img1v1Id": 0,
                        "briefDesc": "",
                        "picUrl": "http://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
                        "img1v1Url": "http://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
                        "albumSize": 0,
                        "alias": [],
                        "trans": "",
                        "musicSize": 0,
                        "topicPerson": 0
                    },
                    "songs": [],
                    "alias": [],
                    "status": 0,
                    "copyrightId": 0,
                    "commentThreadId": "R_AL_3_0",
                    "artists": [
                        {
                            "name": "代码时间",
                            "id": 0,
                            "picId": 0,
                            "img1v1Id": 0,
                            "briefDesc": "",
                            "picUrl": "http://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
                            "img1v1Url": "http://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
                            "albumSize": 0,
                            "alias": [],
                            "trans": "",
                            "musicSize": 0,
                            "topicPerson": 0
                        }
                    ],
                    "subType": null,
                    "transName": null,
                    "mark": 0,
                    "picId_str": "109951163108762078"
                },
                "starred": false,
                "popularity": 5,
                "score": 5,
                "starredNum": 0,
                "duration": 3626266,
                "playedNum": 0,
                "dayPlays": 0,
                "hearTime": 0,
                "ringtone": null,
                "crbt": null,
                "audition": null,
                "copyFrom": "",
                "commentThreadId": "R_SO_4_530692704",
                "rtUrl": null,
                "ftype": 0,
                "rtUrls": [],
                "copyright": 1,
                "transName": null,
                "sign": null,
                "mark": 0,
                "noCopyrightRcmd": null,
                "rtype": 0,
                "rurl": null,
                "mvid": 0,
                "bMusic": {
                    "name": "--",
                    "id": 1409120190,
                    "size": 32510118,
                    "extension": "-dj-",
                    "sr": 44100,
                    "dfsId": 0,
                    "bitrate": 71000,
                    "playTime": 3626266,
                    "volumeDelta": 0
                },
                "mp3Url": null,
                "lMusic": {
                    "name": "--",
                    "id": 1409120190,
                    "size": 3
上一页
获取电台详情
下一页
订阅电台
Built with