Coder Social home page Coder Social logo

unofficial-valorant-api's Introduction

Anurag's GitHub stats

unofficial-valorant-api's People

Contributors

devkennyy avatar henrik-3 avatar jdewever avatar sya-ri avatar timo-development avatar xyrrm avatar yldshv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unofficial-valorant-api's Issues

Player Stats

How can we access the statistics of the person we want, such as the total kill, the number of matches played?
image
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?

Please return ``status`` and ``data`` in the new endpoint!

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,

  • ~5late

const VAPI = new HenrikDevValorantAPI();

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

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

Please no.

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.

valorant/v1/mmr-history/na/ returns 404 for certain user

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).

  • The player does not play League
  • It used to work for the player
  • The endpoint works for other users

Thanks for help,

  • ~5late

MMR History Broken

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 update

getCrosshair needs an update as the game recently updated the crosshair profile codes with more options.

matches endpoint sometimes doesn't return anything when a filter is applied

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

500 - Internal Server Error while calling with name/tag which don't exist

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:

  • mmr-history
  • live-match
  • matches v3

At least mmr and puuid returns 404, which should be right result I think.

Getting 'Remote Server Returned Code 503' when i try to get info from the Las server

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

Match history API won't find the user if the user has spaces in their name.

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.

Filter Matches by Maps

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

MMR History

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?

New endpoint idea

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).

Issue with getMatchHistory. Recieved error 403.

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.

Feature Request

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

MMR from puuid vs name/tag

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.

[GET] /valorant/v2/mmr/{region}/{name}/{tag} return wrong result while name has Greek characters

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
        },
...

API randomly returns ``500 - Unknown error occured``

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,

  • ~5late

Unknown error in retrieving account

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'
}

Match MVP?

Hi just wondering if theres a way to get the match MVP or even the avg combat score

Cannot find name 'int'

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'.

getAccount endpoint returns an outdated account level/player card

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.
image

Issue when calling /valorant/v1/puuid/{name}/{tag}

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:

  • /valorant/v1/puuid/Liquid ScreaM/TAP
  • /valorant/v1/puuid/Liquid%20ScreaM/TAP

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.

Accounts return 429, (sometimes?)

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!

c# open Api generator, exception on null for integers, from the specification

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.