Skip to content

网易云音乐接口

TIP

  • 本服务采用自动监控、故障切换策略,因此单 IP 故障可能导致最多 7 分钟无法访问。
  • 本服务无任何 SLA 保证,但是根据 30 天监控数据,可用性一般不低于 99.9%,你可以查看历史数据
  • 若刷新 DNS 缓存后,确认出现了单 IP 超过 7 分钟无法访问并且未自动切换的异常情况,你可以联系 CDN [AT] TSINBEI [DOT] COM;如发现有违反版权、涉及政治敏感、暴力恐怖、色情等违法违规内容,请及时联系 ABUSE [AT] TSINBEI [DOT] COM。

简易接口可解析网易云音乐歌曲,完全接口基于网易云音乐 NodeJS 版 API,具体用法参考官方文档。

1/ 简易接口

使用方法:

请求

html
https://api.tsinbei.com/v2/music/163/api.php?id=<歌曲ID>
https://api.tsinbei.com/v2/music/163/api.php?id=<歌曲ID>

示例返回:

json
{
	"data": [{
		"id": 450795499,
		"url": "http://m10.music.126.net/20230517182735/b0d924520186c8cd589d45dccde47c3a/ymusic/8ae5/e063/1d74/9ae813168a4f921968579bf889528dbc.mp3",
		"br": 320000,
		"size": 13881513,
		"md5": "9ae813168a4f921968579bf889528dbc",
		"code": 200,
		"expi": 1200,
		"type": "mp3",
		"gain": 0.0,
		"peak": 1.0,
		"fee": 0,
		"uf": null,
		"payed": 0,
		"flag": 0,
		"canExtend": false,
		"freeTrialInfo": null,
		"level": "exhigh",
		"encodeType": "mp3",
		"freeTrialPrivilege": {
			"resConsumable": false,
			"userConsumable": false,
			"listenType": null,
			"cannotListenReason": null
		},
		"freeTimeTrialPrivilege": {
			"resConsumable": false,
			"userConsumable": false,
			"type": 0,
			"remainTime": 0
		},
		"urlSource": 0,
		"rightSource": 0,
		"podcastCtrp": null,
		"effectTypes": null,
		"time": 346689
	}],
	"code": 200
}
{
	"data": [{
		"id": 450795499,
		"url": "http://m10.music.126.net/20230517182735/b0d924520186c8cd589d45dccde47c3a/ymusic/8ae5/e063/1d74/9ae813168a4f921968579bf889528dbc.mp3",
		"br": 320000,
		"size": 13881513,
		"md5": "9ae813168a4f921968579bf889528dbc",
		"code": 200,
		"expi": 1200,
		"type": "mp3",
		"gain": 0.0,
		"peak": 1.0,
		"fee": 0,
		"uf": null,
		"payed": 0,
		"flag": 0,
		"canExtend": false,
		"freeTrialInfo": null,
		"level": "exhigh",
		"encodeType": "mp3",
		"freeTrialPrivilege": {
			"resConsumable": false,
			"userConsumable": false,
			"listenType": null,
			"cannotListenReason": null
		},
		"freeTimeTrialPrivilege": {
			"resConsumable": false,
			"userConsumable": false,
			"type": 0,
			"remainTime": 0
		},
		"urlSource": 0,
		"rightSource": 0,
		"podcastCtrp": null,
		"effectTypes": null,
		"time": 346689
	}],
	"code": 200
}

2/ 完全接口

使用方法参考官方文档

接口地址:

html
https://music.tsinbei.com/api/
https://music.tsinbei.com/api/

示例请求:

html
https://music.tsinbei.com/api/search/suggest?keywords=海阔天空
https://music.tsinbei.com/api/search/suggest?keywords=海阔天空

返回:

