COMPARISON · REGISTRAR APIS · 2026
Registering domains programmatically: the real options
Five ways to buy a domain from code, compared honestly — including the case where ours is the wrong choice.
Short answer: if you want the cheapest possible register call and nothing else, use the Cloudflare Registrar API — it sells at cost, so registration, renewal, and transfer are the same wholesale price forever, and no one on this page beats that. If you need a TLD Cloudflare's API does not cover, Name.com is the broad retail workhorse and DNSimple is the one built for infrastructure-as-code. Namefi is worth a look if you specifically want domain ownership represented on-chain. And Agent Domains by Clize — ours — is for the case where the registration is not the job: an AI coding agent that needs to buy a name behind a spend gate, point it at a site and an inbox, and be told when the domain stops resolving three weeks later. Pick on that last axis, because it is the only one where these options genuinely differ.
The comparison at a glance
Reviewed 30 Aug 2026 · coverage and pricing models as listed on each registrar's site that day.
| Option | How you drive it | Pricing model | After the purchase | Best for |
|---|---|---|---|---|
| Cloudflare Registrar API | REST API | At cost — register = renew = transfer | DNS in the same account; you build the rest | Cheapest long-run cost, already on Cloudflare |
| Name.com API | REST API, with a test environment | Retail — promos year one, higher renewals | DNS + email forwarding; you build the rest | Broad TLD coverage from one mature API |
| Namefi | API + on-chain ownership | Retail, plus on-chain transaction costs | Tokenized transfer and trading | Contract-driven or tradable ownership |
| DNSimple | REST API + Terraform provider | Subscription plan on top of domain cost | DNS, certificates, IaC workflows | Teams managing domains as infrastructure |
| Agent Domains (Clize) | CLI + MCP, inside Claude Code / Codex | Quote first; charged only on --confirm | Four-layer health check, 30-min monitoring, alerts, DNS, email, deploys | Agents that must own and operate the domain |
Cloudflare Registrar API — at cost, and hard to beat on price
Cloudflare's registrar exists to not make money on domains: it sells at wholesale, which means the renewal price equals the registration price equals the transfer price, permanently. No first-year promotion, no year-two surprise. Over any horizon longer than twelve months this is simply the cheapest option here, and we route to it ourselves whenever a TLD is available through it.
The constraints are real, though. Registration through the API has covered a much narrower set of TLDs than a retail registrar — the seven we route to it are .com, .net, .org, .app, .dev, .info, and .xyz, with the list expanding over time, so check current coverage before you design around it. Domains live on Cloudflare's DNS, which is a feature if you are already there and a migration if you are not. And when we last checked, transfers in were not available through the API at all — that step is a dashboard action, which quietly rules out fully automated registrar consolidation. Choose it if price over years is what you are optimising and your TLDs are covered.
Name.com API — the broad retail workhorse
Name.com has offered a documented REST API for domain search, registration, DNS, and transfers for long enough that it shows up underneath other people's products, including as the registrar behind some resellers. Coverage across the long tail of TLDs is wide, there is a separate test environment so you can exercise the register call without spending money, and the surface is straightforward to script against. It has also been visibly courting AI and agent workloads, which mostly means the same API with better-signposted docs.
The trade-off is retail pricing: an attractive first year, a higher renewal, and per-TLD promotions you have to actually read. For a domain you intend to keep for five years, that difference dwarfs any API convenience. Choose it if you need a TLD the at-cost options do not carry, or you want one mature API covering nearly everything.
Namefi — registration with on-chain ownership
Namefi registers ordinary ICANN domains but represents ownership as an on-chain token, so a domain can be transferred, escrowed, or traded by a smart contract rather than by a registrar support ticket. For agent scenarios that involve autonomous ownership or a marketplace, that is a genuinely different primitive, and access is built for programmatic use rather than a checkout page.
It is also the option with the most concepts attached. You inherit wallets, keys, and transaction costs on top of domain costs, and the ecosystem is younger than the others here — which matters more for a domain, where the failure mode is a name you cannot recover, than it does for most software choices. Choose it if tokenized ownership is a requirement rather than a curiosity; skip it if you just want a domain pointed at a website.
DNSimple — domains as infrastructure
DNSimple has been the developer's registrar for well over a decade: a clean, thoroughly documented API covering registration, DNS, and certificates, plus a Terraform provider that lets domains live in the same declarative workflow as the rest of your infrastructure. If your team already describes its estate in code, this is the option that fits without adaptation.
Pricing is a subscription alongside the domain cost rather than at-cost per name, so it is a fit for teams and an awkward one for a hobbyist buying two domains a year. Choose it if domains belong in your IaC repo and a plan fee is a rounding error against the engineering time it saves.
Agent Domains by Clize — for when the purchase is not the job
Ours, so weigh it accordingly. Agent Domains is not a better registrar API — underneath, it routes to Cloudflare and Vercel per TLD to reach 556 of them. What it is, is the layer around the purchase, built for an agent working inside Claude Code or Codex rather than for code you write against an SDK. On price: a registration is quoted first and charged only on --confirm, from your prepaid balance.
Three things follow from that. The spend is gated: clize domain buy example.com without --confirm returns a quote and registers nothing — an agent can search and price all day and still cannot charge you. The domain is pointed, not just bought: nameservers land on Cloudflare automatically, so the same name can carry a deployed site, a working mailbox, and a www-to-apex redirect from the same account. And it is watched afterwards: a four-layer health check — registry delegation, zone, binding, content — runs on demand and on a 30-minute sweep, emailing you after two consecutive failures and only for domains that are actually our responsibility or actually carrying your things.
That last part is the whole reason this product exists. We lost four domains for four days to a delegation that vanished at the registry while every dashboard we owned reported green, and no registrar API on this page would have told us. Choose it if an agent is doing the work and the domain has to stay up; do not choose it if you want the raw register call at the lowest possible price — that is Cloudflare, and we will happily point you there.
You can also use two
These are not exclusive, and the combination is frequently the right call: register at cost wherever that is cheapest, then run clize domain import example.com to bring the name under the operations layer. The registrar and the price stay where they are; the health checks, monitoring, and alerts apply anyway. Domains registered elsewhere need their nameservers pointed at Cloudflare once, by hand, at the current registrar — after that they are indistinguishable from domains bought through Clize.
What none of these APIs tells you until after the purchase
Every page currently cited for this question — the registrar blogs, the API references, the walkthroughs — describes the happy path of one vendor. Three things sit outside all of them, and each one costs money or uptime the first time you meet it.
| What surprises you | Why the API does not warn you | What to do instead |
|---|---|---|
| Premium pricing | An availability call returns available for a premium name exactly as it does for an ordinary one. The premium price arrives in the price field, not in an error. | Read the quoted price on every call and compare it against the TLD's standard price before you register. An agent that registers whatever is available will eventually buy a four-figure name that was technically for sale. |
| Renewal ≠ registration | Retail registrars quote the first year. The renewal price lives in a different field, or on a different page, and is often several times higher. | Decide on the five-year cost. At-cost registrars charge the same number every year, which is why they lose the year-one comparison and win the real one. |
| A successful registration can still be unreachable | The API returns success, the dashboard says verified, the zone says active — and the registry may still not be publishing your delegation. | Verify against public DNS, not against the vendor's own field. Query a resolver you do not control and check that the nameservers are really there. |
The third row is not hypothetical, and it is the reason this section exists. In June 2026 four .app domains we had registered through a registrar API became unreachable for roughly four days: the delegation had disappeared at the registry, while the registrar's API kept reporting verified: true and the DNS provider's zone kept reporting active. Both fields were reading their own records, not the registry's. The only signal that disagreed was a plain DoH query, which returned NXDOMAIN for the TLD lookup the entire time. That failure mode has its own page — when the registry stops publishing your delegation — and it is where the four-layer health check came from.
So the operational rule, whichever registrar you pick: after any programmatic registration, re-check the delegation from outside. One request is enough —
$ curl -s "https://dns.google/resolve?name=example.com&type=NS" | head -c 200
— and if it comes back empty while your registrar says the domain is fine, believe the resolver. That check is what clize domain check example.com runs as its first of four layers, and it is the one no registrar API on this page performs on your behalf.
How to choose in three questions
1) Is price over five years the deciding factor? Yes, and the TLD is covered → Cloudflare Registrar API. 2) Do domains belong in your infrastructure code, or do you need an unusual TLD? → DNSimple for the former, Name.com for the latter; Namefi if ownership itself needs to be programmable. 3) Is an AI agent doing this, and does the domain need to still be working next month? → Agent Domains, with a spend gate in front and a health check behind.
FAQ
What is a premium domain?
A premium domain is a name the registry itself prices above the standard rate for that TLD — often tens or hundreds of times higher. The catch for anything programmatic is that an availability call returns it as available exactly like an ordinary name; the premium price arrives in the price field, not as an error. Read the quoted price on every call and compare it against the TLD's standard price before you register.
Can I register a free domain?
Not a real top-level domain: every registrar API charges the registry fee, and a name offered free for a year is a first-year promotion with a normal renewal behind it. What is genuinely free is a subdomain of somebody else's name — Clize gives every agent a free handle at <slug>.clize.app with a site and a mailbox on it, which is enough to ship and receive mail without buying anything. Buy a domain when you need a name you own.
What is programmatic domain registration?
Registering a domain through an API or CLI instead of a checkout page: search availability, read a price, submit registrant contact details, and get back a registered name — plus, usually, the ability to set nameservers and DNS records in the same call chain. It is what makes domains scriptable, and what lets an AI agent do the work end to end.
What is the cheapest way to register domains through an API?
Cloudflare Registrar, if it supports the TLD you want. It sells at cost — registration, renewal, and transfer are the same wholesale price, with no markup and no first-year promotion that jumps later. Retail registrars are cheaper in year one and more expensive from year two, which is the number that matters for anything you intend to keep.
Can an AI agent register a domain by itself?
Technically yes with any registrar API and a stored payment method — which is exactly why the interesting question is what stops it. A sane setup separates searching and pricing, which the agent should do freely, from spending, which should require an explicit human confirmation and a spend cap. Agent Domains implements that split as a command flag: without --confirm you get a quote, never a charge.
Which registrar API has the widest TLD coverage?
Retail registrars such as Name.com and DNSimple cover the long tail broadly; Cloudflare Registrar's API-registrable set has been much smaller and is expanding over time. Clize routes per TLD across Cloudflare and Vercel to reach 556 TLDs, so the coverage question is answered by the platform rather than by you. Always check current coverage before committing — this is the fastest-moving line in the table.
Do I have to pick just one?
No, and the combination is often the right answer. Register at cost wherever that is cheapest, then bring the domain under an operations layer with clize domain import — you keep the registrar and the price, and gain the four-layer health check, monitoring, and alerts on top.
Try the one with the gate and the alarm.
Searching and pricing are free and charge nothing. Bought elsewhere? clize domain import keeps your registrar and adds the checks.
$ npm i -g @clize/clize $ clize login $ clize domain search yourname # prices, no charge $ clize domain buy yourname.com # quote only — needs --confirmAgent Domains →