raimannma / valorantapi Goto Github PK
View Code? Open in Web Editor NEWValorant API Wrapper for https://github.com/Henrik-3/unofficial-valorant-api
Home Page: https://raimannma.github.io/ValorantAPI/
License: MIT License
Valorant API Wrapper for https://github.com/Henrik-3/unofficial-valorant-api
Home Page: https://raimannma.github.io/ValorantAPI/
License: MIT License
Hi everyone,
Not sure if it is a bug report or a limitation of the RIOT API, but I will put it as a bug report.
It seems only the last 10 match in Match History can be accessed when using valo_api.endpoints.get_match_history_by_name_v3
.
Steps to reproduce the behavior:
Use size >= 10 in function, only the last 10 matches are retrieved.
Called valo_api.endpoints.get_match_history_by_name_v3([REGION], [PLAYER], [TAG], size=100)
In other trackers online they seem to have more matches available, so I would guess those information are still RIOT database and should be accessible through the API?
Thanks you for your help and for the library!
When calling the method get_match_history_by_puuid_v3
we now get an exception.
Steps to reproduce the behavior:
File "C:\Users\ander\Documents\repos\valstats\valstats.py", line 190, in get_game_history
response = valo_api.get_match_history_by_puuid_v3(region=auth.region, puuid=user_id, size=10, game_mode=typ)
File "C:\Users\ander\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\valo_api\endpoint.py", line 88, in wrapper
return self._get_endpoint(*args, **kwargs)
File "C:\Users\ander\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\valo_api\endpoint.py", line 154, in _get_endpoint
return self.parse_response(response, response.content)
File "C:\Users\ander\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\valo_api\endpoint.py", line 179, in parse_response
result = msgspec.json.decode(content, type=return_type)
msgspec.ValidationError: Expected `int`, got `float` - at `$.data[0].players.all_players[0].economy.spent.average
Python 3.11.9
valo_api==2.0.7
The call should succeed and return the same payload as before.
This used to work a couple of weeks ago. It seems the returned payload has changed format.
Using msgspec json decode is much faster than using the InitOptions
class.
Should be easy to replace.
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.