dots.v2.sizes.get()
Generated on 13 Nov 2026
from DoTs version
v1.24.0
Usage
client.v2.sizes.get(requestConfiguration?: RequestConfiguration<SizesRequestBuilderGetQueryParameters>): Promise<undefined | SizesGetResponse>Description
To list all of available Droplet sizes, send a GET request to /v2/sizes.
The response will be a JSON object with a key called sizes. The value of this will be an array of size objects each of which contain the standard size attributes.
Parameters
perPageinteger optionalExample:
2Number of items returned per page
pageinteger optionalExample:
1Which 'page' of paginated results to return.
cpuMinimuminteger optionalExample:
4Filter sizes with an inclusive minimum CPU count
cpuMaximuminteger optionalExample:
4Filter sizes with an inclusive maximum CPU count
gpuMinimuminteger optionalExample:
1Filter sizes with an inclusive minimum GPU count
gpuMaximuminteger optionalExample:
8Filter sizes with an inclusive maximum GPU count. Zero is allowed to filter to sizes without GPUs.
gpuFabricboolean optionalExample:
trueFilter sizes to those with a given GPU fabric setting
memoryMinimuminteger optionalExample:
1024Filter sizes with an inclusive minimum memory amount (in megabytes)
memoryMaximuminteger optionalExample:
1024Filter sizes with an inclusive maximum memory amount (in megabytes)
priceHourlyMinimumstring optionalExample:
0.50Filter sizes with an inclusive minimum hourly price (in USD)
priceHourlyMaximumstring optionalExample:
1.00Filter sizes with an inclusive maximum hourly price (in USD)
priceMonthlyMinimumstring optionalExample:
5.00Filter sizes with an inclusive minimum monthly price (in USD)
priceMonthlyMaximumstring optionalExample:
10.00Filter sizes with an inclusive maximum monthly price (in USD)
Request Sample
Pagination
This method returns paginated results. The response includes a links.pages object with URLs for navigating between pages. To retrieve the next page, parse the next URL and pass the page query parameter:
let response = await client.v2.sizes.get();
let pages = response?.links?.pages;
while (pages && "next" in pages && typeof pages.next === "string") {
const page = Number(new URL(pages.next).searchParams.get("page"));
response = await client.v2.sizes.get({
queryParameters: {
page,
},
});
pages = response?.links?.pages;
}Response Example
More Information
See /v2/sizes in the API reference for additional detail on responses, headers, parameters, and more.