The Best Buy-a-Domain API for SaaS in 2026

Most domain reseller APIs were built for hosting resellers, not modern SaaS. Here's what to actually look for, and a 60-second integration guide for the one we built.

Daniel Sternlicht

7 min read
LinkedInX
On this page
  1. What is a domain API?
  2. How much does a domain API cost?
  3. Which domain API is best for a SaaS?
  4. What does the Buy a Domain API do?
  5. How do you buy a domain with one API call?
  6. How do you add domain search and TLD suggestions to a product?
  7. How does a domain API fit with billing software?
  8. Who is the Buy a Domain API for?
  9. What about users who already own a domain?
  10. When is Domainee the wrong domain API?
  11. Domain API FAQ
  12. Where to start

Domain API: what it is, what it costs, and the best one for SaaS

A domain API lets your code search, register, renew and configure domain names over HTTP. Best pick for a SaaS that sells domains to its users: Domainee's Buy a Domain API, at wholesale plus a flat $1 per registration.

This page covers domain-name APIs. If you came for Domain Group's property data API, that is a different product.

What is a domain API?

A domain API is a set of HTTP endpoints that do what a registrar dashboard does: check availability, register a domain, manage DNS records, renew, transfer. Most fall into three types:

  • Lookup APIs: WHOIS/RDAP, DNS, SSL and availability checks. Read-only.
  • Registrar and reseller APIs: register and renew domains, edit DNS records and nameservers, issue transfer codes.
  • Custom-domain APIs: connect a domain your user already owns to your app, with SSL and DNS monitoring.

Domainee covers all three. It offers 18 free public REST endpoints (no key, 30 requests/min and 500/day per IP), the Buy a Domain API for registrations, and the Connect API for domains users already own.

How much does a domain API cost?

A domain API costs the TLD's wholesale price plus whatever the provider adds. Domainee adds a flat $1 per registration. It is not a percentage, so a cheap .com stays cheap and a pricey TLD does not eat your margin.

  • Registration: wholesale + $1.
  • Renewal: same formula, wholesale + $1.
  • Minimums: none. The pricing page says "No tiers, no minimums."
  • Lookups: free, no key.
  • Connect API (bring your own domain): free for the first 20 domains and 100 GB/month, then $0.20/domain/month and $0.05/GB above 100 GB.

You charge your end user whatever you want on top. A card on file is required before the first domain. It is charged $0 under the free tier.

Which domain API is best for a SaaS?

For a SaaS that lets users buy domains inside the product, the best domain API is one you can adopt without a reseller contract. Check five things:

  • A REST API with JSON, shaped like Stripe
  • Your end user as the legal registrant, not your company
  • Per-user tagging, so you don't run a parallel database
  • Published pricing you can show your users in real time
  • White-label management, so users never need a registrar account

Here are two options, same format.

Domainee Buy a Domain API

  • Verdict: a REST API built for SaaS products that sell domains to their own users.
  • Best for: website builders, link-in-bio tools, course platforms, booking apps and anything that publishes at a user's URL.
  • Trade-offs: You integrate through REST (curl) or the MCP server. The CNAME your user's domain points to is edge.domainee.dev, so the record shows the Domainee name.
  • Price: wholesale + $1 flat per registration and per renewal. Published, no contact-sales.

Traditional registrar reseller programs (for example OpenSRS or NameSilo)

  • Verdict: built around hosting resellers who run their own reseller account and billing.
  • Price: set per program. Check each one for minimums, deposits and per-TLD rates.

What does the Buy a Domain API do?

The Buy a Domain API registers domains for your users through POST /v1/domain-purchases, covers 500+ TLDs, and manages the domain afterward. Three parts matter for a SaaS.

Domains are tagged to your end users

Every purchase can carry a customerReference: your user id, order id, whatever you use. Later, "all of Jane's domains" is one filtered GET, not a join table you maintain.

One call buys and connects

Pass autoConnect: { originUrl } and Domainee registers the domain, provisions it on the edge with automatic TLS, and sets the DNS at the registrar. Your user clicks once and the domain serves your app.

Management endpoints for the whole lifecycle

Availability and price, buy, list and get purchases, cancel or auto-renew, renew, live details, DNS records, nameservers, and the transfer-out auth code. Your users never log into a registrar because they don't have an account there. You build the dashboard, Domainee handles the registrar plumbing.

The user is the legal registrant. Domainee charges through your Stripe account. White label means something narrower than it sounds once you look at the wire, and what white label DNS actually hides has the surface-by-surface measurements.

How do you buy a domain with one API call?

Quote the price with a GET, then buy with a POST. Two calls, and the quote costs nothing.

# 1) Quote the price (no charge)
curl https://api.domainee.dev/v1/domain-purchases/check \
    --get --data-urlencode 'hostname=janesbakery.com' \
    -H "Authorization: Bearer $DOMAINEE_API_KEY"

Example response:

{
  "available": true,
  "pricing": {
    "wholesaleCents": "<TLD wholesale price in cents>",
    "feeCents": 100,
    "totalCents": "<wholesale + feeCents>",
    "currency": "USD"
  }
}

