百度音乐搜索
其他 官方文档
根据关键字获取音乐的相关信息
基本说明:
接口地址:http://tingapi.ting.baidu.com/v1/restserver/ting/
返回格式:json
请求方式:get/post
请求示例:http://tingapi.ting.baidu.com/v1/restserver/ting/?query=郑源&method=baidu.ting.search.common
请求参数说明:
名称 类型 必填 说明
query string 必填 音乐关键字
method string 必填 默认值baidu.ting.search.common
返回参数说明:
名称 类型 说明
- - -
JSON返回示例:
{
	"query": "郑源",
	"is_artist": 1,
	"is_album": 0,
	"rs_words": "",
	"pages": {
		"total": "2",
		"rn_num": "2"
	},
	"song_list": [{
		"title": "光临天下",
		"song_id": "670309723",
		"author": "<em>郑源<\/em>",
		"artist_id": "105",
		"all_artist_id": "105",
		"album_title": "光临天下",
		"appendix": "",
		"album_id": "670309721",
		"lrclink": "\/data2\/lrc\/b670b316bf8db68739a9054a7760738f\/670309755\/670309755.lrc",
		"resource_type": "0",
		"content": "",
		"relate_status": 0,
		"havehigh": 0,
		"copy_type": "1",
		"del_status": "0",
		"all_rate": "96,128",
		"has_mv": 0,
		"has_mv_mobile": 0,
		"mv_provider": "0000000000",
		"charge": 0,
		"toneid": "0",
		"info": "",
		"data_source": 0,
		"learn": 0
	}],
	"artist": {
		"artist_id": 105,
		"ting_uid": "1086",
		"name": "郑源",
		"country": "我们",
		"albums_total": "31",
		"songs_total": "206",
		"avatar": {
			"small": "http:\/\/qukufile2.qianqian.com\/data2\/pic\/c68708e3afe831888c6a17937db4bfeb\/608700161\/608700161.jpg@s_2,w_48,h_48",
			"big": "http:\/\/qukufile2.qianqian.com\/data2\/pic\/c68708e3afe831888c6a17937db4bfeb\/608700161\/608700161.jpg@s_2,w_240,h_240"
		}
	}
}
服务级错误码参照
错误码 说明
- -
完整教学代码示例
小F正在努力添加中......