2.1.1-beta.3 • Published 2 years ago
@mateie/unofficial-valorant-api v2.1.1-beta.3
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
getAccount({name, tag})
getContent({locale?})
getCrosshair({code})
getFeaturedItems()
getLeaderboard({version, region, name?, tag?, puuid?})
getMatchesByPUUID({region, puuid, size?, filter?, map?})
getMatches({region, name, tag, size?, filter?, map?})
getMatch({match_id})
getMMRByPUUID({version, region, puuid, filter?})
getMMR({version, region, name, tag, filter?})
getMMRHistoryByPUUID({region, puuid})
getMMRHistory({region, name, tag})
getOffers()
getRawData({type, uuid, region, queries?})
getStatus({region})
getVersion({region})
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"
}
2.1.1-beta.3
2 years ago