Skip to main content

Check availability in a batch

Checks up to 50 domains in one request. Each entry of the result is either an availability, as in Check availability, or an error for that one input.

Request​

POST https://api.namebeta.com/v1/domains/availability

Counts one check unit per valid domain. Invalid domains and registry suffixes are answered in place with an error; only invalid ones are not counted. When the remaining quota is less than the units the batch needs, the whole batch is rejected with 429 and nothing is counted.

Requires an API token.

JSON body

FieldTypeRequiredDescriptionConstraints
domainsstring[]YesUp to 50 full domain names; IDNs in Unicode or Punycode.1–50 items
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"]}'

Response​

200: Availability of each domain, in input order.

FieldTypeRequiredDescriptionConstraints
resultsobject[]YesOne entry per input domain, in input order.
results[].domainstringYes
results[].statusstringNoforsale is registered but listed on an aftermarket; unknown means the registry could not be reached.One of available, taken, reserved, forsale, unknown
results[].checked_atstringNoFormat date-time
results[].errorobjectNo
results[].error.codestringYesOne of invalid_domain, not_registrable
results[].error.messagestringYes
{
"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."
}
}
]
}

An entry has either status and checked_at, or error. Tell them apart by whether error is present.

Behavior​

  • results has one entry per input, in the order you sent them, duplicates included.
  • An entry with an error has domain as you sent it, with surrounding whitespace trimmed. A successful entry has the normalized name.
  • invalid_domain marks an input that is not a full domain name we can check, as for the single endpoint. It is not counted.
  • not_registrable marks a registry suffix, such as a TLD. It is counted.
  • The batch counts one check unit per valid domain, charged before any domain is checked. When fewer units are left than the batch needs, the whole batch gets 429 with quota_exceeded and nothing is counted; see Batches.
  • A body that is not a list of 1 to 50 strings gets 400 with invalid_request and is not counted.
  • Every domain is looked up live, so a large batch takes longer than a single check. Allow for it in your client's timeout.

Statuses​

StatusWhenHeaders
200Availability of each domain, in input orderRateLimit-Policy, RateLimit
400Not a list of 1 to 50 strings
401Missing, invalid, revoked or expired API tokenWWW-Authenticate
403Your plan does not include the API; upgrade to Pro or above
429A quota window of your plan is spent; nothing was countedRateLimit-Policy, RateLimit, Retry-After
OtherAny other error