Domain registrar API
Three calls take a domain from an idea to an order: check that it is free, read its price, then register it. Each call is shown as a REST request and as the same tool call on the MCP server. The full schema is in /openapi.json.
Check availability
The answer is available, taken or unknown. Treat unknown as "check again", never as free. This call needs no key and no account.
curl 'https://registrar-domains.com/api/check?domain=quietharbor.fr'const res = await fetch("https://registrar-domains.com/api/check?domain=quietharbor.fr");
console.log(await res.json());import requests
res = requests.get("https://registrar-domains.com/api/check?domain=quietharbor.fr")
print(res.json())The same call as the MCP tool check_domain:
curl -s https://mcp.registrar-domains.com \
-H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"check_domain","arguments":{"domain":"quietharbor.fr"}}}'Schema: check_domain in /openapi.json.
Get a price
The answer gives our price for the first year and for each renewal year, before VAT, in its currency. Without tld, it gives the whole list. This call needs no key and no account.
curl 'https://registrar-domains.com/api/price?tld=fr'const res = await fetch("https://registrar-domains.com/api/price?tld=fr");
console.log(await res.json());import requests
res = requests.get("https://registrar-domains.com/api/price?tld=fr")
print(res.json())The same call as the MCP tool get_price:
curl -s https://mcp.registrar-domains.com \
-H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_price","arguments":{"tld":"fr"}}}'Schema: get_price in /openapi.json.
Register a domain
The answer is HTTP 201, an order with a checkoutUrl: "Order created; pay at checkoutUrl". Give that link to the human: nothing is registered or charged until they pay on that page. A TLD with a residence rule needs an eligible country (who can register). This call needs an API key, sent as a bearer token.
curl -X POST https://registrar-domains.com/api/register \
-H "Authorization: Bearer apex_…" -H "Content-Type: application/json" \
-d '{"domain": "quietharbor.fr", "years": 1, "registrant": {"firstname": "Ada", "lastname": "Martin", "address": "1 rue de Rivoli", "postal": "75001", "city": "Paris", "country": "FR", "phone": "+33.612345678", "email": "ada@example.com"}}'const res = await fetch("https://registrar-domains.com/api/register", {
method: "POST",
headers: {
"Authorization": "Bearer apex_…",
"Content-Type": "application/json",
},
body: JSON.stringify({ domain: "quietharbor.fr", years: 1, registrant: { firstname: "Ada", lastname: "Martin", address: "1 rue de Rivoli", postal: "75001", city: "Paris", country: "FR", phone: "+33.612345678", email: "ada@example.com" } }),
});
console.log(await res.json());import requests
res = requests.post(
"https://registrar-domains.com/api/register",
headers={"Authorization": "Bearer apex_…"},
json={"domain": "quietharbor.fr", "years": 1, "registrant": {"firstname": "Ada", "lastname": "Martin", "address": "1 rue de Rivoli", "postal": "75001", "city": "Paris", "country": "FR", "phone": "+33.612345678", "email": "ada@example.com"}},
)
print(res.json())The same call as the MCP tool register_domain:
curl -s https://mcp.registrar-domains.com \
-H 'content-type: application/json' -H 'accept: application/json, text/event-stream' -H 'authorization: Bearer apex_…' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"register_domain","arguments":{"domain":"quietharbor.fr","years":1,"registrant":{"firstname":"Ada","lastname":"Martin","address":"1 rue de Rivoli","postal":"75001","city":"Paris","country":"FR","phone":"+33.612345678","email":"ada@example.com"}}}}'Schema: register_domain in /openapi.json. Create a key in your dashboard after you sign in.
More: all docs, the MCP server.