henrik-3 / unofficial-valorant-api Goto Github PK
View Code? Open in Web Editor NEWUnofficial VALORANT API using the VALORANT Ingame API
Unofficial VALORANT API using the VALORANT Ingame API
{"statusCode":500,"error":"Internal Server Error","message":"Cannot read property 'MatchID' of undefined"}
How can we access the statistics of the person we want, such as the total kill, the number of matches played?
My bot used to be like this, but since tracker.gg started using cloudflare, I no longer have access to the API.
I want to activate my bot again using your API, but how can I access all the statistics of the player I will write?
Current response of the API is this:
{
"puuid":"01066651-f9b0-55c0-8d3d-674c65351821",
"region":"na",
"account_level":15
}
However if the account does not exist, it redirects to a different error page.
Would it be possible to return the data like this:
{
"status": "200",
"data": {
"puuid":"01066651-f9b0-55c0-8d3d-674c65351821",
"region":"na",
"account_level":15
}
}
So it is more consistent with other API endpoints as well as being easier to check status
codes?
Thanks,
As title says, requesting to https://api.henrikdev.xyz/valorant/v1/account/{name}/{tag}
returns a 404 error with the message:
"Found no region for User"
Is there a specific region I must put in the request URL, or is this different bug?
Thanks,
const { HenrikDevValorantAPI } = require('unofficial-valorant-api')
const VAPI = new HenrikDevValorantAPI();
The code above throws an error
TypeError: HenrikDevValorantAPI is not a constructor`
How do I fix this?
C# NSwag openapi/swagger generator conflict between player's Economy and round's playerstats' economy, the structure of a player's economy in a match details, is
spent {overall, average} loadout {overall, average}
and in the round's playerstats is:
spent: int, loadout:int
the generator uses the same structure for both since they have the same name "Economy", I don't know if that's an issue/limitation of the generator (unlikely) or an ambiguity of the openapi definitions of your API
example: https://api.henrikdev.xyz/valorant/v1/mmr/na/koob85/00085, maybe have it return error code instead?
TRN shows the player card in decagon-avatar, would be nice if the image was passed in /valorant/v1/profile/{name}/{tag}
Hi
Live match endpoint returns 500 error ("An unknown error occured.") no matter what.
I tried with various Valorant accounts but none of them worked.
Tracker Network here..
Please do not do this. You're scraping our websites w/o permission. We cannot give you permission to do this. Please don't do it.
I'm requesting /valorant/v1/mmr-history/na/azula/6 god and its returning 404, although I am sure the player exists (and other endpoints like /account are working).
Thanks for help,
Currently the MMR history endpoint does not function. If you use this url for example it returns
{
"status": 200,
"name": null,
"tag": null,
"data": []
}
This also happens for any other valid account
getCrosshair needs an update as the game recently updated the crosshair profile codes with more options.
Atleast right now if you search Anything#6969 into the matches end point with the competitive filter it like https://api.henrikdev.xyz/valorant/v3/matches/na/Anything/6969?filter=competitive
it silently returns nothing. My best guess for why this happens if because they haven't played competitive in a while.
Output: Nothing
Expected: Http error code
Any chance to add the username in the result when fetching by puuid?
While calling several endpoint with the name/tag which don't exist the real status is 500 - Internal Server Error
with the data like:
"status": "404",
"message": "User not found"
}
List of endpoints with the issue which I checked:
At least mmr
and puuid
returns 404, which should be right result I think.
Hello i'm using the Api to get the info of the user lºxºl#las
Through the link https://api.henrikdev.xyz/valorant/v1/mmr/na/l%C2%BAx%C2%BAl/las
Using the comand $(urlfetch json https://api.henrikdev.xyz/valorant/v1/mmr/na/l%C2%BAx%C2%BAl/las) to later filter it using Json and showing it as part of a twitch command
But now i am getting the answer "Remote Server Returned Code 503" instead of the info i was getting 2-3 weeks ago
I guess is a problem in the Las server but there is anything in my side i can try to fix that problem?
I apologize for the lack of technical language and/or other terms, i am farly new in all this (i just created this account) and your API is the first one i use for a real application
I am trying to get someone's match history but I can't. It just says "User not found.". I am pretty sure this happens because of spaces.
https://api.henrikdev.xyz/valorant/v3/matches/eu/username%20with%20spaces/hb1 => Won't work even the user is valid. (Web browser automatically turns spaces into %20 for urlencoding.)
https://api.henrikdev.xyz/valorant/v3/matches/eu/usernamewithoutspace/hb1 => Will work just fine if the user is valid.
I'm wondering if it's possible to check the past few matches based on maps. I'm trying to see my performance on each map
Thank you for your work on this API!
For the MMR History endpoint: GET /valorant/v1/mmr-history/:region/:name/:tag
, it only returns a maximum of 10 results. Is it possible to increase this number?
Hey;
Can you add functionality to get leaderboard rank based on user?
Usage example - https://api.henrikdev.xyz/valorant/v1/leaderboard/na/{name}/{tag}
Thanks! Love the work so far
URL with my user & tag: https://api.henrikdev.xyz/valorant/v3/matches/ap/exceedflame/jett
Also, another bug, for /valorant/v3/matches/
, data[1].match.teams.blue.has_won
most of the time returns null
only data[0].match.teams.blue.has_won
returns a Boolean but other matches in data[] don't
Match history API works great, but its content is quite large in terms of size (I see on average 1.5MB).
It would be nice to add new endpoint which contains only last 5 match UIDs (and maybe other basic information) in order to get a much smaller response.
My use case it to keep track of matches of a user, with this new endpoint I can query periodially for new matches UID and only when a new match is recorded I can make a single request with new match UID (saving a ton of network traffic for both me and your servers).
not sure if it's possible with the data you have access to, but it would be nice if there was an endpoint that could return data like in /valorant/v1/store-featured from a uid rather than only the featured bundle
As the title says, my requests to /valorant/v3/matches/ recieve error 403: Forbidden
This is my code:
def getMatchHistory(name,tagline): body = httpRequest("https://api.henrikdev.xyz/valorant/v3/matches/na/"+name+"/"+tagline) print(body.json()) getMatchHistory("Han755","NA1") #Response: {'status': 403, 'message': 'Forbidden'}
The request works on https://docs.henrikdev.xyz/valorant.html, but when copy the url and request it outside the website, I cant seem to get it to work.
It would be cool if you could get if the player is alive in /valorant/v1/live-match/ so live stuff can be made if the player dies
Hello, I wonder, what the requirements for the mmr by puuid are (I believe ranked max 20 games in the past?) compared to the mmr by username and tag.
Because for some users it is possible for me to get the mmr with the username and tag, but not with the puuid.
While executing /valorant/v2/mmr/{region}/{name}/{tag} while name has greek characters wrong data are returned in current-data
field. It works fine for v1
version.
It also works fine for non-greek characters
Example:
[GET] https://api.henrikdev.xyz/valorant/v2/mmr/eu/ΖμΙΜαη/666
Result:
{
"status": "200",
"data": {
"current_data": {
"currenttier": 0,
"currenttierpatched": "Unrated",
"ranking_in_tier": 0,
"mmr_change_to_last_game": 0,
"elo": -300,
"games_needed_for_rating": 0
},
...
Some accounts return error code 500.
I'm not sure if the accounts have played only VALORANT or have played other games like League.
Region is NA.
Some accounts:
Sinon#あやめ
lke#ik3
rbzkaos#ezz
Y Deld S#PBE
Any clue what could be causing this?
Thanks,
On my browser the link doesn't load: https://api.henrikdev.xyz/valorant/v1/mmr-history/ap/exceedflame/epic
with my username
Round's kill events damage weapon name, and assets are null for chamber's abilities (at least sheriff like weapon), is that by default on riots end, or not implements yet? example match id "80ad1b93-e483-46bb-ac6b-e694efcf6d63" rounds[0].player_stats[5].kill_events[0]
The getAccount/getMMR function currently returns Unknown error as message,
Here is the response message:
{
status: 200,
data: [ { message: 'Unknown error', code: 0, details: 'null' } ],
ratelimits: { used: 3, remaining: 27, reset: 31 },
error: null,
url: 'https://api.henrikdev.xyz/valorant/v1/account/NRG%20Ethan/farm'
}
In /valorant/v3/matches
endpoint - typo in array name: matchres
instead of matches
Hello could you update https://www.npmjs.com/package/unofficial-valorant-api so We could download the fix for beta-3?
schemas > byseason> final_rank_patched defined as integer while it should be a string, example Gold 1
looks like v1 has issues with %20 in the username and tag
Hi just wondering if theres a way to get the match MVP or even the avg combat score
Is there anything I could do to make my application recognize int?
I am currently getting:
node_modules/unofficial-valorant-api/src/index.d.ts(109,12): error TS2304: Cannot find name 'int'.
node_modules/unofficial-valorant-api/src/index.d.ts(131,12): error TS2304: Cannot find name 'int'.
It returns {"status":"404","message":"User not found"}
everytime for users it used to work with before
First of all, I would like to thank you for providing us with this great library and API.
I have been experimenting and making a VALORANT overlay widget for OBS that I can use personally on my streams.
However, I encountered one issue where the account level, player card information won't update. I believe the data is cached and won't get updated even though I tried ?force=true. My current account level is 31, but it keeps showing 30 from the first time I used your API. Fixing this would be greatly appreciated.
While executing live-match endpoint while name contains Greek characters 504 is thrown
example URL:
[GET] https://api.henrikdev.xyz/valorant/v1/live-match/ΖμΙΜαη/666
Result:
504 - Gateway time-out
I'm having an issue when calling /valorant/v1/puuid/{name}/{tag}.
For instance if I do this call with ScreaM's account (Liquid ScreaM#TAP) I get a 500 status code response.
I've tried both with and without encoding it:
Both of them don't work. Maybe you can give a better insight as to what I'm doing wrong or maybe this is a bug in the api.
It definitely has something to do with the space in someone's name.
So I'm receiving this response after hitting any endpoint with the username=TWICE
and tagline=once2
. It'll return this response which I haven't been able to find documented anywhere in this repository:
{
status: 429,
data: {
status: '429',
message: 'Source Server Rate Limit, try again later'
},
ratelimits: { used: '5', remaining: '245', reset: '199' },
error: null
}
This issue isn't specific to this account, I've seen this happen with some other accounts that I've tried to pass to your API.
Strangely enough, I checked in after about an hour and the endpoint works fine now. I'm curious about what is causing this to happen.
Thank you so much for building this API and maintaining it!
{"status":"500","message":"Unknown error occured"}
the api specifications defines non nullable integers for things like, stats headshot, legshots, bodyshots, and similar data that could have a value of null, resulting in exceptions on json deserialization, to replicate generate a client using openapi generator from the specification json file, and test it on a match with a player with 0 hs or any similar "nullable" integer
I am Getting a -
statusCode: 500
error: "Internal Server Error"
message: "error handler is not defined"
for the "https://api.henrikdev.xyz/valorant/v1/content" endpoint
My nickname: HighError
My tag: Owo
My region: EU
While testing API, I accidentally entered the wrong region, but API did not return an error or result.
If you try to complete the request through a browser, the page will not load.
For example:
https://api.henrikdev.xyz/valorant/v1/mmr/na/HighError/owo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.