Do you have a Pricing API

December 12, 2016 1.5k views
API Arch Linux

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.


1 Answer

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.

Have another answer? Share your knowledge.