Question

Hitting API limit with querying last action timestamp for droplets

Hello,

I’m using https://github.com/toin0u/DigitalOceanV2 to build a list of running droplets with their last action command and its timestamp. It takes one API request to get the list of virtual machines with their properties, except for the last action. I have to send a separate request for each droplet to get its last action timestamp. This causes the app to hit API limit of 1200 req/h.

So far I have resolved the situation by generating another API token key when I run out of requests but it’s inconvenient.

What are my options?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I might be able to not display last action information by default and make a separate button to fetch it on demand.

Or does anyone know a way to get the last action data for all droplets with a single request?

They won’t:

Hello Henno,

Thank you for giving us more information. We are not able to increase this limit and it’s a rolling limit so you may want to add some form of sleep or delay to keep the limit from being reached. You could also look into decreasing the requests on the page.

For both of these matters it’s really all a matter of how you have designed things and a choice that you, or your developers, will have to make. If you are reaching the limit though you will need to lower the requests as we cannot increase the limit from our end.

We also have a very active community where someone may have had a similar issue and may have suggestions as well.

Our users actively share knowledge and help each other out with common issues.

You can find community resources such as articles, public chat, and forums can be found here: https://digitalocean.com/community

If you’d like to ask a specific question, you can do so here: https://digitalocean.com/community/questions

Let us know if you have any other questions!

Regards, James DigitalOcean Support Check out our community for great tutorials, articles and FAQs! https://digitalocean.com/community

I would recommend opening a support ticket here. Support may be able to assist you with the limit issues.