Hitting API limit with querying last action timestamp for droplets

Posted December 3, 2014 2.8k views


I’m using 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?

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.

Submit an Answer
3 answers

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

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:

If you’d like to ask a specific question, you can do so here:

Let us know if you have any other questions!

DigitalOcean Support
Check out our community for great tutorials, articles and FAQs!

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?

  • @diarainfra There isn’t currently a way to get the last action with a single request. One feature that is on the road map but not implemented yet is webhooks. That would allow you to only update when an action is taken. In the mean time, I’d recommend caching the information so that it isn’t rebuilt on each request.

    I’ve passed your use case onto our engineering team. Thanks for the helpful feedback!