Quick start
1. Create an API token
- Sign in to namebeta.com with an account on the Pro, Business or Enterprise plan. An account on the Free plan gets
403 plan_required. - Open API tokens in your account panel, give the token a name and create it.
- Copy the token, which starts with
nb_live_. It is shown only once. - Make it available to your code as an environment variable:
export NAMEBETA_API_TOKEN="nb_live_…"
Authentication covers revoking and rotating tokens.
2. Check one domain
- curl
- TypeScript
- Python
curl https://api.namebeta.com/v1/domains/kettlory.com/availability \
-H "Authorization: Bearer $NAMEBETA_API_TOKEN"
Node.js 18 or later, no dependencies:
const response = await fetch(
'https://api.namebeta.com/v1/domains/kettlory.com/availability',
{ headers: { Authorization: `Bearer ${process.env.NAMEBETA_API_TOKEN}` } }
);
const body = await response.json();
if (!response.ok) {
throw new Error(`${body.error.code}: ${body.error.message}`);
}
console.log(body.status);
With Requests:
import os
import requests
response = requests.get(
"https://api.namebeta.com/v1/domains/kettlory.com/availability",
headers={"Authorization": f"Bearer {os.environ['NAMEBETA_API_TOKEN']}"},
timeout=30,
)
body = response.json()
if not response.ok:
raise RuntimeError(f"{body['error']['code']}: {body['error']['message']}")
print(body["status"])
The response:
{
"domain": "kettlory.com",
"status": "available",
"checked_at": "2026-11-13T08:00:00.000Z"
}
status is one of available, taken, reserved, forsale or unknown; Check availability explains each. The request counted one unit against your check quota.
3. Check several domains at once
Send up to 50 domains in one request. Each valid domain counts one check unit.
- curl
- TypeScript
- Python
curl https://api.namebeta.com/v1/domains/availability \
-H "Authorization: Bearer $NAMEBETA_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"domains":["kettlory.com","kettlory.io","kettlory"]}'
const response = await fetch(
'https://api.namebeta.com/v1/domains/availability',
{
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.NAMEBETA_API_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
domains: ['kettlory.com', 'kettlory.io', 'kettlory'],
}),
}
);
const body = await response.json();
if (!response.ok) {
throw new Error(`${body.error.code}: ${body.error.message}`);
}
for (const result of body.results) {
console.log(result.domain, result.status ?? result.error.code);
}
response = requests.post(
"https://api.namebeta.com/v1/domains/availability",
headers={"Authorization": f"Bearer {os.environ['NAMEBETA_API_TOKEN']}"},
json={"domains": ["kettlory.com", "kettlory.io", "kettlory"]},
timeout=60,
)
body = response.json()
if not response.ok:
raise RuntimeError(f"{body['error']['code']}: {body['error']['message']}")
for result in body["results"]:
print(result["domain"], result.get("status") or result["error"]["code"])
Results come back in the order you sent them. An input that is not a domain is answered in place rather than failing the whole request, and is not counted:
{
"results": [
{
"domain": "kettlory.com",
"status": "available",
"checked_at": "2026-11-13T08:00:00.000Z"
},
{
"domain": "kettlory.io",
"status": "available",
"checked_at": "2026-11-13T08:00:00.000Z"
},
{
"domain": "kettlory",
"error": {
"code": "invalid_domain",
"message": "A full domain name with a known TLD is required."
}
}
]
}
Next steps
- Quotas: how much you can call, and what to do with
429. - Errors: every error code and what to do about it.
- Reference: every endpoint, parameter and field.
- The OpenAPI document, to generate a client or import the API into Postman or Insomnia.