Take totalCents, add your markup, charge your user. Then buy and connect in one request:

# 2) Buy + auto-connect to your app
curl -X POST https://api.domainee.dev/v1/domain-purchases \
    -H "Authorization: Bearer $DOMAINEE_API_KEY" \
    -d '{
      "hostname": "janesbakery.com",
      "registrant": {
        "firstName": "Jane",
        "lastName":  "Smith",
        "email":     "jane@bakery.example",
        "phone":     "+1.5551234567",
        "address1":  "123 Main St",
        "city":      "Portland",
        "stateOrProvince": "OR",
        "postalCode": "97201",
        "country":   "US"
      },
      "customerReference": "user_jane_42",
      "autoConnect": {
        "originUrl": "https://janesbakery.acmesites.app"
      }
    }'

Jane is the legal owner, the domain is provisioned on the edge with TLS, and DNS at the registrar points to Domainee. Later, when Jane wants to add an MX record or check her expiry date:

# List all of Jane's domains
curl "https://api.domainee.dev/v1/domain-purchases?customerReference=user_jane_42" \
    -H "Authorization: Bearer $DOMAINEE_API_KEY"

# Read her DNS records
curl https://api.domainee.dev/v1/domain-purchases/$ID/dns \
    -H "Authorization: Bearer $DOMAINEE_API_KEY"

Send an Idempotency-Key header on the buy call. Domainee honors it for 24 hours, so a retry never buys twice. The default rate limit is 60 requests/min per key. Full reference at /docs/api/domain-purchases.

How do you add domain search and TLD suggestions to a product?

Call the check endpoint once per candidate hostname and show the price from the response. For a website builder suggesting industry TLDs, build the candidate list yourself (janesbakery.bakery, janesbakery.shop) and check each one. At 60 requests/min per key, cache results and check on demand.

For lookups that don't need a key, the free availability endpoint works without signing up. Browser versions of the free tools are at /free-tools.

How does a domain API fit with billing software?

Domainee charges through your Stripe account, and you charge your user however you already bill. Webhooks tell your system what happened: domain_purchase.completed, domain_purchase.failed, domain_purchase.renewed and domain_purchase.renewal_failed. Each is signed with HMAC-SHA256 in the x-domainee-signature header. Failed deliveries are attempted 6 times: immediately, then after 1 min, 5 min, 30 min, 2 h and 12 h.

AI tooling can drive the custom-domains side directly: the hosted MCP server at https://mcp.domainee.dev/mcp works with Claude Desktop, Cursor, Claude Code, Windsurf, Continue and Cline.

Who is the Buy a Domain API for?

It fits any product that gives users a hosted thing at a URL. If your users already ask "can I use my own domain?" once a week, "buy one through us" is a small step. Typical fits:

  • Website builders (the obvious one)
  • Newsletter platforms wanting news.acme.com
  • Link-in-bio tools wanting links.creator.com
  • AI app builders shipping per-user mini-apps at custom domains
  • Course platforms with branded learning portals
  • Booking and scheduling apps wanting book.dentist.com
  • White-label CRMs, helpdesks and support portals
  • Landing page, form and quiz tools

What about users who already own a domain?

Domainee's Connect API handles it. A user brings a domain they own and points it at your app with one CNAME. A lot of SaaS ship the "bring your own" path first, see the support load from DNS confusion, and add the buy path second. Both sit behind the same Domainee API key. The Connect API is documented at /docs/api/domains. It handles automatic SSL, re-checks DNS every 5 minutes, and gives you provider-specific setup instructions for each customer.

When is Domainee the wrong domain API?

If you are weighing the reseller route against an API, the sell-domains-in-your-app breakdown prices both.

Domainee is also the wrong call if you want to be a registrar yourself, with your own accreditation and your own underlying registrar account.

It is the right call if your end user shouldn't know what a registrar is and you want a REST API that gets out of your way. If you need custom contract terms, the Book a demo option exists next to the published self-serve pricing.

Domain API FAQ

Is an API just a URL?

No. A URL is an address. An API is a set of requests you can send to that address, each with defined inputs and outputs. https://api.domainee.dev/v1 is the base URL, and POST /v1/domain-purchases is one request against it.

Does the Buy a Domain API support internationalized domain names?

Domainee has not published IDN support for the Buy a Domain API. Run the check endpoint with your target hostname before you promise it to users.

Where to start

Grab an API key at /sign-up. Quote calls cost nothing, and you don't sign a contract just to test the API. A card on file is required before the first domain. Under the free tier it is charged $0.

If you want to talk to a human first, use the Book a demo option.

  • custom domains
  • comparison
  • buy domain api
  • saas

Daniel Sternlicht

CEO, Common Ninja

Daniel is the CEO of Common Ninja, the company behind Domainee, Embeddable, Vidocu and SendRaven. Domainee started as the custom domain layer those products kept rebuilding. Here Daniel writes about DNS, SSL and letting customers use their own domains.

Keep reading

All posts

Ship custom domains today.

Mint an API key, register your first hostname, send your customer a single CNAME. The first 20 are free.