Using OAutho to bypass API limits

Sort:
mlody87pl

I would like to use OAuth authorization to bypass api limits.
Is it enough that it generates one token and I can use it all the time in my application or do I have to renew it every time it starts/shoots the api?

If I want to download only a few data from the api without requiring users to log in, can I use my account to generate a token?

Can you give some example? :)

Thank you in advance!

Martin_Stahl

As far as I'm aware, use ig oAuth does not impact rate limits

CosmosOfSolomon

Perhaps the documentation is outdated, but if you're making serial request calls to the API there are no rate limits.
https://www.chess.com/news/view/published-data-api#pubapi-general-rate-limitsEven with parallel requests, one may receive a "429 Too Many Requests", but that's contingent on the processing time of requests.

CosmosOfSolomon

If that's not the case, however, the token response body will include the "expires_in" field, which stores the value for the TTL of the access token. In other words, once that time (seconds) elapses, the "refresh_token" would need to be used to obtain a new token.