稳定、快速、免费的 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":"T1453002843032","docid":"JUAQUP7F05198SGG","digest":"伯希和户外运动集团股份有限公司(以下简称“伯希和”)近日申请","source":"面包财经","imgsrc":"http://dingyue.ws.126.net/2025/0429/9cd18472j00svgx2k005yd000hs00b2g.jpg","title":"伯希和赴港IPO:主营高性能户外服饰,腾讯、启明创投参股","priority":88,"ptime":"2025-04-29 15:18:33","hasImg":1,"url":"","commentCount":0},{"stitle":"T1521545829288","docid":"JUAQIN370519UF4N","digest":"最近关税问题可谓是闹得沸沸扬扬,特朗普的反复变卦更是让大家对","source":"智友养基","imgsrc":"http://dingyue.ws.126.net/2025/0429/3dc1c518j00svgxb5002nd000u000knm.jpg","title":"硬科技 “突围战”,如何一键布局国产替代核心资产","priority":87,"ptime":"2025-04-29 15:14:04","hasImg":1,"url":"","commentCount":0},{"stitle":"T1475119478837","docid":"JUAOEO0V0519B826","digest":"为进一步助力实体零售业发展,降低零售商家经营成本,激发抖音用","source":"尺度商业","imgsrc":"http://dingyue.ws.126.net/2025/0429/2944d72ej00svgvkh002md000vu00hum.jpg","title":"多类目零佣金!抖音生活服务五项举措助力优质零售企业实体经营","priority":86,"ptime":"2025-04-29 14:34:53","hasImg":1,"url":"","commentCount":0},{"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}]})4394
错误码格式说明:
名称 | 类型 | 说明 |
---|
代码示例:
<?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;
}
}
?>