Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know if a live Featured Game(MATCHED_GAME) has ended in League Of Legends RIOT Api

I'm getting the gameList(List[FeaturedGameInfo]) from the /lol/spectator/v4/featured-games api.

Now after querying matchv4 api at /lol/match/v4/matches/{matchId} with one of the live gameId from above gameList, no data is returned.

{
    "status": {
        "status_code": 404,
        "message": "Data not found"
    }
}

Although, it returns proper detailed data for past/non-live matches. But no data for live games.

So, I want to check if a match is currently live or not or if it has already ended.

I'm using V4 api.

like image 803
Kumar Ashutosh Avatar asked Sep 13 '25 17:09

Kumar Ashutosh


1 Answers

In the riot api documentation you find the data that you search for and the links to get the data of the active games

https://developer.riotgames.com/docs/lol

EXMPL
GET ​https://127.0.0.1:2999/liveclientdata/activeplayer
GET ​https://127.0.0.1:2999/liveclientdata/playerlist
GET ​https://127.0.0.1:2999/liveclientdata/gamestats


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!