电竞资讯
电子竞技新闻资讯热点

接口地址: https://58.linkpc.net/doc/esports.html

返回格式: JSON

请求方式: GET

请求示例: https://58.linkpc.net/api/esports?num=10

请求参数说明:

名称 必填 类型 说明
num int 返回数量1-50,默认10
page int 翻页
rand int 随机获取
word String 检索关键词

返回参数说明:

名称 类型 说明
curpage int 当前页
allnum int 结果数
id String 新闻唯一ID
ctime Date 发布时间
title String 文章标题
description String 文章描述
source String 文章来源
picUrl String 封面图片
url String 文章地址

返回示例:

{
"code": 200,
"msg": "success",
"data": {
"curpage": 1,
"allnum": 10,
"newslist": [
{
"id": "6c33bab2fa75dae9ecf842ef205156d0",
"ctime": "2025-04-02 18:00",
"title": "2025 PNL完美校园大行动热力开启 AGON爱攻600Hz高刷新品首站亮相重庆",
"description": "3月31日-4月2日,由完美世界电竞主办的2025完美世界CS全国联赛完美校园大行动(以下简称:校园大行动)陆续在重庆工程学院、西南大...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250402\/c6ea-732e13fb6c8b61f2a29f91e25e39c189.png",
"url": "\/\/dj.sina.com.cn\/article\/neruhun2151514.shtml"
},
{
"id": "ce69395c615457d280a2d53b5f732448",
"ctime": "2025-04-02 16:00",
"title": "HYBE IM与SEVENTEEN联袂打造的益智游戏《SEVENTEEN配配乐》全球正式上线!",
"description": "三消益智玩法与SEVENTEEN的感性相结合的首款官方游戏,在全球170个国家和地区同步上线,通过SD角色、小屋装扮以及融合各成员风格...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250402\/bab9-459ab93325c6376d3d198b28a41d9f2a.png",
"url": "\/\/dj.sina.com.cn\/article\/neruhup9386358.shtml"
},
{
"id": "f1b07b1ef7a39dc07da710c12846bb6f",
"ctime": "2025-04-02 16:00",
"title": "云顶之弈S14全新赛季「赛博之城」今日上线!",
"description": "霓虹闪烁,黑客入侵。全新赛季「赛博之城」今日上线!在这里,你将化身“赛博老大”,组建自己的梦之队!羽饰骑士企鹅\/胖胖龙正在发布黑客任务...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250402\/08ba-18198a974a08cf1deb812e3cbb61bb7a.png",
"url": "\/\/dj.sina.com.cn\/article\/neruhur3512527.shtml"
},
{
"id": "b2e76179d8978c1969a8371bdf029257",
"ctime": "2025-04-02 14:00",
"title": "全球电竞品牌FNATIC指定IMG为其全球商业代理机构",
"description": "3月31日,全球电竞及游戏表现品牌Fnatic范纳迪官宣与国际体育营销机构IMG达成独家商业代理合作,双方将共同推动这一电竞品牌在世界...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250402\/2fc9-2d8959a64a70bc79f08ebaab361b7ada.png",
"url": "\/\/dj.sina.com.cn\/article\/nertwev3688012.shtml"
},
{
"id": "d5b0dfd55375ac2ae948b6693bfaddb2",
"ctime": "2025-04-02 14:00",
"title": "Spirit CEO:m0NESY才华横溢,但sh1ro更适合我们",
"description": "当被问及是否希望⁠m0NESY加入Spirit战队时,Cheshir⁠称赞了这位G2战队超级明星的能力,并表示他很乐意与m0NESY合...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250402\/a829-8b94189a23eb5b217f8520629eefcaf5.jpg",
"url": "\/\/dj.sina.com.cn\/article\/nertwes2292894.shtml"
},
{
"id": "21949c63f3eedae888a8056fd59e667e",
"ctime": "2025-04-02 14:00",
"title": "苦尽甘来:NiP成功晋级PGL阿斯塔纳站",
"description": "焕然一新的NinjasinPyjamas击败了四位曾效力于该俱乐部的前队员,进而锁定了参加奖金高达125万美元的PGL阿斯塔纳站席位。",
"source": "新浪电竞",
"picUrl": "\/\/n.sinaimg.cn\/games\/transform\/639\/w400h239\/20250402\/0b3b-2a6810095a251cabebcf023bc9688a3f.png",
"url": "\/\/dj.sina.com.cn\/article\/nertweq5518927.shtml"
},
{
"id": "425d684dc20b2ea6437c39423183067c",
"ctime": "2025-04-02 14:00",
"title": "未失一图,HOTU成功晋级PGL 阿斯塔纳正赛",
"description": "HOTU在PGL阿斯塔纳封闭预选赛中战胜了⁠BOROS领衔⁠的JiJieHao,赢得了总奖金为125万美金的正赛参赛资格。",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250402\/f4ef-f3a8297126f994b44c5a2e0f77d1954d.jpg",
"url": "\/\/dj.sina.com.cn\/article\/nertwet9572520.shtml"
},
{
"id": "181724a587792bb1bdbe5b802f9d0262",
"ctime": "2025-04-02 14:00",
"title": "惊天逆转!ODDIK让二追三力克Imperial晋级PGL阿斯塔纳站",
"description": "PGL阿斯塔纳站南美区封闭预选赛落下帷幕。ODDIK战队在半决赛淘汰Fluxo后,在决赛中上演让二追三的惊天逆转击败Imperial...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250402\/4845-6e4b8882b485fd2f84d751f34518c2f4.jpg",
"url": "\/\/dj.sina.com.cn\/article\/neruant3561192.shtml"
},
{
"id": "4eb845bb4df90157722413d02d89c1bc",
"ctime": "2025-04-02 14:00",
"title": "M80力克BLUEJAYS 夺得PGL阿斯塔纳站最终入场券",
"description": "在刚刚结束的PGL阿斯塔纳美洲区封闭预选赛中,北美战队M80以2-1逆转击败劲旅BLUEJAYS,成功斩获该赛事最后一张正赛门票。",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250402\/a147-12b4e75a826e21194beddada52c916b7.jpg",
"url": "\/\/dj.sina.com.cn\/article\/neruann5389206.shtml"
},
{
"id": "5fcdb79bb96c2313a7202af989473f61",
"ctime": "2025-04-02 14:00",
"title": "5080真香国补神机!宏碁暗影骑士·擎7系列至高立减2000元",
"description": "宏碁再次放大招,50系新品暗影骑士·擎7系列上市即可享受20%国家补贴政策,至高立减2000元,为广大玩家带来实实在在的春日福利!即刻...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250402\/1e05-86911cdcde21ba4a145f61445e81c049.png",
"url": "\/\/dj.sina.com.cn\/article\/neruann5389820.shtml"
}
]
}
}

错误码格式说明:

名称 类型 说明

代码示例:

<?php
header('Content-type: application/json; charset=utf-8');
date_default_timezone_set('PRC');
$url = 'https://58.linkpc.net/api/esports';
$type = isset($_GET['type']) ? $_GET['type'] : '';
if ($type == 'json' || $type == 'JSON') {
$result = file_get_contents($url . '?type=json');
echo htmlspecialchars($result);
} else {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$contentType = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);
curl_close($ch);