### Start Replay Recording Source: https://developer.riotgames.com/ddragon.html Initiates a recording of the replay, specifying the codec and output file path. Subsequent GET requests to the recording resource will update the status. ```http POST https://127.0.0.1:2999/replay/recording ``` -------------------------------- ### GET /liveclientdata/playermainrunes Source: https://developer.riotgames.com/ddragon.html Retrieve the basic runes of any player. ```APIDOC ## GET /liveclientdata/playermainrunes ### Description Retrieve the basic runes of any player. ### Method GET ### Endpoint https://127.0.0.1:2999/liveclientdata/playermainrunes ### Parameters #### Query Parameters - **riotId** (string) - Optional - The Riot ID of the player. ### Response #### Success Response (200) - **keystone** (object) - The player's keystone rune. - **primaryRuneTree** (object) - The primary rune tree. - **secondaryRuneTree** (object) - The secondary rune tree. #### Response Example { "keystone": { "displayName": "Electrocute", "id": 8112, "rawDescription": "perk_tooltip_Electrocute", "rawDisplayName": "perk_displayname_Electrocute" }, "primaryRuneTree": { "displayName": "Domination", "id": 8100, "rawDescription": "perkstyle_tooltip_7200", "rawDisplayName": "perkstyle_displayname_7200" }, "secondaryRuneTree": { "displayName": "Sorcery", "id": 8200, "rawDescription": "perkstyle_tooltip_7202", "rawDisplayName": "perkstyle_displayname_7202" } } ``` -------------------------------- ### GET /liveclientdata/gamestats Source: https://developer.riotgames.com/ddragon.html Retrieve basic data about the current game. ```APIDOC ## GET /liveclientdata/gamestats ### Description Basic data about the game. ### Method GET ### Endpoint https://127.0.0.1:2999/liveclientdata/gamestats ### Response #### Success Response (200) - **gameMode** (string) - The current game mode. - **gameTime** (number) - The current game time. - **mapName** (string) - The name of the map. - **mapNumber** (integer) - The ID of the map. - **mapTerrain** (string) - The terrain type. #### Response Example { "gameMode": "CLASSIC", "gameTime": 0.0, "mapName": "Map11", "mapNumber": 11, "mapTerrain": "Default" } ``` -------------------------------- ### Get Game Client Information Source: https://developer.riotgames.com/ddragon.html Retrieves information about the game client process itself. ```http GET https://127.0.0.1:2999/replay/game ``` -------------------------------- ### Example Deck Code Source: https://developer.riotgames.com/docs/lor An example of a deck code string used for sharing Legends of Runeterra decks between players. This string can be encoded and decoded using libraries. ```plaintext CEAAEBYBAEDRMGREFYZDKCABAABQMCYSCQNB2JYCAQAQABYMFIWAMAIBBEKCAIRHFE ``` -------------------------------- ### GET /liveclientdata/playerlist Source: https://developer.riotgames.com/ddragon.html Retrieves a list of all players in the game and their current statistics. ```APIDOC ## GET /liveclientdata/playerlist ### Description Retrieve the list of heroes in the game and their stats. ### Method GET ### Endpoint https://127.0.0.1:2999/liveclientdata/playerlist ### Response #### Success Response (200) - **players** (array) - List of player objects containing champion name, team, items, and scores #### Response Example [ { "championName": "Annie", "summonerName": "Riot Tuxedo", "team": "ORDER" } ] ``` -------------------------------- ### GET /liveclientdata/activeplayerabilities Source: https://developer.riotgames.com/ddragon.html Retrieves the ability details for the active player. ```APIDOC ## GET /liveclientdata/activeplayerabilities ### Description Get Abilities for the active player. ### Method GET ### Endpoint https://127.0.0.1:2999/liveclientdata/activeplayerabilities ### Response #### Success Response (200) - **abilities** (object) - Map of ability keys (Q, W, E, R, Passive) to ability details #### Response Example { "Q": { "displayName": "Disintegrate", "id": "AnnieQ" } } ``` -------------------------------- ### GET /val/content/v1/contents Source: https://developer.riotgames.com/docs/valorant Retrieve Valorant content, with an optional filter for locale. ```APIDOC ## GET /val/content/v1/contents ### Description Get content; optionally filtered by locale. ### Method GET ### Endpoint /val/content/v1/contents ### Parameters #### Query Parameters - **locale** (string) - Optional - Locale code to filter content. ``` -------------------------------- ### Get Replay Sequence Source: https://developer.riotgames.com/ddragon.html Returns the sequence of keyframes currently being applied to the replay. ```http GET https://127.0.0.1:2999/replay/sequence ``` -------------------------------- ### GET /liveclientdata/activeplayerrunes Source: https://developer.riotgames.com/ddragon.html Retrieves the full list of runes for the active player. ```APIDOC ## GET /liveclientdata/activeplayerrunes ### Description Retrieve the full list of runes for the active player. ### Method GET ### Endpoint https://127.0.0.1:2999/liveclientdata/activeplayerrunes ### Response #### Success Response (200) - **keystone** (object) - Keystone rune details - **primaryRuneTree** (object) - Primary tree details - **secondaryRuneTree** (object) - Secondary tree details - **generalRunes** (array) - List of general runes - **statRunes** (array) - List of stat modifier runes #### Response Example { "keystone": { "displayName": "Electrocute", "id": 8112 } } ``` -------------------------------- ### GET /val/status/v1/platform-data Source: https://developer.riotgames.com/docs/valorant Retrieve the current status of the Valorant platform. ```APIDOC ## GET /val/status/v1/platform-data ### Description Get VALORANT status for the given platform. ### Method GET ### Endpoint /val/status/v1/platform-data ``` -------------------------------- ### Get Replay Render Properties Source: https://developer.riotgames.com/ddragon.html Returns the current render properties of the replay. This can include camera settings and other visual configurations. ```http GET https://127.0.0.1:2999/replay/render ``` -------------------------------- ### Get Account Info by PUUID Source: https://developer.riotgames.com/ddragon.html Fetch account information (gameName + tagLine) by PUUID. Requires ACCOUNT-V1. ```rest GET https://developer.riotgames.com/apis#account-v1/GET_getByPuuid /riot/account/v1/accounts/by-puuid/{puuid} ``` -------------------------------- ### Get All Players List Source: https://developer.riotgames.com/docs/lol Retrieve a list of all heroes in the game, including their champion name, status (dead/alive), level, position, and summoner information. ```json [ { "championName": "Annie", "isBot": false, "isDead": false, "items": [...], "level": 1, "position": "MIDDLE", "rawChampionName": "game_character_displayname_Annie", "respawnTimer": 0.0, "runes": {...}, "scores": {...}, "skinID": 0, "summonerName": "Riot Tuxedo", "riotId": "Riot Tuxedo#TXC1", "riotIdGameName": "Riot Tuxedo", "riotIdTagLine": "TXC1", "summonerSpells": {...}, "team": "ORDER" }, ... ] ``` -------------------------------- ### GET /val/ranked/v1/leaderboards/by-act/{actId} Source: https://developer.riotgames.com/docs/valorant Retrieve the leaderboard for the competitive queue for a specific act. ```APIDOC ## GET /val/ranked/v1/leaderboards/by-act/{actId} ### Description Get leaderboard for the competitive queue. ### Method GET ### Endpoint /val/ranked/v1/leaderboards/by-act/{actId} ### Parameters #### Path Parameters - **actId** (string) - Required - The unique identifier of the act. ``` -------------------------------- ### GET /val/match/v1/recent-matches/by-queue/{queue} Source: https://developer.riotgames.com/docs/valorant Retrieve a list of recent matches for a specific queue. ```APIDOC ## GET /val/match/v1/recent-matches/by-queue/{queue} ### Description Get recent matches. ### Method GET ### Endpoint /val/match/v1/recent-matches/by-queue/{queue} ### Parameters #### Path Parameters - **queue** (string) - Required - The queue identifier. ``` -------------------------------- ### GET /val/match/v1/matchlists/by-puuid/{puuid} Source: https://developer.riotgames.com/docs/valorant Retrieve a list of matches played by a specific player identified by their PUUID. ```APIDOC ## GET /val/match/v1/matchlists/by-puuid/{puuid} ### Description Get matchlist for games played by PUUID. ### Method GET ### Endpoint /val/match/v1/matchlists/by-puuid/{puuid} ### Parameters #### Path Parameters - **puuid** (string) - Required - The unique player identifier. ``` -------------------------------- ### GET /liveclientdata/activeplayer Source: https://developer.riotgames.com/ddragon.html Retrieves comprehensive data about the active player, including champion stats, gold, level, and identity information. ```APIDOC ## GET /liveclientdata/activeplayer ### Description Get all data about the active player. ### Method GET ### Endpoint https://127.0.0.1:2999/liveclientdata/activeplayer ### Response #### Success Response (200) - **abilities** (object) - Player abilities data - **championStats** (object) - Detailed champion statistics - **currentGold** (number) - Current gold amount - **fullRunes** (object) - Full rune configuration - **level** (number) - Current champion level - **summonerName** (string) - Summoner name - **riotId** (string) - Full Riot ID - **riotIdGameName** (string) - Riot ID game name - **riotIdTagLine** (string) - Riot ID tagline #### Response Example { "championStats": { "abilityHaste": 0.0, "attackDamage": 0.0, "currentHealth": 0.0, "maxHealth": 0.0 }, "summonerName": "Riot Tuxedo", "riotId": "Riot Tuxedo#TXC1" } ``` -------------------------------- ### Get Active Player Abilities Source: https://developer.riotgames.com/docs/lol Retrieve the abilities for the active player, including their level, display name, ID, and raw descriptions. ```json { "E": { "abilityLevel": 0, "displayName": "Molten Shield", "id": "AnnieE", "rawDescription": "GeneratedTip_Spell_AnnieE_Description", "rawDisplayName": "GeneratedTip_Spell_AnnieE_DisplayName" }, "Passive": { "displayName": "Pyromania", "id": "AnniePassive", "rawDescription": "GeneratedTip_Passive_AnniePassive_Description", "rawDisplayName": "GeneratedTip_Passive_AnniePassive_DisplayName" }, "Q": { "abilityLevel": 0, "displayName": "Disintegrate", "id": "AnnieQ", "rawDescription": "GeneratedTip_Spell_AnnieQ_Description", "rawDisplayName": "GeneratedTip_Spell_AnnieQ_DisplayName" }, "R": { "abilityLevel": 0, "displayName": "Summon: Tibbers", "id": "AnnieR", "rawDescription": "GeneratedTip_Spell_AnnieR_Description", "rawDisplayName": "GeneratedTip_Spell_AnnieR_DisplayName" }, "W": { "abilityLevel": 0, "displayName": "Incinerate", "id": "AnnieW", "rawDescription": "GeneratedTip_Spell_AnnieW_Description", "rawDisplayName": "GeneratedTip_Spell_AnnieW_DisplayName" } } ``` -------------------------------- ### Enable Replay API Configuration Source: https://developer.riotgames.com/docs/lol Add these lines to the game.cfg file to enable the Replay API functionality. ```ini [General] EnableReplayApi=1 ``` -------------------------------- ### Mimic Server Callback with cURL Source: https://developer.riotgames.com/docs/lol Use this cURL command to simulate the HTTP POST callback sent by League of Legends servers for debugging purposes. ```bash curl -X POST -H "Content-Type: application/json" -d '' ``` -------------------------------- ### GET /liveclientdata/activeplayername Source: https://developer.riotgames.com/ddragon.html Returns the name of the active player. ```APIDOC ## GET /liveclientdata/activeplayername ### Description Returns the player name. ### Method GET ### Endpoint https://127.0.0.1:2999/liveclientdata/activeplayername ### Response #### Success Response (200) - **name** (string) - The player's Riot ID name #### Response Example "Riot Tuxedo#TXC1" ``` -------------------------------- ### Get Active Deck List Source: https://developer.riotgames.com/docs/lor Use the `static-decklist` endpoint to get the player's current deck in an active game. The response includes the deck code and a map of card codes to their counts. This data remains static even after cards are played. ```json { "DeckCode": "DECKCODE", "CardsInDeck": { "01DE000": 1, "01DE001": 2, ... } } ``` ```json { "DeckCode": null, "CardsInDeck": null } ``` -------------------------------- ### Replay API - Render Properties Source: https://developer.riotgames.com/docs/lol Manage and retrieve the replay render properties. ```APIDOC ## GET /replay/render ### Description Returns the current render properties. ### Method GET ### Endpoint `https://127.0.0.1:2999/replay/render` ``` ```APIDOC ## POST /replay/render ### Description Allows modifying the current render properties. All values are optional. ### Method POST ### Endpoint `https://127.0.0.1:2999/replay/render` ### Request Body (Optional fields for modifying render properties) - **camera** (string) - The camera type to use. - **distance** (number) - The camera distance. - **fov** (number) - The field of view. - **height** (number) - The camera height. - **pitch** (number) - The camera pitch. - **rotation** (number) - The camera rotation. ### Request Example ```json { "camera": "free", "distance": 1500, "fov": 75, "height": 800, "pitch": 45, "rotation": 90 } ``` ``` -------------------------------- ### GET /liveclientdata/playersummonerspells Source: https://developer.riotgames.com/ddragon.html Retrieve the list of summoner spells for a specific player. ```APIDOC ## GET /liveclientdata/playersummonerspells ### Description Retrieve the list of the summoner spells for the player. ### Method GET ### Endpoint https://127.0.0.1:2999/liveclientdata/playersummonerspells ### Parameters #### Query Parameters - **riotId** (string) - Optional - The Riot ID of the player. ### Response #### Success Response (200) - **summonerSpellOne** (object) - Details of the first summoner spell. - **summonerSpellTwo** (object) - Details of the second summoner spell. #### Response Example { "summonerSpellOne": { "displayName": "Flash", "rawDescription": "GeneratedTip_SummonerSpell_SummonerFlash_Description", "rawDisplayName": "GeneratedTip_SummonerSpell_SummonerFlash_DisplayName" }, "summonerSpellTwo": { "displayName": "Ignite", "rawDescription": "GeneratedTip_SummonerSpell_SummonerDot_Description", "rawDisplayName": "GeneratedTip_SummonerSpell_SummonerDot_DisplayName" } } ``` -------------------------------- ### Champion Skin Data Structure Source: https://developer.riotgames.com/docs/lol Shows the structure of the 'skins' array for a champion, including skin ID, name, number ('num'), and whether it has chromas. Base skins do not have a 'parentSkin' field. ```json /* Aatrox (id: 266) */ "skins": [ { "id": 266000, "name": "default", "num": 0, "chromas": false }, { "id": 266001, "name": "Justicar Aatrox", "num": 1, "chromas": false }, { "id": 266002, "name": "Mecha Aatrox", "num": 2, "chromas": true }, { "id": "266003", "num": 3, "name": "Sea Hunter Aatrox", "chromas": false }, { "id": "266004", "num": 4, "name": "Mecha Aatrox (Obsidian)", "chromas": false, "parentSkin": 2 } ] ``` -------------------------------- ### Replay API - Recording Source: https://developer.riotgames.com/docs/lol Manage video recording for replays. ```APIDOC ## GET /replay/recording ### Description Returns the current status of video recording. Poll this resource for progress on the output. ### Method GET ### Endpoint `https://127.0.0.1:2999/replay/recording` ``` ```APIDOC ## POST /replay/recording ### Description Post to begin a recording specifying the codec and output filepath. Subsequent GET requests to this resource will update the status. ### Method POST ### Endpoint `https://127.0.0.1:2999/replay/recording` ### Request Body - **codec** (string) - Required - The video codec to use (e.g., "H264"). - **filePath** (string) - Required - The full path to the output video file. ### Request Example ```json { "codec": "H264", "filePath": "C:\\Recordings\\my_replay.mp4" } ``` ``` -------------------------------- ### Apply Replay Sequence Source: https://developer.riotgames.com/ddragon.html Applies a sequence of keyframes to the replay. Posting an empty object will remove the current sequence. ```http POST https://127.0.0.1:2999/replay/sequence ``` -------------------------------- ### Game Events API Source: https://developer.riotgames.com/docs/lol Get a list of events that have occurred in the game. ```APIDOC ## GET /liveclientdata/eventdata ### Description Get a list of events that have occurred in the game. ### Method GET ### Endpoint `https://127.0.0.1:2999/liveclientdata/eventdata` ### Response #### Success Response (200) - **Events** (array) - A list of event objects. - **EventID** (integer) - The unique ID of the event. - **EventName** (string) - The name of the event (e.g., "GameStart"). - **EventTime** (number) - The time at which the event occurred. ### Response Example ```json { "Events": [ { "EventID": 0, "EventName": "GameStart", "EventTime": 0.0325561985373497 }, ... ] } ``` ``` -------------------------------- ### Replay API - Game Information Source: https://developer.riotgames.com/docs/lol Retrieve information about the game client process for replay control. ```APIDOC ## GET /replay/game ### Description Information about the game client process. ### Method GET ### Endpoint `https://127.0.0.1:2999/replay/game` ``` -------------------------------- ### Example set.json Card Data Source: https://developer.riotgames.com/docs/lor This JSON structure represents a card from the set.json file, including its associated cards, assets, stats, and descriptive text. Note the paired fields like 'region' and 'regionRef', and 'keywords' with 'keywordRefs'. ```json [ { "associatedCards": [], "associatedCardRefs": [ "01FR009T1", "01FR009T2", "01FR053" ], "assets": [ { "gameAbsolutePath": "https://dd.b.pvp.net/1_0_0/set1/en_us/img/cards/01FR009.png", "fullAbsolutePath": "https://dd.b.pvp.net/1_0_0/set1/en_us/img/cards/01FR009-full.png" } ], "region": "Freljord", "regionRef": "Freljord", "attack": 0, "cost": 3, "health": 5, "description": "", "descriptionRaw": "", "levelupDescription": "I've survived 10 total damage.", "levelupDescriptionRaw": "I've survived 10 total damage.", "flavorText": "\u201cPapa, tell the one about Braum and his door!\n\"Or when his fall split a mountain in two!\"\n\"Oh! Whattabout when he saved the tavern from the rampaging yeti!\"", "artistName": "SIXMOREVODKA", "name": "Braum", "cardCode": "01FR009", "keywords": [ "Challenger", "Regeneration" ], "keywordRefs": [ "Challenger", "Regeneration" ], "spellSpeed": "", "spellSpeedRef": "", "rarity": "Champion", "rarityRef": "Champion", "subtype": "", "supertype": "Champion", "type": "Unit", "collectible": true }, ... ] ``` -------------------------------- ### GET /val/match/v1/matches/{matchId} Source: https://developer.riotgames.com/docs/valorant Retrieve match details by a specific match ID. ```APIDOC ## GET /val/match/v1/matches/{matchId} ### Description Get match by ID. ### Method GET ### Endpoint /val/match/v1/matches/{matchId} ### Parameters #### Path Parameters - **matchId** (string) - Required - The unique identifier of the match. ``` -------------------------------- ### GET /riot/account/v1/accounts/me Source: https://developer.riotgames.com/api-methods Retrieves the account information associated with the provided access token. ```APIDOC ## GET /riot/account/v1/accounts/me ### Description Get account by access token. ### Method GET ### Endpoint /riot/account/v1/accounts/me ### Parameters #### Header Parameters - **Authorization** (string) - Required ### Response #### Success Response (200) - **AccountDto** (object) - Returns an AccountDto object containing puuid, gameName, and tagLine. ### Error Handling - 400: Bad request - 401: Unauthorized - 403: Forbidden - 404: Data not found - 405: Method not allowed - 415: Unsupported media type - 429: Rate limit exceeded - 500: Internal server error - 502: Bad gateway - 503: Service unavailable - 504: Gateway timeout ``` -------------------------------- ### Interpreting {{ aN }} Spell Placeholders Source: https://developer.riotgames.com/ddragon.html Use this to understand how {{ aN }} or {{ fN }} placeholders in tooltips map to 'coeff' values within the 'vars' array. Match the 'key' field to the placeholder. ```json "tooltip": "Launches a bandage in a direction. If it hits an enemy unit, Amumu pulls himself to them, dealing {{ e1 }} (+{{ a1 }}) magic damage and stunning for {{ e2 }} second.", "vars": [ { "key": "a1", "link": "spelldamage", "coeff": [ 0.7 ] } ] ``` -------------------------------- ### Retrieve Basic Game Stats Source: https://developer.riotgames.com/docs/lol Returns general information about the current game, such as mode, map, and time. ```json { "gameMode": "CLASSIC", "gameTime": 0.000000000, "mapName": "Map11", "mapNumber": 11, "mapTerrain": "Default" } ``` -------------------------------- ### GET /riot/account/v1/accounts/by-puuid/{puuid} Source: https://developer.riotgames.com/api-methods Retrieves account information for a specific player using their encrypted PUUID. ```APIDOC ## GET /riot/account/v1/accounts/by-puuid/{puuid} ### Description Get account by puuid. ### Method GET ### Endpoint /riot/account/v1/accounts/by-puuid/{puuid} ### Parameters #### Path Parameters - **puuid** (string) - Required - Encrypted PUUID. ### Response #### Success Response (200) - **puuid** (string) - Encrypted PUUID. Exact length of 78 characters. - **gameName** (string) - This field may be excluded from the response if the account doesn't have a gameName. - **tagLine** (string) - This field may be excluded from the response if the account doesn't have a tagLine. ``` -------------------------------- ### Query Lobby Events JSON Response Source: https://developer.riotgames.com/ddragon.html Example structure of the JSON returned by the lobby-events/by-code/{tournamentCode} endpoint. ```json { "eventList": [ { "timestamp": "1234567890000", "eventType": "PracticeGameCreatedEvent", //Lobby Created "summonerId": "12345678" }, { "timestamp": "1234567890000", "eventType": "PlayerJoinedGameEvent", //Player Joins Lobby "summonerId": "12345678" }, { "timestamp": "1234567890000", "eventType": "PlayerSwitchedTeamEvent", //Player Switches Teams "summonerId": "12345678" }, { "timestamp": "1234567890000", "eventType": "PlayerQuitGameEvent", //Player Leaves Lobby "summonerId": "12345678" }, { "timestamp": "1234567890000", "eventType": "ChampSelectStartedEvent" //Champ Select Begins }, { "timestamp": "1234567890000", "eventType": "GameAllocationStartedEvent" //Loading Screen Begins }, { "timestamp": "1234567890000", "eventType": "GameAllocatedToLsmEvent" //Game Begins } ] } ``` -------------------------------- ### Replay API - Sequence Source: https://developer.riotgames.com/docs/lol Manage sequences of keyframes for replay playback. ```APIDOC ## GET /replay/sequence ### Description Returns the sequence currently being applied. ### Method GET ### Endpoint `https://127.0.0.1:2999/replay/sequence` ``` ```APIDOC ## POST /replay/sequence ### Description Post to apply a sequence of keyframes that the replay should play. Post an empty object to remove the sequence. ### Method POST ### Endpoint `https://127.0.0.1:2999/replay/sequence` ### Request Body - **keyframes** (array) - An array of keyframe objects to apply. - **time** (number) - The time in seconds for the keyframe. - **camera** (object) - Camera properties at this keyframe. - **distance** (number) - Camera distance. - **fov** (number) - Field of view. - **height** (number) - Camera height. - **pitch** (number) - Camera pitch. - **rotation** (number) - Camera rotation. ### Request Example ```json { "keyframes": [ { "time": 10.0, "camera": { "distance": 1200, "fov": 70, "height": 700, "pitch": 30, "rotation": 45 } }, { "time": 20.0, "camera": { "distance": 1300, "fov": 72, "height": 750, "pitch": 35, "rotation": 50 } } ] } ``` ```