Report this

What is the reason for this report?

How can I get the cost of my droplets via API?

Posted on May 30, 2018

I would like to be able to get the cost of the droplets using the API. According to the documentation this is not possible. Am I right? Is there any other way to get that data?

Thank you!



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.
0

Accepted Answer

I’ve just found the price is available through the API.

   "droplets" : [
      {
         "tags" : [
            "cauldron"
         ],
         "status" : "active",
         "features" : [
            "virtio"
         ],
         "volume_ids" : [],
         "size_slug" : "48gb",
         "size" : {
            "price_hourly" : 0.71429,
...

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.