稳定、快速、免费的 API 接口服务
如初助手API
接口地址: https://www.58.linkpc.net/api/wyxw
返回格式: 请看返回示例
请求方式: GET
请求示例: https://www.58.linkpc.net/api/wyxw?id=DE0DNAFFwangning
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
id | 是 | string | 输网易云主页ID |
返回参数说明:
名称 | 类型 | 说明 |
---|
返回示例:
artiList({"DE0DNAFFwangning":[{"stitle":"T1560944731557","docid":"JTJ70RMT05329CNI","digest":"今天是农历三月廿三日(妈祖诞辰日),也是中华白海豚保护宣传日","source":"不懂实验室","imgsrc":"http://bjnewsrec-cv.ws.126.net/little20619fcddf5j00suzxw400z9d200u000gwg00ec0082.jpg","title":"中华白海豚保护宣传日|这条科普动画视频送给你~","priority":87,"ptime":"2025-04-20 11:07:32","hasImg":1,"url":"","commentCount":0},{"stitle":"T1500558760612","docid":"JTJ4Q4NN0516J046","digest":"今天,在FB上,和我的留日小伙伴聊天,今天他和我说了今天让他","source":"光酱语言研究所","imgsrc":"http://dingyue.ws.126.net/2025/0420/d6a890e2j00suzw7u000ud000hs00bvm.jpg","title":"看这里!轻松掌握“何でもない/何もない”的三秒秘诀!","priority":86,"ptime":"2025-04-20 10:29:47","hasImg":1,"url":"","commentCount":4},{"stitle":"T1489384732482","docid":"JTHU43Q40514DORP","digest":"查看大图【疾病故事栏目征稿要求】1.真实2.集中叙写自己印象","source":"渡过","imgsrc":"http://bjnewsrec-cv.ws.126.net/little290c2bdf2dfj00suz0x00022d200u000k0g00u000k0.jpg","title":"在实验室遭遇霸凌的研究生 || 渡过青春号","priority":85,"ptime":"2025-04-19 23:12:51","hasImg":1,"url":"","commentCount":0},{"stitle":"T1721385156653","docid":"JOHLKO8U05527C3D","digest":"纸面服刑村霸,再杀人后被执行死刑,但这事儿不能算完!2月14","source":"攀谈两分钟","imgsrc":"http://dingyue.ws.126.net/2025/0216/e05ad988j00srrrim000nd000ic00drp.jpg","title":"纸面服刑村霸,再杀人后被执行死刑,但这事儿不能算完!","priority":60,"ptime":"2025-02-16 17:25:59","hasImg":1,"url":"","commentCount":0},{"stitle":"T1421823007686","docid":"JKL5VFNE0511829H","digest":"张书乐人民网、人民邮电报专栏作者真正扎根于中国文化的那些经典","source":"书乐吐槽","imgsrc":"http://dingyue.ws.126.net/2024/1230/f0b3bc3aj00spa8el0012d000j60085g.jpg","title":"悟空封神,干嘛要“黑”","priority":60,"ptime":"2024-12-30 09:06:23","hasImg":1,"url":"https://3g.163.com/news/article/JKL5VFNE0511829H.html","commentCount":3},{"stitle":"T1487039111178","docid":"JKL43EEI0521D7D4","digest":"本文约4100字阅读需要13分钟身处职场,我们工作时回复最多","source":"凤凰读书","imgsrc":"http://dingyue.ws.126.net/2024/1230/43712fc8j00spa6vy000fd0007m007mg.jpg","title":"古代“打工人”怎么在职场里表达“收到”?","priority":60,"ptime":"2024-12-30 08:33:35","hasImg":1,"url":"https://3g.163.com/news/article/JKL43EEI0521D7D4.html","commentCount":0},{"stitle":"T1668180316215","docid":"JKKTB9C405560SNU","digest":"1张爱玲世界里的人,除了喜欢抬头看月亮,还喜欢低头照镜子,仿","source":"民国女子","imgsrc":"http://dingyue.ws.126.net/2024/1230/860d099bj00spa1f7000dd000hs007kg.jpg","title":"张爱玲的那面“魔镜”","priority":60,"ptime":"2024-12-30 06:35:32","hasImg":1,"url":"https://3g.163.com/news/article/JKKTB9C405560SNU.html","commentCount":1},{"stitle":"T1457578831918","docid":"JKILR77U05198R91","digest":"作者/雷报段轻我们正身处一个被快速改写的消费时代。如今,媒介","source":"蓝鲸财经","imgsrc":"http://dingyue.ws.126.net/2024/1229/3bbd8dcej00sp8f97010qd000u000gwg.jpg","title":"拥抱二次元、告别同质化,休闲餐饮巨头的“突围战”","priority":87,"ptime":"2024-12-29 09:45:57","hasImg":1,"url":"https://3g.163.com/news/article/JKILR77U05198R91.html","commentCount":1},{"imgextra":[{"imgsrc":"http://dingyue.ws.126.net/2024/1227/7aba19c6j00sp4lvm004sd000p000gom.jpg"},{"imgsrc":"http://dingyue.ws.126.net/2024/1227/c7f61b3dj00sp4lvm0041d000p000gom.jpg"}],"stitle":"T1478221783807","docid":"JKDBF9CP0521BRHI","digest":"1607年暮春三月,20岁的徐霞客戴上母亲缝制的远游冠,离开","source":"大道知行知行堂","imgsrc":"http://dingyue.ws.126.net/2024/1227/e2e9ab1dj00sp4lvm002td000p000gom.jpg","title":"徐霞客:万里写入胸怀间","priority":86,"ptime":"2024-12-29 08:30:06","hasImg":1,"url":"https://3g.163.com/news/article/JKDBF9CP0521BRHI.html","commentCount":0},{"stitle":"T1497024802167","docid":"JKIEB8MC0519H58O","digest":"“为了讨好你们,我都累死了。”作者丨梁梁华商韬略出品丨ID:","source":"商业模式桑博士","imgsrc":"http://dingyue.ws.126.net/2024/1229/ade8eb33j00sp89i3000pd000ld0093g.jpg","title":"海底捞,也9块9了!","priority":85,"ptime":"2024-12-29 07:34:54","hasImg":1,"url":"https://3g.163.com/news/article/JKIEB8MC0519H58O.html","commentCount":1}]})4634
错误码格式说明:
名称 | 类型 | 说明 |
---|
代码示例:
<?php
header('Content-type: application/json; charset=utf-8');
date_default_timezone_set('PRC');
$url = 'https://58.linkpc.net/api/wyxw';
$type = isset($_GET['type']) ? $_GET['type'] : '';
if ($type == 'json' || $type == 'JSON') {
$result = file_get_contents($url . '?type=json');
echo $result;
} else {
// 使用cURL获取URL内容
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
// 检查内容类型并输出相应内容
$contentType = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);
curl_close($ch);
if (strpos($contentType, 'image') !== false) {
// 输出图片
header('Content-Type: ' . $contentType);
echo $response;
} elseif (strpos($contentType, 'text') !== false) {
// 输出文字
header('Content-Type: ' . $contentType);
echo $response;
} elseif (strpos($contentType, 'application/json') !== false) {
// 输出JSON
header('Content-Type: application/json');
echo $response;
} else {
// 输出网页返回内容
header('Content-Type: text/html');
echo $response;
}
}
?>