TLD prices
Lists what every registrar we track charges to register and to renew a domain under one TLD, as the TLD pages on namebeta.com do.
Request
GET https://api.namebeta.com/v1/tlds/{tld}/prices
Counts one single unit; an unknown TLD or currency counts none.
Requires an API token.
Path parameters
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
tld | string | Yes | A TLD without the leading dot; IDNs in Unicode or Punycode. | 1–63 characters |
Query parameters
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
currency | string | No | Currency the amounts are converted to. | One of CNY, USD, CAD, EUR, GBP, HKD, JPY, KRW, BRL, IDR, INR, MYR, SGD; Default USD |
curl "https://api.namebeta.com/v1/tlds/com/prices?currency=EUR" \
-H "Authorization: Bearer $NAMEBETA_API_TOKEN"
Response
200: Prices of every registrar we track.
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
tld | string | Yes | ||
currency | string | Yes | ||
prices | object[] | Yes | ||
prices[].registrar | object | Yes | ||
prices[].registrar.slug | string | Yes | ||
prices[].registrar.name | string | Yes | ||
prices[].registration | string | Yes | A decimal amount in currency. | |
prices[].renewal | string | null | Yes | Null when the registrar publishes none. | |
prices[].promo | object | No | Present when registration dropped at least 10% in the last 7 days. | |
prices[].promo.old | string | Yes | The registration price before. | |
prices[].promo.discount | integer | Yes | Percent off the old price. | |
prices[].register_url | string | null | Yes | Where to register at the registrar; may be an affiliate link. |
{
"tld": "com",
"currency": "EUR",
"prices": [
{
"registrar": { "slug": "porkbun.com", "name": "Porkbun" },
"registration": "9.71",
"renewal": "10.17",
"register_url": "https://porkbun.com/"
}
]
}
The example is shortened to one registrar; amounts and links change.
Behavior
- Send the TLD without the leading dot:
com,io, or an internationalized TLD in Unicode or Punycode. A TLD we do not know gets422withunsupported_tld. - Amounts are decimal strings in
currency, rounded to two decimals. Registrars that price in another currency are converted at our current exchange rate, so the amount you pay at the registrar can differ slightly. renewalisnullwhen the registrar publishes no renewal price.promoappears when the registration price dropped at least 10% in the last 7 days.promo.oldis the price before, andpromo.discountthe percentage off.register_urlleads to the registrar's site and may be an affiliate link; it isnullwhen we have none.pricesis not paginated; it lists every registrar we track for the TLD.
Statuses
| Status | When | Headers |
|---|---|---|
200 | Prices of every registrar we track | RateLimit-Policy, RateLimit |
400 | Invalid currency | |
401 | Missing, invalid, revoked or expired API token | WWW-Authenticate |
403 | Your plan does not include the API; upgrade to Pro or above | |
422 | Unknown TLD | |
429 | A quota window of your plan is spent; nothing was counted | RateLimit-Policy, RateLimit, Retry-After |
| Other | Any other error |