ShoobyDoo / OPGG.py

An unofficial Python library for accessing OPGG data.
BSD 3-Clause "New" or "Revised" License
9 stars 4 forks source link

Complete refactor current method of fetching champion data #33

Closed ShoobyDoo closed 2 months ago

ShoobyDoo commented 2 months ago

Found a new endpoint structure while just guessing around for parameters: https://op.gg/api/v1.0/internal/bypass/meta/champions/?hl=

This will return ONLY the champion data who's id was passed. 99% of the time, we do not really want to fetch the entire champions list. Its resource intensive and not efficient. Instead, I believe a good idea would be to add the following: