网易云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
/user/account
登录后调用此接口 ,可获取用户账号信息

请求参数

Query 参数
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 '/user/account?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}
示例
{
  "code": 200,
  "account": {
    "id": 314462984,
    "userName": "1_********016",
    "type": 1,
    "status": 0,
    "whitelistAuthority": 0,
    "createTime": 1470309464499,
    "tokenVersion": 0,
    "ban": 0,
    "baoyueVersion": 0,
    "donateVersion": 0,
    "vipType": 0,
    "anonimousUser": false,
    "paidFee": false
  },
  "profile": {
    "userId": 314462984,
    "userType": 0,
    "nickname": "Hatsune罪歌",
    "avatarImgId": 109951166320371800,
    "avatarUrl": "http://p2.music.126.net/L5ytciQMudQZE8QalTqllg==/109951166320371801.jpg",
    "backgroundImgId": 3298534889666862,
    "backgroundUrl": "http://p1.music.126.net/Aruptu9gFIveNEzwpKmfgw==/3298534889666862.jpg",
    "signature": "没有未来的未来不是我想要的未来",
    "createTime": 1470309633207,
    "userName": "1_********016",
    "accountType": 1,
    "shortUserName": "********016",
    "birthday": 829324800000,
    "authority": 0,
    "gender": 1,
    "accountStatus": 0,
    "province": 350000,
    "city": 350600,
    "authStatus": 0,
    "description": null,
    "detailDescription": null,
    "defaultAvatar": false,
    "expertTags": null,
    "experts": null,
    "djStatus": 0,
    "locationStatus": 30,
    "vipType": 0,
    "followed": false,
    "mutual": false,
    "authenticated": false,
    "lastLoginTime": 1681355132507,
    "lastLoginIP": "172.17.0.1",
    "remarkName": null,
    "viptypeVersion": 0,
    "authenticationTypes": 0,
    "avatarDetail": null,
    "anchor": false
  }
}
修改于 2023-04-14 03:05:17
上一页
登录状态
下一页
游客登录
Built with