网易云api接口
  1. 推荐
网易云api接口
  • 认证
    • 二维码 key 生成接口
      GET
    • 二维码生成接口
      GET
    • 二维码检测扫码状态接口
      GET
    • 登录状态
      GET
    • 获取账号信息
      GET
    • 游客登录
      GET
  • 推荐
    • 获取每日推荐歌曲
      GET
    • 推荐歌单
      GET
    • 获取每日推荐歌单
      GET
    • 获取音乐 url
      GET
    • 获取账号信息
      GET
    • 获取用户信息 , 歌单,收藏,mv, dj 数量
      GET
    • 签到进度
      GET
    • 签到
      GET
    • 获取用户关注列表
      GET
    • 获取用户粉丝列表
      GET
    • 获取用户动态
      GET
    • 获取精品歌单
      GET
    • 最近播放-歌曲
      GET
    • 推荐歌单
      GET
    • 获取歌单详情
      GET
    • 获取歌曲详情
      GET
    • 获取歌词
      GET
    • 获取逐字歌词
      GET
  • 搜索
    • 搜索
      GET
    • 获取热门话题
      GET
    • 搜索
      GET
  • 自己
    • 获取已收藏专辑列表
    • 获取用户歌单
  • 专辑
    • 获取专辑内容
  • 歌单
    • 歌单分类
    • 热门歌单分类
    • 获取精品歌单
    • 歌单 ( 网友精选碟 )
  • 视频
    • 推荐 mv
    • 独家放送(入口列表)
    • 视频评论
    • 视频详情
    • 获取视频播放地址
    • 获取推荐视频
    • 获取 mv 数据
    • mv 地址
    • mv 评论
  • 音乐
    • 推荐新音乐
    • 听歌打卡
    • 最近播放-歌曲
    • 新歌速递
  • 歌手
    • 歌手分类列表
    • 获取歌手详情
    • 获取歌手描述
    • 获取相似歌手
    • 获取歌手专辑
  • 发现音乐
    • 所有榜单内容摘要
    • 所有榜单
    • 获取歌单详情
  1. 推荐

获取歌曲详情

开发中
GET
/song/detail

请求参数

