Closed blood72 closed 3 years ago
Maybe MatchReferenceDto
is no longer needed.
It is possible to inquire only by receiving the ID right away starting with match-v5.
match-v5 ─ get match ID lists.
[
"KR_5151250168",
"KR_5151166379",
"KR_5151200660",
"KR_5151097788",
"KR_5151104248",
"KR_5151027138",
"KR_5146895499",
"KR_5143115394",
"KR_5143162423",
"KR_5143049678"
]
match-v5 ─ get match detail via ID.
{
"metadata":{
"dataVersion":"2",
"matchId":"KR_5151250168",
"participants":[
"~PARTICIPANT_0_PUUID~",
"~PARTICIPANT_1_PUUID~",
"~PARTICIPANT_2_PUUID~",
"~PARTICIPANT_3_PUUID~",
"~PARTICIPANT_4_PUUID~",
"~PARTICIPANT_5_PUUID~",
"~PARTICIPANT_6_PUUID~",
"~PARTICIPANT_7_PUUID~",
"~PARTICIPANT_8_PUUID~",
"~PARTICIPANT_9_PUUID~"
]
},
"info":{
"gameCreation":1619283798000,
"gameDuration":525666,
"gameId":5151250168,
"gameMode":"ARAM",
"gameName":"teambuilder-match-5151250168",
"gameStartTimestamp":1619283818380,
"gameType":"MATCHED_GAME",
"gameVersion":"11.8.370.4668",
"mapId":12,
"participants":[
{
"assists":25,
"baronKills":0,
"bountyLevel":0,
"champExperience":7944,
"champLevel":11,
"championId":267,
"championName":"Nami",
"championTransform":0,
"consumablesPurchased":1,
"damageDealtToBuildings":832,
"damageDealtToObjectives":832,
"damageDealtToTurrets":832,
"damageSelfMitigated":1400,
"deaths":1,
"detectorWardsPlaced":0,
"doubleKills":0,
"dragonKills":0,
"firstBloodAssist":true,
"firstBloodKill":false,
"firstTowerAssist":true,
"firstTowerKill":false,
"gameEndedInEarlySurrender":false,
"gameEndedInSurrender":false,
"goldEarned":6163,
"goldSpent":2200,
"individualPosition":"Invalid",
"inhibitorKills":0,
"inhibitorsLost":0,
"item0":4642,
"item1":3070,
"item2":3067,
"item3":0,
"item4":0,
"item5":0,
"item6":2052,
"itemsPurchased":4,
"killingSprees":0,
"kills":0,
"lane":"NONE",
"largestCriticalStrike":0,
"largestKillingSpree":0,
"largestMultiKill":0,
"longestTimeSpentLiving":162,
"magicDamageDealt":3857,
"magicDamageDealtToChampions":2639,
"magicDamageTaken":3688,
"neutralMinionsKilled":0,
"nexusKills":0,
"nexusLost":0,
"objectivesStolen":0,
"objectivesStolenAssists":0,
"participantId":1,
"pentaKills":0,
"perks":{
"statPerks":{
"defense":5001,
"flex":5008,
"offense":5007
},
"styles":[
{
"description":"primaryStyle",
"selections":[
{
"perk":8214,
"var1":204,
"var2":1284,
"var3":0
},
{
"perk":8226,
"var1":250,
"var2":330,
"var3":0
},
{
"perk":8210,
"var1":1,
"var2":0,
"var3":0
},
{
"perk":8236,
"var1":8,
"var2":0,
"var3":0
}
],
"style":8200
},
{
"description":"subStyle",
"selections":[
{
"perk":8009,
"var1":3202,
"var2":0,
"var3":0
},
{
"perk":8014,
"var1":60,
"var2":0,
"var3":0
}
],
"style":8000
}
]
},
"physicalDamageDealt":1432,
"physicalDamageDealtToChampions":386,
"physicalDamageTaken":1365,
"profileIcon":4781,
"puuid":"~PARTICIPANT_0_PUUID~",
"quadraKills":0,
"riotIdName":"",
"riotIdTagline":"",
"role":"DUO",
"sightWardsBoughtInGame":0,
"spell1Casts":17,
"spell2Casts":51,
"spell3Casts":47,
"spell4Casts":4,
"summoner1Casts":2,
"summoner1Id":4,
"summoner2Casts":3,
"summoner2Id":13,
"summonerId":"~PARTICIPANT_0_SUMMONER_ID~",
"summonerLevel":583,
"summonerName":"~PARTICIPANT_0_SUMMONER_NAME~",
"teamEarlySurrendered":false,
"teamId":100,
"teamPosition":"",
"timeCCingOthers":17,
"timePlayed":525,
"totalDamageDealt":5289,
"totalDamageDealtToChampions":3025,
"totalDamageShieldedOnTeammates":1284,
"totalDamageTaken":5127,
"totalHeal":4344,
"totalHealsOnTeammates":3041,
"totalMinionsKilled":0,
"totalTimeCCDealt":94,
"totalTimeSpentDead":14,
"totalUnitsHealed":5,
"tripleKills":0,
"trueDamageDealt":0,
"trueDamageDealtToChampions":0,
"trueDamageTaken":73,
"turretKills":1,
"turretsLost":0,
"unrealKills":0,
"visionScore":0,
"visionWardsBoughtInGame":0,
"wardsKilled":0,
"wardsPlaced":0,
"win":true
},
"~PARTICIPANT_1_OBJECT~",
"~PARTICIPANT_2_OBJECT~",
"~PARTICIPANT_3_OBJECT~",
"~PARTICIPANT_4_OBJECT~",
"~PARTICIPANT_5_OBJECT~",
"~PARTICIPANT_6_OBJECT~",
"~PARTICIPANT_7_OBJECT~",
"~PARTICIPANT_8_OBJECT~",
"~PARTICIPANT_9_OBJECT~"
],
"platformId":"KR",
"queueId":450,
"teams":[
{
"bans":[],
"objectives":{
"baron":{
"first":false,
"kills":0
},
"champion":{
"first":true,
"kills":28
},
"dragon":{
"first":false,
"kills":0
},
"inhibitor":{
"first":true,
"kills":1
},
"riftHerald":{
"first":false,
"kills":0
},
"tower":{
"first":true,
"kills":4
}
},
"teamId":100,
"win":true
},
"~TEAM_2_OBJECT~"
]
}
}
match-v4 is being deprecated on June 14th, 2021. As a result, compatibility checks should be prepared in advance with the
dolejska-daniel/riot-api
version up.https://github.com/dolejska-daniel/riot-api-league/issues/1 https://developer.riotgames.com/apis#match-v5