A couple of years ago i asked about a pricing API similar to what Amazon offers for their services. Is such an API available or could I get access to the file(s) containing this information. I suspect the information is available somewhere other than scrapping the web pages.
cheers </jima>
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.
Hi check this one https://developers.digitalocean.com/documentation/v2/#list-all-sizes
Hi guys!
Also have a same issue: do you have an API with pricing info currently? I don’t mean only for those droplets that I’m using, but also for all instances that are available on Digital Ocean (so I cannot use the option with parsing invoices).
You can look at API endpoints. As you can see there is no pricing endpoint.
You have invoice available in Control Panel (Settings -> Billing). Invoice is updated daily. You also have invoices for past month.
Beside scraping Web pages, you can utilize API and make script that will calculate usage for you. Something like: take all Droplets and creation time, same for Snapshots and Block Storage, calculate hours (from 1st of month to 672 hours) and multiple by price.
You can leave your feedback/idea on DigitalOcean UserVoice.