英雄联盟数据LOL接口电竞api开发比分网分享@TOC
数据来自marz数据alan@marzesport.com
各大赛区的lol数据都有
1.获取赛事
接口:{
{host1}}/api/series/9870?
示例:赛事相关接口
{
"begin_at": "2014-09-18T00:00:00Z", //赛事开始时间 string
"description": "", //赛事描述(空字段)string
"end_at": "2014-10-19T23:00:00Z", //赛事结束时间 string
"full_name": "2014", //赛事全称 string
"id": 4, //赛事ID int
"league": {
//联赛
"id": 297, //所属联赛ID int
"image_url": "https://xxxx.png", //所属联赛logo string
"modified_at": "2020-08-18T15:47:01Z", //更新时间 string
"name": "World Championship", //联赛名称 string
"slug": "league-of-legends-world-championship", //全称 string
"url": "" //联赛官网地址(空字段)string
},
"league_id": 297, //所属联赛ID int
"modified_at": "2015-06-14T07:27:03Z", //更新时间 string
"name": "", //联赛名称(空字段)string
"season": "", //赛季 string
"slug": "league-of-legends-world-championship-2014", //全称 string
"tier": "", //等级 string
"tournaments": [ //小组
{
"begin_at": "2014-09-18T11:00:00Z", //小组开始时间 string
"end_at": "2014-09-21T19:00:00Z", //小组结束时间 string
"id": 5, //小组ID int
"league_id": 297, //所属联赛ID int
"live_supported": true, //是否有实时数据(true是/否)bool
"modified_at": "2019-07-08T15:56:45Z", //更新时间 string
"name": "Group a", //小组名称 string
"prizepool": "70000 United States Dollar", //奖金 string
"serie_id": 4, //赛事ID int
"slug": "world-championship-2014-group-a", //全称 string
"winner_id": 0, //获胜ID(0代表无,小组赛无获胜队伍)int
"winner_type": "Team" //获胜类型(team:队伍)string
}
],
"videogame": {
//游戏信息
"current_version": "",
"id": 1,
"name": "LoL",
"slug": "league-of-legends"
int
"winner_id": 13, //赛事获胜队伍ID int
"winner_type": "Team", //获胜类型 string
"year": 2014 //年份 int
}
2.获取比赛
接口:{
{host1}}/api/match/12234
示例:比赛相关接口
{
"id": 562370, //比赛ID int
"begin_at": "2020-08-20T08:04:57Z", //比赛开始时间 string
"end_at": "2020-08-20T09:43:36Z", //比赛结束时间 string
"scheduled_at": "2020-08-20T08:00:00Z", //预计时间 string
"league_id": 293, //所属联赛ID int
"live_url": "https://www.twitch.tv/lck", //比赛直播地址 string
"match_type": "best_of", //比赛类型 string
"name": "T1 vs DWG", //比赛名称 string
"number_of_games": 3, //小局数量 int
"rescheduled": false, //是否重新安排(true:是/false:否) bool
"winner_id": 1453, //获胜队伍ID int
"status": "finished", //比赛状态(not_started:未开始/running:进行中/finished:已结束)string
"videogame": {
//游戏信息
"id": 1,
"name": "LoL"
},
"results": [ //比分信息
{
"score": 0, //得分 int
"team_id": 126061 //队伍ID int