Valorantapi.py

Latest version: v0.2.1

Safety actively analyzes 688053 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

1.7.5

Account Response Times
- Due to the current high response times on the Riot API new requests will be instantly returned from the database if the user is cached which normaly keeps the response time at 50-150ms.
- If you want to force an update use the **?force=true** query string
- If the last update is older than an hour, the next request will update the data and will have a longer response time due to the data update and background fetches
- When doing a match request, all of the players from the game will be added or updated in the database, this results in less new fetches for new accounts and lower response times

This change also increases the speed of the other endpoints where you pass the name and tag because they are based on the account endpoint

1.7.4

Raw Endpoint Changes
Added support for multiple matches

**POST BODY**

{
"type": "matchdetails",
"value": ["d872450e-35ca-48d0-8585-2cae8ce0bf99", "f7a9c738-ea75-451d-949d-352fddfa34fb", "69b2f252-0682-4a44-9695-29d03273b8dc"],
"region": "eu",
"queries": ""
}

**Result**

[
{
MATCH-OBJECT
}
{
"error": true,
"code": 404
},
{
"error": true,
"code": 404
}
]

Match History Endpoint Changes (by-puuidv3 and matchv3)
- Added support to filter for gamemodes

?filter={escalation, spikerush, deathmatch, competitive, unrated, replication, custom, newmap, snowball}

- Added support to filter for specific maps

?map={haven, icebox, bind, split, ascent, breeze, fracture}

- Added support for a combination of both filters

?filter={escalation, spikerush, deathmatch, competitive, unrated, replication, custom, newmap, snowball}&map={haven, icebox, bind, split, ascent, breeze, fracture}

1.7.3

Account Endpoint Changes
Added current playercard data

"card": {
"small": "https://media.valorant-api.com/playercards/c86953ca-4c94-c0f7-fd91-c19e03ff2b9f/smallart.png",
"large": "https://media.valorant-api.com/playercards/c86953ca-4c94-c0f7-fd91-c19e03ff2b9f/largeart.png",
"wide": "https://media.valorant-api.com/playercards/c86953ca-4c94-c0f7-fd91-c19e03ff2b9f/wideart.png",
"id": "c86953ca-4c94-c0f7-fd91-c19e03ff2b9f"
}


Match Endpoint Changes
Added assets, current region and game cluster

"metadata": {
"region": "eu",
"cluster": "Frankfurt 2"
}


"players": {
"assets": {
"card": {
"small": "https://media.valorant-api.com/playercards/55a41308-4fa5-4c3a-afda-86a61ef7ee41/smallart.png",
"large": "https://media.valorant-api.com/playercards/55a41308-4fa5-4c3a-afda-86a61ef7ee41/largeart.png",
"wide": "https://media.valorant-api.com/playercards/55a41308-4fa5-4c3a-afda-86a61ef7ee41/wideart.png"
},
"agent": {
"small": "https://media.valorant-api.com/agents/a3bfb853-43b2-7238-a4f1-ad90e9e46bcc/displayicon.png",
"bust": "https://media.valorant-api.com/agents/a3bfb853-43b2-7238-a4f1-ad90e9e46bccbustportrait.png",
"full": "https://media.valorant-api.com/agents/a3bfb853-43b2-7238-a4f1-ad90e9e46bcc/fullportrait.png",
"killfeed": "https://media.valorant-api.com/agents/a3bfb853-43b2-7238-a4f1-ad90e9e46bcc/killfeedportrait.png"
}
}
}

1.7.2

Changes

- /valorant/v3/matches now has a size query option (?size=value), maximum value is 10 due to server load times, otherwise the request would timeout
- Same goes for the equivalent by-puuid method

Overview of all planned changes and features etc of the API: https://app.gitkraken.com/glo/board/YUj3GSRmkwBIUNdZ

1.7.1

New Endpoint
POST /valorant/v1/raw

[**Available types]:** competitiveupdates, mmr, matchdetails, matchhistory
[**Available values]:** PUUID or MatchID
[**Available types]:** eu, na, ap, kr
[**Available queries]:** Queries that are available on the endpoints, see [here](https://github.com/techchrism/valorant-api-docs/tree/trunk/docs/PVP%20Endpoints)

With that endpoint you can get the raw response from the RiotGames API without any access token generation or something.
The usage changed a bit, here is an example:

**POST BODY**

{
"type": "competitiveupdates",
"value": "54942ced-1967-5f66-8a16-1e0dae875641",
"region": "eu",
"queries": "?queue=competitive"
}


**Result:**

{
"Version": 0,
"Subject": "54942ced-1967-5f66-8a16-1e0dae875641",
"Matches": [
{
"MatchID": "166bfe78-8d08-4063-baf0-7f1a445c5260",
"MapID": "/Game/Maps/Ascent/Ascent",
"SeasonID": "2a27e5d2-4d30-c9e2-b15a-93b8909a442c",
"MatchStartTime": 1629486604312,
"TierAfterUpdate": 11,
"TierBeforeUpdate": 11,
"RankedRatingAfterUpdate": 36,
"RankedRatingBeforeUpdate": 54,
"RankedRatingEarned": -18,
"RankedRatingPerformanceBonus": 0,
"CompetitiveMovement": "MOVEMENT_UNKNOWN",
"AFKPenalty": 0
},
{
"MatchID": "5be16522-f5de-45d3-aad9-17ca714073be",
"MapID": "/Game/Maps/Port/Port",
"SeasonID": "2a27e5d2-4d30-c9e2-b15a-93b8909a442c",
"MatchStartTime": 1628508946124,
"TierAfterUpdate": 11,
"TierBeforeUpdate": 11,
"RankedRatingAfterUpdate": 54,
"RankedRatingBeforeUpdate": 54,
"RankedRatingEarned": 0,
"RankedRatingPerformanceBonus": 0,
"CompetitiveMovement": "MOVEMENT_UNKNOWN",
"AFKPenalty": 0
},
{
"MatchID": "c1925f46-9914-49b5-ac1a-7e4dfe1c9d7d",
"MapID": "/Game/Maps/Bonsai/Bonsai",
"SeasonID": "2a27e5d2-4d30-c9e2-b15a-93b8909a442c",
"MatchStartTime": 1628281078337,
"TierAfterUpdate": 11,
"TierBeforeUpdate": 11,
"RankedRatingAfterUpdate": 54,
"RankedRatingBeforeUpdate": 71,
"RankedRatingEarned": -17,
"RankedRatingPerformanceBonus": 0,
"CompetitiveMovement": "MOVEMENT_UNKNOWN",
"AFKPenalty": 0
},
{
"MatchID": "07c58f11-2a30-49ee-9500-d8127fbf3357",
"MapID": "/Game/Maps/Port/Port",
"SeasonID": "2a27e5d2-4d30-c9e2-b15a-93b8909a442c",
"MatchStartTime": 1628278316574,
"TierAfterUpdate": 11,
"TierBeforeUpdate": 11,
"RankedRatingAfterUpdate": 71,
"RankedRatingBeforeUpdate": 50,
"RankedRatingEarned": 21,
"RankedRatingPerformanceBonus": 0,
"CompetitiveMovement": "MOVEMENT_UNKNOWN",
"AFKPenalty": 0
},
{
"MatchID": "0de74b29-8cc4-4f82-b564-1954f60d8cd4",
"MapID": "/Game/Maps/Duality/Duality",
"SeasonID": "2a27e5d2-4d30-c9e2-b15a-93b8909a442c",
"MatchStartTime": 1628276049689,
"TierAfterUpdate": 11,
"TierBeforeUpdate": 11,
"RankedRatingAfterUpdate": 50,
"RankedRatingBeforeUpdate": 22,
"RankedRatingEarned": 28,
"RankedRatingPerformanceBonus": 6,
"CompetitiveMovement": "MOVEMENT_UNKNOWN",
"AFKPenalty": 0
}
]
}

1.7

Changed
- Updated the docs page: https://docs.henrikdev.xyz
- Added two new endpoints:
- /valorant/v2/by-puuid/mmr/:region/:puuid
- /valorant/v1/by-puuid/mmr-history/:region/:puuid

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.