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

接口地址: 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": "74bce1d024906f2ddc810087a87e259d",
"ctime": "2025-02-21 19:00",
"title": "《洛克王国:世界》「等等鸭测试」招募开启",
"description": "2月20日,《洛克王国:世界》第二次技术测试‘等等鸭测试’全网招募活动正式启动,诚邀各位小洛克一同踏上这场充满惊喜与回忆的冒险之旅!现...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/719\/w500h219\/20250221\/e7ea-69427a2e20e73ce60aaa872a48c07534.png",
"url": "\/\/dj.sina.com.cn\/article\/nemfwmx2675201.shtml"
},
{
"id": "01e1ad6b547958a0af97b55a37473ec9",
"ctime": "2025-02-21 18:00",
"title": "动作射击游戏《UNYIELDER -不屈者-》宣布推出体验版 预计25年春发售",
"description": "集英社游戏今日(2\/21)宣布,与TrueWorldStudios共同开发,将于2025年春季发售的《UNYIELDER-不屈者-》序...",
"source": "新浪电竞",
"picUrl": "\/\/n.sinaimg.cn\/games\/transform\/215\/w650h365\/20250221\/7c37-c16d3662e7f03c70745f347729339a29.png",
"url": "\/\/dj.sina.com.cn\/article\/nemfseh1567194.shtml"
},
{
"id": "de43eb3df4b95dc388d63c3a3e600430",
"ctime": "2025-02-21 16:00",
"title": "Banks:如今的CS还需要MR12吗?",
"description": "Banks发布视频,分享了自己眼中当前CS赛事中MR12的运用情况。并且再度提出了一个关键问题:如今的CS还需要MR12吗?",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250221\/06d1-1ce1b2260fa5f19ddd61b30284b533fd.png",
"url": "\/\/dj.sina.com.cn\/article\/nemfscz2718436.shtml"
},
{
"id": "85efe04e54e9d3527830794f39fc7cda",
"ctime": "2025-02-21 16:00",
"title": "梦幻联赛S25小组赛加赛结束 Liquid晋级 YB和GG被淘汰",
"description": "梦幻联赛S25小组赛的B组加赛结束,经过两轮的角逐,Liquid成功击败了YB和GG晋级第二阶段小组赛,而YB和GG被淘汰。",
"source": "新浪电竞",
"picUrl": "\/\/n.sinaimg.cn\/games\/transform\/639\/w400h239\/20250217\/87ee-2276bc83b618377a08edee332e90fcec.jpg",
"url": "\/\/dj.sina.com.cn\/article\/nemfseh1488275.shtml"
},
{
"id": "a60fd1544cf3f60902e8af7e376e7eb6",
"ctime": "2025-02-21 15:00",
"title": "引领亚洲电竞新篇章:无畏契约正式加入ACL电竞亚冠赛事阵容",
"description": "由英雄电竞主办的电子竞技亚洲冠军联赛(HEROESPORTSAsianChampionsLeague,简称:ACL)无畏契约...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250221\/8a4a-ae5ff07f0bfba0be44b48231f8648484.png",
"url": "\/\/dj.sina.com.cn\/article\/nemfmwk1609432.shtml"
},
{
"id": "02c6e3b70c822d2ea3dfe54bc93a1130",
"ctime": "2025-02-21 15:00",
"title": "由《X-COM》之父打造的动作策略游戏,《脑怪来袭!脑晶保卫战》即将上线",
"description": "在今天发布的全新预告片中,ArcGames与SnapshotGames揭晓了《脑怪来袭!脑晶保卫战》,这款全新动作策略游戏将激烈的...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/215\/w650h365\/20250221\/693a-63a034fefaf7552a125a43e7b2f9ac60.jpg",
"url": "\/\/dj.sina.com.cn\/article\/nemfsei8254545.shtml"
},
{
"id": "da0c5b754b88ea311576b747fd3d2278",
"ctime": "2025-02-21 15:00",
"title": "影驰 GeForce RTX 5070 Ti 金属大师 OC评测:DLSS 4超强发挥",
"description": "随着AI技术的飞速发展,影驰GeForceRTX5070Ti系列GPU也正式与玩家和创作者见面。同样作为一款搭载最新NVIDI...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250221\/79ba-8a37844797bf2c3678a4ba073354b473.jpg",
"url": "\/\/dj.sina.com.cn\/article\/nemfsei8255296.shtml"
},
{
"id": "e0ee9bc66696087372fce4dc076a4791",
"ctime": "2025-02-21 15:00",
"title": "DLSS 4及多帧生成支持更多游戏,全新Game Ready驱动发布",
"description": "全新GeForceRTX5070Ti现已发布,最新GeForceGameReady驱动也于即日发布。用户需安装此驱动以在系统...",
"source": "新浪电竞",
"picUrl": "\/\/n.sinaimg.cn\/games\/transform\/639\/w400h239\/20250221\/3331-46247bc3c9324e17eff115e4c63e44f9.jpg",
"url": "\/\/dj.sina.com.cn\/article\/nemfsei8256015.shtml"
},
{
"id": "52a99e11d9735075d41e1484d6c02370",
"ctime": "2025-02-21 15:00",
"title": "炫酷来袭,耕升 GeForce RTX 5070 Ti 炫光·超 OC带来超高性能",
"description": "昨天,耕升发布了新成员耕升GeForceRTX5070Ti追风,而今天耕升又带来了耕升GeForceRTX5070Ti...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250221\/608b-6796f72598461b08253e31153818b400.jpg",
"url": "\/\/dj.sina.com.cn\/article\/nemfseh1482218.shtml"
},
{
"id": "ba166067b9dc1ab24b688630660646b8",
"ctime": "2025-02-21 15:00",
"title": "东鹏特饮再携KPL火热开赛,移动电竞将首进国家“鸟巢”",
"description": "2025年2月,王者荣耀职业联赛(KPL)春季赛战火重燃。作为连续第四年官方指定功能饮料合作伙伴,东鹏特饮再度以“BUFF官”身份亮相...",
"source": "新浪电竞",
"picUrl": "https:\/\/n.sinaimg.cn\/games\/639\/w400h239\/20250221\/82af-08dca230df76896a33e8f166fc80ff27.jpg",
"url": "\/\/dj.sina.com.cn\/article\/nemfscz2716093.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);