pydo.droplets.list()
Generated on 3 Aug 2026
from pydo version
v0.40.0
Usage
client.droplets.list(
per_page=20,
page=1,
tag_name=None,
name=None,
type=None,
)Description
To list all Droplets in your account, send a GET request to /v2/droplets.
The response body will be a JSON object with a key of droplets. This will be
set to an array containing objects each representing a Droplet. These will
contain the standard Droplet attributes.
Filtering Results by Tag
It’s possible to request filtered results by including certain query parameters.
To only list Droplets assigned to a specific tag, include the tag_name query
parameter set to the name of the tag in your GET request. For example,
/v2/droplets?tag_name=$TAG_NAME.
GPU Droplets
By default, only non-GPU Droplets are returned. To list only GPU Droplets, set
the type query parameter to gpus. For example, /v2/droplets?type=gpus.
Parameters
per_pageinteger optionalNumber of items returned per page
pageinteger optionalWhich 'page' of paginated results to return.
tag_namestring optionalUsed to filter Droplets by a specific tag. Can not be combined with
nameortype.
Requirestag:readscope.namestring optionalUsed to filter list response by Droplet name returning only exact matches. It is case-insensitive and can not be combined with
tag_name.typestring optionalWhen
typeis set togpus, only GPU Droplets will be returned. By default, only non-GPU Droplets are returned. Can not be combined withtag_name.
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
parameter:
from urllib.parse import urlparse, parse_qs
resp = client.droplets.list()
pages = resp.get("links", {}).get("pages", {})
while "next" in pages:
parsed = urlparse(pages["next"])
page = int(parse_qs(parsed.query)["page"][0])
resp = client.droplets.list(page=page)
pages = resp.get("links", {}).get("pages", {})Response Example
More Information
See /v2/droplets in the API reference for additional detail on responses, headers, parameters, and more.