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

接口地址: 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": "251a5db8002fee91cde6dd49577e1ab5",
"ctime": "2025-01-18 02:00",
"title": "益世界《我是大东家》全新代言人揭晓——毛晓彤!",
"description": "在益世界《我是大东家》新春大版本中,毛晓彤将化身为“大东家”与玩家一同驰骋东家商界,做正统经商的“大赢家”。",
"source": "新浪电竞",
"picUrl": "\/\/n.sinaimg.cn\/games\/transform\/88\/w1080h608\/20250118\/c24a-a483f1c4aa4e3bc962117fa8124c4442.png",
"url": "\/\/dj.sina.com.cn\/article\/nefihks2990121.shtml"
},
{
"id": "57e62e55e431feeed649c6ecbc275b15",
"ctime": "2025-01-18 02:00",
"title": "益世界《我是大东家》新春大版本上线,毛晓彤代言TVC首映!",
"description": "影片中,毛晓彤饰演一位俏皮可爱、家财万贯的大东家,带领华夏商队出海经商,远赴万国商博会,积累惊人财富。",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/190\/w640h350\/20250118\/9336-28a6e75546878fae4d7a594059db337a.png",
"url": "\/\/dj.sina.com.cn\/article\/nefihkp4895094.shtml"
},
{
"id": "7bda9914fa28912ea706f01383464763",
"ctime": "2025-01-18 02:00",
"title": "极限之地2024:有惊无险!TYLOO 13-9 IHC",
"description": "极限之地C组胜者组决赛由TYLOO对阵IHC。上半场TYLOO打既定战术的回合没有拿到多少收益,反倒强起局助力队伍拿到分数优势;下半场...",
"source": "新浪电竞",
"picUrl": "\/\/n.sinaimg.cn\/games\/transform\/138\/w600h338\/20250118\/8545-6eac081783b3c03ebfe189421e55749a.jpg",
"url": "\/\/dj.sina.com.cn\/article\/nefihkm5459970.shtml"
},
{
"id": "7de3022761eb9d866410969c0b8e7f45",
"ctime": "2025-01-18 02:00",
"title": "BLAST 赏金赛 S1:韧性极强!paiN 2-1 GL",
"description": "BLAST赏金赛S1:paiN对阵GL。图一炼狱小镇,GL强大火力拿下选图。来到荒漠迷城,巴西队伍扳回一城。决胜图核子危机,双方常规...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/138\/w599h339\/20250118\/247c-7c9f9b46bc2f3e020c5cd8d3ed46f7cb.jpg",
"url": "\/\/dj.sina.com.cn\/article\/nefihks2993440.shtml"
},
{
"id": "7cd6eb826ad1ceb3ab57b1551eb255d2",
"ctime": "2025-01-17 18:00",
"title": "吹牛逼呢!这是阎王家的藏品,你看过吗?",
"description": "通过在《双点医院》和《双点校园》“悉心治理”,双点镇这个小城市终于在玩家手下变得欣欣向荣。虽然玩家作为校长的任期已至,但本着好用就往死...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250117\/d04a-874008be3a073584a2331cf38dd3e7fc.png",
"url": "\/\/dj.sina.com.cn\/article\/nefhmex5262845.shtml"
},
{
"id": "1082c61b2a1fca30e4e026f0575250f9",
"ctime": "2025-01-17 14:00",
"title": "BLAST 赏金赛 S1:融合成功!VP 2-0 COL",
"description": "BLAST赏金赛S1,COL对阵VP,图一VP在自己选图上先做防守方没能拿到比分优势,好在进攻方成功发力将比分反超最终拿下胜利。进...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250117\/db1d-13d5dd647a670ac92babe24e353dd834.jpg",
"url": "\/\/dj.sina.com.cn\/article\/neffyre6673105.shtml"
},
{
"id": "363da0e8204f172c8fca045e8ee1190c",
"ctime": "2025-01-17 14:00",
"title": "BLAST 赏金赛 S1:首秀展示火力!FaZe 2-1 M80",
"description": "BLAST赏金赛S1迎来EliGE在FaZe的首秀,挑战他们的是美洲战队M80。图一karrigan和他的门下弟子都发挥不错,尤其...",
"source": "新浪电竞",
"picUrl": "\/\/n.sinaimg.cn\/games\/transform\/639\/w400h239\/20250117\/0864-02afe89f7bb8bca67a242fe964ee01a3.jpg",
"url": "\/\/dj.sina.com.cn\/article\/neffyre6674136.shtml"
},
{
"id": "c65454527a60b41a183f26d167b395db",
"ctime": "2025-01-17 14:00",
"title": "BLAST 赏金赛 S1:友好切磋!NAVI 2-0 Imperial fe",
"description": "S级大赛首次出现男队对阵女队的较量,由去年年度最佳战队NAVI对阵年度最佳女子战队Imperialfe。Imperialfe展现出...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250117\/f05b-5b80f6b814d5f703619f86907bbc2f7d.jpg",
"url": "\/\/dj.sina.com.cn\/article\/neffyqz5972417.shtml"
},
{
"id": "2cd957af6c054f57be2283fbaf4c25f5",
"ctime": "2025-01-17 14:00",
"title": "BLAST 赏金赛 S1:旗开得胜!EF 2-0 Fluxo",
"description": "BLAST赏金赛S1,EF对阵Fluxo。图一荒漠迷城,永恒之火凭借良好的团队决策击败对手。来到EF选图沙二,MAJ3R的爆种加持...",
"source": "新浪电竞",
"picUrl": "\/\/n.sinaimg.cn\/games\/transform\/639\/w400h239\/20250117\/a77e-d67a7ecf186c7bae62a43368aba930cd.jpg",
"url": "\/\/dj.sina.com.cn\/article\/neffyrc5408302.shtml"
},
{
"id": "da52324ced0558c79fd6ef933b26d825",
"ctime": "2025-01-17 14:00",
"title": "Banks:G2曾想签下b1t,但遭NAVI拒绝",
"description": "G2接触了NatusVincere战队,试图买下b1t来留住m0NESY。b1t和m0NESY从在NAVI青训队时就是非常亲密的朋友...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250117\/fe77-42762f44754cdb8f6d5fc83d0afbfde0.png",
"url": "\/\/dj.sina.com.cn\/article\/neffyqz5973216.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);