Flameshot: [Discussion] imgur API keys limit

Created on 14 Apr 2018  路  9Comments  路  Source: flameshot-org/flameshot

Currently, the imgur API keys has limited rate for month, if users of flameshot keep growing, the limit could be reached. How to handle rate limits?
imgur API

Rate Limits
The Imgur API uses a credit allocation system to ensure fair distribution of capacity. Each application can allow approximately 1,250 uploads per day or approximately 12,500 requests per day. If the daily limit is hit five times in a month, then the app will be blocked for the rest of the month. The remaining credit limit will be shown with each requests response in the X-RateLimit-ClientRemaining HTTP header.

We also limit each user (via their IP Address) for each application, this is to ensure that no single user is able to spam an application. This limit will simply stop the user from requesting more data for an hour. We recommend that each application takes precautions against spamming by implementing rate limiting on their own applications. Each response will also include the remaining credits for each user in the X-RateLimit-UserLimit HTTP header.

discussion

Most helpful comment

As with sharex, you could add an option that allows each individual user to specify their own API key/oauth/etc. in the app settings before you are able to upload

All 9 comments

As with sharex, you could add an option that allows each individual user to specify their own API key/oauth/etc. in the app settings before you are able to upload

or do like the kodi youtube addon. provide a multitude of api keys. then access them randomly and retry if the limit is hit

I would really like it if we could insert our own API keys. I am coming to Flameshot from Screencloud due to its lack of support on Ubuntu 18.04, and I really like Flameshot so far, but one thing that is almost a deal breaker to me is that it does not upload the screenshot to my imgur account.

I think it the best solution is to have each user provide thier own API key. Thoughts?

Pretty annoying for basic users but in bigger numbers I know of no alternative.

Do you know if we are close to hitting the imgur limit? If not we can leave the default key and just allow users to change it.

Recovering credentials for Imgur account.

Meanwhile:
https://apidocs.imgur.com/
"Each application can allow approximately 1,250 uploads per day or approximately 12,500 requests per day"

Today we have 1248 uploads left from max. 1250 (and I did one this morning If I remember correct :) ).
Probably we should monitor it but also should not waste time on it now as we have a lot to catch up.
We should postpone it I think?

Please track this RFC for future discussion on this topic: https://github.com/flameshot-org/flameshot/pull/955

Was this page helpful?
0 / 5 - 0 ratings

Related issues

szszoke picture szszoke  路  4Comments

mmesnjak picture mmesnjak  路  4Comments

makz27 picture makz27  路  4Comments

omkarnathsingh picture omkarnathsingh  路  4Comments

hosiet picture hosiet  路  4Comments