pydo.domains.get()

Generated on 7 Jul 2026 from pydo version v0.39.0

Usage

client.domains.get(domain_name="example.com")
Returns JSONRaises HttpResponseError

Description

To get details about a specific domain, send a GET request to /v2/domains/{domain_name}.

Parameters

domain_name string required

The name of the domain itself.

Request Sample

Show Request Sample
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

resp = client.domains.get(domain_name="example.com")

Response Example

Show Response Example
{
  "domain": {
    "name": "example.com",
    "ttl": 1800,
    "zone_file": "$ORIGIN example.com.\n$TTL 1800\nexample.com. IN SOA ns1.digitalocean.com. hostmaster.example.com. 1415982611 10800 3600 604800 1800\nexample.com. 1800 IN NS ns1.digitalocean.com.\nexample.com. 1800 IN NS ns2.digitalocean.com.\nexample.com. 1800 IN NS ns3.digitalocean.com.\nexample.com. 1800 IN A 1.2.3.4\n"
  }
}

More Information

See /v2/domains/{domain_name} in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.