Skip to main content
GET
/
v1
/
registrar
/
tlds
/
{tld}
/
price
getTldPrice
import { Vercel } from "@vercel/sdk";

const vercel = new Vercel({
  bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await vercel.domainsRegistrar.getTldPrice({
    tld: "<value>",
  });

  console.log(result);
}

run();
{
  "years": 123,
  "purchasePrice": 1.01,
  "renewalPrice": 1.01,
  "transferPrice": 1.01
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

tld
string
required

Query Parameters

years
string

a string to be decoded into a number

Response

Success

years
number
required

The number of years the returned price is for.

purchasePrice
number | null
required

The base TLD price for purchasing a domain for the given number of years. If null, the TLD does not support purchasing domains for the given number of years.

Required range: x >= 0.01
renewalPrice
number | null
required

The base TLD price for renewing a domain for the given number of years. If null, the TLD does not support renewing domains for the given number of years.

Required range: x >= 0.01
transferPrice
number | null
required

The base TLD price for transferring a domain in for the given number of years. If null, the TLD does not support transferring domains in for the given number of years.

Required range: x >= 0.01
I