DigitalOcean API logo

DigitalOcean API

DigitalOcean API

DigitalOcean API offers programmatic control of Droplets (VMs), managed Kubernetes, object storage, and databases.

Visit site ↗Health checked 9h ago
Use it when

Transparent pricing, hourly billing with predictable budgets

Watch for

Fewer regions than AWS/GCP (~14)

First check

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.

Auth
api_key
CORS
No
HTTPS
Yes
Signup
Required
Latency
368 ms
Protocol
REST
Pricing
paid

Uptime · 30-day window

Probes: 1Uptime: 100%Avg latency: 368ms
01

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.

02

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
03

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
04

Example request

Generic template — replace <endpoint> with the real path from the docs.
curl https://digitalocean.com/<endpoint> \
  -H "Authorization: Bearer $API_KEY"
# Some providers use X-Api-Key instead — verify in the docs.
05

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.

06

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.

07

Technical details

CORS: NoHTTPS: YesSignup: YesOpen source: No
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
08

Endpoints

Parsed from the OpenAPI spec. Showing 12 of 288 non-deprecated endpoints.

GET
/v2/1-clicks1-Click Applications

List 1-Click Applications

type:query
POST
/v2/1-clicks/kubernetes1-Click Applications

Install Kubernetes 1-Click Applications

GET
/v2/accountAccount

Get User Information

GET
/v2/account/keysSSH Keys

List All SSH Keys

per_page:querypage:query
POST
/v2/account/keysSSH Keys

Create a New SSH Key

DELETE
/v2/account/keys/{ssh_key_identifier}SSH Keys

Delete an SSH Key

GET
/v2/account/keys/{ssh_key_identifier}SSH Keys

Retrieve an Existing SSH Key

ssh_key_identifier:path*
PUT
/v2/account/keys/{ssh_key_identifier}SSH Keys

Update an SSH Key's Name

GET
/v2/actionsActions

List All Actions

GET
/v2/actions/{action_id}Actions

Retrieve an Existing Action

action_id:path*
GET
/v2/appsApps

List All Apps

with_projects:query
POST
/v2/appsApps

Create a New App

Accept:headerContent-Type:header

276 more endpoints not shown. See the OpenAPI spec for the full list.

09

Tags