json
{
	"result": {
		"albums": [{
			"id": 34209,
			"name": "海阔天空",
			"artist": {
				"id": 11127,
				"name": "Beyond",
				"picUrl": "https://p1.music.126.net/EawqbkXCxGmxZ6nnqTKxKw==/109951165566992331.jpg",
				"alias": [],
				"albumSize": 124,
				"picId": 109951165566992340,
				"fansGroup": null,
				"img1v1Url": "https://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
				"img1v1": 0,
				"transNames": ["超越"],
				"trans": "超越"
			},
			"publishTime": 747504000000,
			"size": 10,
			"copyrightId": 1003,
			"status": 1,
			"picId": 109951165796899180,
			"mark": 0
		}, {
			"id": 38408,
			"name": "海阔天空",
			"artist": {
				"id": 13283,
				"name": "信乐团",
				"picUrl": "https://p1.music.126.net/forMjd4S7qMg0Q0Nm7xsPw==/831230790624472.jpg",
				"alias": [],
				"albumSize": 16,
				"picId": 831230790624472,
				"fansGroup": null,
				"img1v1Url": "https://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
				"img1v1": 0,
				"trans": null
			},
			"publishTime": 1075564800000,
			"size": 10,
			"copyrightId": 1416078,
			"status": 1,
			"picId": 109951164094157630,
			"mark": 0
		}],
		"artists": [{
			"id": 52080328,
			"name": "海阔天空",
			"picUrl": "https://p2.music.126.net/xbvWORwGQru-V9fzl0eH-A==/109951167218332150.jpg",
			"alias": [],
			"albumSize": 1,
			"picId": 109951167218332140,
			"fansGroup": null,
			"img1v1Url": "https://p2.music.126.net/wIhVHPNZ0nIAEITDKwYqpA==/109951165216420472.jpg",
			"accountId": 3722204164,
			"img1v1": 109951165216420480,
			"trans": null
		}],
		"songs": [{
			"id": 346089,
			"name": "海阔天空",
			"artists": [{
				"id": 11127,
				"name": "Beyond",
				"picUrl": null,
				"alias": [],
				"albumSize": 0,
				"picId": 0,
				"fansGroup": null,
				"img1v1Url": "https://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
				"img1v1": 0,
				"trans": null
			}],
			"album": {
				"id": 34110,
				"name": "Beyond 25th Anniversary",
				"artist": {
					"id": 0,
					"name": "",
					"picUrl": null,
					"alias": [],
					"albumSize": 0,
					"picId": 0,
					"fansGroup": null,
					"img1v1Url": "https://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
					"img1v1": 0,
					"trans": null
				},
				"publishTime": 1205164800000,
				"size": 48,
				"copyrightId": 5003,
				"status": 1,
				"picId": 109951165796417310,
				"alia": ["Beyond 25周年精选"],
				"mark": 0
			},
			"duration": 322560,
			"copyrightId": 7002,
			"status": 0,
			"alias": [],
			"rtype": 0,
			"ftype": 0,
			"mvid": 5501497,
			"fee": 8,
			"rUrl": null,
			"mark": 0
		}],
		"order": ["songs", "artists", "albums"]
	},
	"code": 200
}
{
	"result": {
		"albums": [{
			"id": 34209,
			"name": "海阔天空",
			"artist": {
				"id": 11127,
				"name": "Beyond",
				"picUrl": "https://p1.music.126.net/EawqbkXCxGmxZ6nnqTKxKw==/109951165566992331.jpg",
				"alias": [],
				"albumSize": 124,
				"picId": 109951165566992340,
				"fansGroup": null,
				"img1v1Url": "https://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
				"img1v1": 0,
				"transNames": ["超越"],
				"trans": "超越"
			},
			"publishTime": 747504000000,
			"size": 10,
			"copyrightId": 1003,
			"status": 1,
			"picId": 109951165796899180,
			"mark": 0
		}, {
			"id": 38408,
			"name": "海阔天空",
			"artist": {
				"id": 13283,
				"name": "信乐团",
				"picUrl": "https://p1.music.126.net/forMjd4S7qMg0Q0Nm7xsPw==/831230790624472.jpg",
				"alias": [],
				"albumSize": 16,
				"picId": 831230790624472,
				"fansGroup": null,
				"img1v1Url": "https://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
				"img1v1": 0,
				"trans": null
			},
			"publishTime": 1075564800000,
			"size": 10,
			"copyrightId": 1416078,
			"status": 1,
			"picId": 109951164094157630,
			"mark": 0
		}],
		"artists": [{
			"id": 52080328,
			"name": "海阔天空",
			"picUrl": "https://p2.music.126.net/xbvWORwGQru-V9fzl0eH-A==/109951167218332150.jpg",
			"alias": [],
			"albumSize": 1,
			"picId": 109951167218332140,
			"fansGroup": null,
			"img1v1Url": "https://p2.music.126.net/wIhVHPNZ0nIAEITDKwYqpA==/109951165216420472.jpg",
			"accountId": 3722204164,
			"img1v1": 109951165216420480,
			"trans": null
		}],
		"songs": [{
			"id": 346089,
			"name": "海阔天空",
			"artists": [{
				"id": 11127,
				"name": "Beyond",
				"picUrl": null,
				"alias": [],
				"albumSize": 0,
				"picId": 0,
				"fansGroup": null,
				"img1v1Url": "https://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
				"img1v1": 0,
				"trans": null
			}],
			"album": {
				"id": 34110,
				"name": "Beyond 25th Anniversary",
				"artist": {
					"id": 0,
					"name": "",
					"picUrl": null,
					"alias": [],
					"albumSize": 0,
					"picId": 0,
					"fansGroup": null,
					"img1v1Url": "https://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
					"img1v1": 0,
					"trans": null
				},
				"publishTime": 1205164800000,
				"size": 48,
				"copyrightId": 5003,
				"status": 1,
				"picId": 109951165796417310,
				"alia": ["Beyond 25周年精选"],
				"mark": 0
			},
			"duration": 322560,
			"copyrightId": 7002,
			"status": 0,
			"alias": [],
			"rtype": 0,
			"ftype": 0,
			"mvid": 5501497,
			"fee": 8,
			"rUrl": null,
			"mark": 0
		}],
		"order": ["songs", "artists", "albums"]
	},
	"code": 200
}

体验:

访问清北云音乐,填入https://music.tsinbei.com/api/即可在线访问 QQ 音乐风格的网易云音乐。

3/ 更多

服务申请😉

如需清北 API 提供更多 API 服务,可前往 爱发电 赞助,附上联系方式,方便后续沟通。 在使用过程中出现任何问题均可至 GitHub 反馈。