Domain

owner()

domain.owner() → Promise<Owner>

What the registry publishes about the name: its registrar, when it expires, whether it is locked.

read at the registryno key needednever estimated
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

await domain.owner();
// { known: true, registrar: "…", expiresAt: "2027-11-30T13:09:02.000Z", daysLeft: 53,
//   locked: true, dnssecAtRegistrar: false, servedByUs: true, source: "rdap" }
domain.owner()
# {"known": True, "registrar": "…", "expiresAt": "2027-11-30T13:09:02.000Z", "daysLeft": 53,
#  "locked": True, "dnssecAtRegistrar": False, "servedByUs": True, "source": "rdap"}

Why an expiry deserves a call of its own

A domain that lapses takes the site, the mail and the certificates down together, and nothing inside the platform warns you. api.domains.expiring() is the same reading across every domain of the account.

What the registry does not publish stays null

Registries publish different amounts, and some publish nothing. A missing field is null, never guessed, and known: false says the lookup found nothing at all.

Buying, renewing and transferring are not here

owner() is read-only. Domain registration and renewal are separate, customer-confirmed checkout flows; they are not agent actions or methods on api.domains. See the domain purchase API. servedByUs only says whether the name currently points at us.