I am working on a class project of data analysis and scratch the match data from League API. I am pretty sure that I followed the rate limit (by using sys.sleep()) but I suddenly got an error of 403, saying I'm forbidden and might be blacklisted.
How would I solve this?
Answer by Canisback (EUW) · Apr 12 at 06:36 PM
There are two main ways to get 403, either you are on dev key and you have to reload your key every day, either, as you say, you are blacklisted. You can check if you are blacklisted on the page of the key. Rate limiting by having an hardcoded limit is bad as you should depend on the limit the value returned in the header of your request.
If you want more info about the header stuff, the documentation is very comprehensive about how rate limiting works:
Thanks for your answer, very helpful!
I went to the page of the key https://developer.riotgames.com but couldn't found out if I'm blacklisted or not. Is this the correct link?
Depends on the key you use. If it's an app key, on the page of the app you have a message saying the key is blacklisted. For the dev key I can't confirm as I never saw i myself, but I think there should be the same message displayed.