unofficial-valorant-api
NPM package for the Unofficial VALORANT API
API
Find all inforamtion about the API itself here: https://github.com/Henrik-3/unofficial-valorant-api/
Installation
npm i unofficial-valorant-api@latest
Code Examples
You find some examples here
API Calls available
- <input checked="" disabled="" type="checkbox">
getAccount({name, tag})
- <input checked="" disabled="" type="checkbox">
getContent({locale?})
- <input checked="" disabled="" type="checkbox">
getCrosshair({code})
- <input checked="" disabled="" type="checkbox">
getFeaturedItems()
- <input checked="" disabled="" type="checkbox">
getLeaderboard({version, region, name?, tag?, puuid?})
- <input checked="" disabled="" type="checkbox">
getMatchesByPUUID({region, puuid, size?, filter?, map?})
- <input checked="" disabled="" type="checkbox">
getMatches({region, name, tag, size?, filter?, map?})
- <input checked="" disabled="" type="checkbox">
getMatch({match_id})
- <input checked="" disabled="" type="checkbox">
getMMRByPUUID({version, region, puuid, filter?})
- <input checked="" disabled="" type="checkbox">
getMMR({version, region, name, tag, filter?})
- <input checked="" disabled="" type="checkbox">
getMMRHistoryByPUUID({region, puuid})
- <input checked="" disabled="" type="checkbox">
getMMRHistory({region, name, tag})
- <input checked="" disabled="" type="checkbox">
getOffers()
- <input checked="" disabled="" type="checkbox">
getRawData({type, uuid, region, queries?})
- <input checked="" disabled="" type="checkbox">
getStatus({region})
- <input checked="" disabled="" type="checkbox">
getVersion({region})
- <input checked="" disabled="" type="checkbox">
getWebsite({countrycode, filter?})
Values like countrycode, region, filter or type will be suggested
in IDE's like Visual Studio Code, otherwise you find these values here: https://github.com/Henrik-3/unofficial-valorant-api
Response Example
{
"status": 200,
"data": {
"currenttier": 15,
"currenttierpatched": "Platinum 1",
"ranking_in_tier": 11,
"mmr_change_to_last_game": -21,
"elo": 1211,
"name": "Henrik3",
"tag": "VALO",
"old": true
},
"ratelimits": {"used": 1, "remaining": 249, "reset": 150},
"error": null,
"url": "https://api.henrikdev.xyz/valorant/v1/mmr/eu/Henrik3/VALO"
}
Error Response
{
"status": 404,
"data": null,
"ratelimits": {"used": 1, "remaining": 249, "reset": 150},
"error": {"message": "Not found"},
"url": "https://api.henrikdev.xyz/valorant/v1/mmr/eu/Henrik3/EUW3"
}