Version 2.3.0
Changelog
- Added dotenv and updated instructions for Docker Compose deployment
- Added players search endpoint (
/players
) - Added players career data endpoint (
/players/{player_id}
) for summary and statistics - Added specific endpoint for player summary (
/players/{player_id}/stats
) - Added specific endpoint for players statistics on a given platform (
pc
orconsole
) and gamemode (quickplay
orcompetitive
).- If the player is only playing on one platform, the
platform
parameter is optional - It's possible to only retrieve data for a specific hero with the
hero
parameter
- If the player is only playing on one platform, the
⚠️ Disclaimer concerning career pages ⚠️
Players statistics are cached for performance purposes, as Blizzard pages take ~2-3 seconds to load. Since the pages are back, I noticed it's very unstable on their side, we often have a "504 Gateway Time-out" error, either on players search or career pages, sometimes a "404 Page Not Found" error even if the player exists and its profile is public.
As a consequence, I configured my cache system in order to prevent (in most cases) any issue regarding pages load :
- Career data is cached for ~2 hours
- Instead of trying to update the cache 5 min before its expiration, it's trying to update it starting from one hour before its expiration (one try per minute).
I'll try to adjust these values depending on Blizzard pages stability, but don't hesitate to contact me if you have a recurring issue concerning career endpoints loading time (only the first time should be long).