Report this

What is the reason for this report?

Can I get the monthly traffic quota used for a space via API?

Posted on April 12, 2019

I would like to get the data of the outgoing traffic used for a space, to be able to notify the current use and the extra cost in a web page available to the customer. Can I do it via API?



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!

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.

Greetings!

I wish that I had a way for you to do that in such an easily automated way, and perhaps that may happen in future iterations. Currently the only way to determine this is to check the usage/invoices here:

https://cloud.digitalocean.com/settings/billing

Jarland

Thanks for the reply. Since I resell the service, applying a markup to the cost I pay to DO, I am developing a panel where I can show the excess traffic and therefore the current monthly price, including my mark-up. So obviously I can’t show the customer the invoice page of the DO account (which among other things shows me my other services, droplets, etc.). Moreover, in the page you link I see the traffic of the droplets, and not that of the spaces

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.