Where to find the list of optimized droplets slugs?

May 23, 2018 1.8k views

I have found this page https://developers.digitalocean.com/documentation/changelog/api-v2/new-size-slugs-for-droplet-plan-changes/

But here only presents the slugs for standard droplet.

I’m able to get droplet’s size info by API, but there is no information within returned JSON to distinguish standard and optimized droplets.

I assume a droplet with “8gb” slugs is optimized by comparing the CPU, RAM, SSD and price - not really convenient way.

I did implement the complex performance test using “8gb” droplets and every time I have so different results so I can’t believe that this droplets have dedicated vCPU.


2 Answers
xMudrii May 24, 2018
Accepted Answer

Hello @altexy!

The slugs for optimized droplets are not available in the blog post, but you can get them from the API, over the /v2/sizes endpoint.

The 8gb-formatted slugs you mentioned are old Droplets, and those are going to be discontinued starting July 1st, 2018.

The optimized Droplets should be prefixed c-. For example, the lowest one, with 1 vCPU and 2 GB RAM is c-1vcpu-2gb, but other’s are prefixed c-2, c-4, where number is number of vCPUs they have.

Pay attention that API responses are paged. If you use the following curl command, you’ll get only first 20 sizes/slugs, out of total 30.

curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer your-token" "https://api.digitalocean.com/v2/sizes"

To get another 10, you need to specify that you want the second page from the API:

curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer your-token" "https://api.digitalocean.com/v2/sizes?page=2"

Let me know if you have any other questions.

  • Thank you a lot. I used the c-4 droplet size and saw much higher and stable performance in compassion with old ones.


I know this post is pretty old, but I wanted to share something I put together recently: https://slugs.do-api.dev/

It is updated automatically via the DigitalOcean API, so it is always up to date. Besides Droplet Sizes, it also has the slugs for Distro Images, One-Click Apps, and Kubernetes Versions.

Hope you find it useful!

Have another answer? Share your knowledge.