Query 参数
ids
string 
可选
音乐 id, 如 ids=347230
示例值:
347230,347231
cookie
string 
可选
默认值:
__csrf=2e33d2a9ada3def5f003938fd1b632be; Max-Age=1296010; Expires=Tue, 09 May 2023 01:34:34 GMT; Path=/;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/api/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/neapi/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/weapi/clientlog;;MUSIC_A=bf8bfeabb1aa84f9c8c3906c04a04fb864322804c83f5d607e91a04eae463c9436bd1a17ec353cf7ae828e194cadae835b08cd50c26c5c2b993166e004087dd32a6e15f85ca34515067c97fb050751446fc7c3df09ff8c448b114540caa07eb4807e650dd04abd3fb8130b7ae43fcc5b; Max-Age=1296000; Expires=Tue, 09 May 2023 01:34:24 GMT; Path=/;;MUSIC_R_T=; Max-Age=0; Expires=Mon, 24 Apr 2023 01:34:24 GMT; Path=/;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/api/clientlog;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/weapi/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/neapi/clientlog;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/neapi/clientlog;;MUSIC_SNS=; Max-Age=0; Expires=Mon, 24 Apr 2023 01:34:24 GMT; Path=/;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/eapi/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/openapi/clientlog;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/weapi/clientlog;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/api/clientlog;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/openapi/clientlog;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/wapi/feedback;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/wapi/clientlog;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/weapi/feedback;;MUSIC_A_T=; Max-Age=0; Expires=Mon, 24 Apr 2023 01:34:24 GMT; Path=/;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/eapi/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/api/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/wapi/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/eapi/clientlog;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/neapi/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/wapi/clientlog;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/eapi/clientlog;
timestamp
string 
可选
默认值:
1503019930000

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/song/detail?cookie=__csrf=2e33d2a9ada3def5f003938fd1b632be; Max-Age=1296010; Expires=Tue, 09 May 2023 01:34:34 GMT; Path=/;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/api/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/neapi/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/weapi/clientlog;;MUSIC_A=bf8bfeabb1aa84f9c8c3906c04a04fb864322804c83f5d607e91a04eae463c9436bd1a17ec353cf7ae828e194cadae835b08cd50c26c5c2b993166e004087dd32a6e15f85ca34515067c97fb050751446fc7c3df09ff8c448b114540caa07eb4807e650dd04abd3fb8130b7ae43fcc5b; Max-Age=1296000; Expires=Tue, 09 May 2023 01:34:24 GMT; Path=/;;MUSIC_R_T=; Max-Age=0; Expires=Mon, 24 Apr 2023 01:34:24 GMT; Path=/;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/api/clientlog;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/weapi/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/neapi/clientlog;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/neapi/clientlog;;MUSIC_SNS=; Max-Age=0; Expires=Mon, 24 Apr 2023 01:34:24 GMT; Path=/;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/eapi/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/openapi/clientlog;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/weapi/clientlog;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/api/clientlog;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/openapi/clientlog;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/wapi/feedback;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/wapi/clientlog;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/weapi/feedback;;MUSIC_A_T=; Max-Age=0; Expires=Mon, 24 Apr 2023 01:34:24 GMT; Path=/;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/eapi/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/api/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/wapi/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/eapi/clientlog;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/neapi/feedback;;MUSIC_R_T=0; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/wapi/clientlog;;MUSIC_A_T=1682132907815; Max-Age=2147483647; Expires=Sat, 12 May 2091 04:48:31 GMT; Path=/eapi/clientlog;&timestamp=1503019930000'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{
  "songs": [
    {
      "name": "海阔天空",
      "id": 347230,
      "pst": 0,
      "t": 0,
      "ar": [
        {
          "id": 11127,
          "name": "Beyond",
          "tns": [],
          "alias": []
        }
      ],
      "alia": [],
      "pop": 100,
      "st": 0,
      "rt": "600902000004240302",
      "fee": 1,
      "v": 114,
      "crbt": null,
      "cf": "",
      "al": {
        "id": 34209,
        "name": "海阔天空",
        "picUrl": "https://p1.music.126.net/8y8KJC1eCSO_vUKf2MyZwA==/109951165796899183.jpg",
        "tns": [],
        "pic_str": "109951165796899183",
        "pic": 109951165796899180
      },
      "dt": 326000,
      "h": {
        "br": 320001,
        "fid": 0,
        "size": 13042460,
        "vd": -5649,
        "sr": 44100
      },
      "m": {
        "br": 192001,
        "fid": 0,
        "size": 7825493,
        "vd": -3083,
        "sr": 44100
      },
      "l": {
        "br": 128001,
        "fid": 0,
        "size": 5217010,
        "vd": -1486,
        "sr": 44100
      },
      "sq": {
        "br": 798710,
        "fid": 0,
        "size": 32547445,
        "vd": -5639,
        "sr": 44100
      },
      "hr": null,
      "a": null,
      "cd": "1",
      "no": 1,
      "rtUrl": null,
      "ftype": 0,
      "rtUrls": [],
      "djId": 0,
      "copyright": 1,
      "s_id": 0,
      "mark": 8192,
      "originCoverType": 1,
      "originSongSimpleData": null,
      "tagPicList": null,
      "resourceState": true,
      "version": 114,
      "songJumpInfo": null,
      "entertainmentTags": null,
      "awardTags": null,
      "single": 0,
      "noCopyrightRcmd": null,
      "rtype": 0,
      "rurl": null,
      "mst": 9,
      "cp": 7002,
      "mv": 376199,
      "publishTime": 747504000000
    },
    {
      "name": "Crown of the Loser",
      "id": 347231,
      "pst": 0,
      "t": 0,
      "ar": [
        {
          "id": 11171,
          "name": "Beyond Cure",
          "tns": [],
          "alias": []
        }
      ],
      "alia": [],
      "pop": 10,
      "st": 0,
      "rt": "",
      "fee": 8,
      "v": 17,
      "crbt": null,
      "cf": "",
      "al": {
        "id": 34210,
        "name": "Your Head Smells Good",
        "picUrl": "https://p1.music.126.net/uOAROZ8Ia72yvcmfMIg_Uw==/125344325570003.jpg",
        "tns": [
          "你的头闻起来好香"
        ],
        "pic": 125344325570003
      },
      "dt": 162120,
      "h": {
        "br": 320000,
        "fid": 0,
        "size": 6487814,
        "vd": -28400,
        "sr": 44100
      },
      "m": {
        "br": 192000,
        "fid": 0,
        "size": 3892705,
        "vd": -26199,
        "sr": 44100
      },
      "l": {
        "br": 128000,
        "fid": 0,
        "size": 2595151,
        "vd": -25000,
        "sr": 44100
      },
      "sq": {
        "br": 1007034,
        "fid": 0,
        "size": 20407562,
        "vd": -28500,
        "sr": 44100
      },
      "hr": null,
      "a": null,
      "cd": "1",
      "no": 2,
      "rtUrl": null,
      "ftype": 0,
      "rtUrls": [],
      "djId": 0,
      "copyright": 2,
      "s_id": 0,
      "mark": 139264,
      "originCoverType": 0,
      "originSongSimpleData": null,
      "tagPicList": null,
      "resourceState": true,
      "version": 17,
      "songJumpInfo": null,
      "entertainmentTags": null,
      "awardTags": null,
      "single": 0,
      "noCopyrightRcmd": null,
      "rtype": 0,
      "rurl": null,
      "mst": 9,
      "cp": 1400821,
      "mv": 0,
      "publishTime": 1277481600000
    }
  ],
  "privileges": [
    {
      "id": 347230,
      "fee": 1,
      "payed": 0,
      "st": 0,
      "pl": 0,
      "dl": 0,
      "sp": 0,
      "cp": 0,
      "subp": 1,
      "cs": false,
      "maxbr": 999000,
      "fl": 0,
      "toast": false,
      "flag": 260,
      "preSell": false,
      "playMaxbr": 999000,
      "downloadMaxbr": 999000,
      "maxBrLevel": "lossless",
      "playMaxBrLevel": "lossless",
      "downloadMaxBrLevel": "lossless",
      "plLevel": "none",
      "dlLevel": "none",
      "flLevel": "none",
      "rscl": null,
      "freeTrialPrivilege": {
        "resConsumable": true,
        "userConsumable": false,
        "listenType": null
      },
      "chargeInfoList": [
        {
          "rate": 128000,
          "chargeUrl": null,
          "chargeMessage": null,
          "chargeType": 1
        },
        {
          "rate": 192000,
          "chargeUrl": null,
          "chargeMessage": null,
          "chargeType": 1
        },
        {
          "rate": 320000,
          "chargeUrl": null,
          "chargeMessage": null,
          "chargeType": 1
        },
        {
          "rate": 999000,
          "chargeUrl": null,
          "chargeMessage": null,
          "chargeType": 1
        }
      ]
    },
    {
      "id": 347231,
      "fee": 8,
      "payed": 0,
      "st": 0,
      "pl": 128000,
      "dl": 0,
      "sp": 7,
      "cp": 1,
      "subp": 1,
      "cs": false,
      "maxbr": 999000,
      "fl": 128000,
      "toast": false,
      "flag": 4,
      "preSell": false,
      "playMaxbr": 999000,
      "downloadMaxbr": 999000,
      "maxBrLevel": "lossless",
      "playMaxBrLevel": "lossless",
      "downloadMaxBrLevel": "lossless",
      "plLevel": "standard",
      "dlLevel": "none",
      "flLevel": "standard",
      "rscl": null,
      "freeTrialPrivilege": {
        "resConsumable": false,
        "userConsumable": false,
        "listenType": null
      },
      "chargeInfoList": [
        {
          "rate": 128000,
          "chargeUrl": null,
          "chargeMessage": null,
          "chargeType": 0
        },
        {
          "rate": 192000,
          "chargeUrl": null,
          "chargeMessage": null,
          "chargeType": 1
        },
        {
          "rate": 320000,
          "chargeUrl": null,
          "chargeMessage": null,
          "chargeType": 1
        },
        {
          "rate": 999000,
          "chargeUrl": null,
          "chargeMessage": null,
          "chargeType": 1
        }
      ]
    }
  ],
  "code": 200
}
修改于 2023-04-04 06:25:23
上一页
获取歌单详情
下一页
获取歌词
Built with