DigitalOcean API
DigitalOcean API
DigitalOcean API offers programmatic control of Droplets (VMs), managed Kubernetes, object storage, and databases.
Transparent pricing, hourly billing with predictable budgets
Fewer regions than AWS/GCP (~14)
Sign up at cloud.digitalocean.com, then API → Tokens to generate a Personal Access Token (read or read/write). Send Authorization: Bearer <token>. Official CLI is doctl; SDKs include the digitalocean Python package and godo for Go.
Uptime · 30-day window
About this API
DigitalOcean positions itself as the developer-friendly simplified cloud — a smaller product surface than AWS or GCP but with developer experience as the top priority across every line. Droplets (VMs) go from create to SSH in tens of seconds, with hourly pricing and none of the hidden egress surprises that catch AWS newcomers.
API design is a real strength. Every resource (droplets, Kubernetes, databases, Spaces, load balancers, firewalls) follows the same REST shape and uses one auth method: Personal Access Token. That contrasts sharply with AWS's multiple credential types, SigV4 signing, and layered IAM policies. Terraform, Pulumi, and Ansible all have polished DO providers, making IaC workflows pleasant.
The trade-off is scale and breadth. DO has about 14 regions today, well behind AWS (30+) or GCP (35+). Advanced networking (dedicated interconnects, fine-grained private routing) and "upper-layer" managed services (AWS Bedrock, GCP Vertex AI for managed ML) have little or no equivalent on DO. For SMB workloads or teams that want to skip AWS complexity, DO is an excellent alternative; for enterprise compliance and global deployment, AWS/GCP remain necessary.
What you can build
- 1Auto-create and destroy Droplets for batch workloads
- 2Drive IaC pipelines (Terraform / Pulumi backend)
- 3Manage Kubernetes clusters
- 4Configure Spaces object storage and CDN
- 5Let SaaS apps connect to a user's own DO account
Strengths & limitations
Strengths
- Transparent pricing, hourly billing with predictable budgets
- Simpler API and docs than AWS
- Developer marketplace and 1-click apps
- Massive community tutorial library
Limitations
- Fewer regions than AWS/GCP (~14)
- Advanced networking (fine-grained private routing) is limited
- Some AWS/GCP-only services (Bedrock, BigQuery) have no equivalent
Example request
curl https://digitalocean.com/<endpoint> \
-H "Authorization: Bearer $API_KEY"
# Some providers use X-Api-Key instead — verify in the docs.Getting started
Sign up at cloud.digitalocean.com, then API → Tokens to generate a Personal Access Token (read or read/write). Send Authorization: Bearer <token>. Official CLI is doctl; SDKs include the digitalocean Python package and godo for Go.
FAQ
Is the API free?+
The API itself is free; you only pay for the actual resources (Droplets, databases, Spaces) you create, billed hourly.
How should I store the API token?+
Keep it in server-side env vars only — never commit or ship to the frontend. Create separate tokens per app so you can revoke individually.
What are the rate limits?+
Default is 5,000 calls/hour, with a 250/minute burst limit. Throttling returns 429 with Retry-After.
Does it work well from China?+
Yes, but with higher latency — DO has no mainland China data center. Singapore and Tokyo are the closest regions.
Technical details
- Auth type
- api_key
- Pricing
- paid
- Protocols
- REST
- SDKs
- python, javascript, go, ruby
- Response time
- 368 ms
- Last health check
- 5/12/2026, 7:37:19 AM
Endpoints
Parsed from the OpenAPI spec. Showing 12 of 288 non-deprecated endpoints.
/v2/1-clicks1-Click ApplicationsList 1-Click Applications
/v2/1-clicks/kubernetes1-Click ApplicationsInstall Kubernetes 1-Click Applications
/v2/accountAccountGet User Information
/v2/account/keysSSH KeysList All SSH Keys
/v2/account/keysSSH KeysCreate a New SSH Key
/v2/account/keys/{ssh_key_identifier}SSH KeysDelete an SSH Key
/v2/account/keys/{ssh_key_identifier}SSH KeysRetrieve an Existing SSH Key
/v2/account/keys/{ssh_key_identifier}SSH KeysUpdate an SSH Key's Name
/v2/actionsActionsList All Actions
/v2/actions/{action_id}ActionsRetrieve an Existing Action
/v2/appsAppsList All Apps
/v2/appsAppsCreate a New App
276 more endpoints not shown. See the OpenAPI spec for the full list.