Skip to main content
GET
/
v1
/
registrar
/
domains
/
{domain}
/
price
getDomainPrice
import { Vercel } from "@vercel/sdk";

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

async function run() {
  const result = await vercel.domainsRegistrar.getDomainPrice({
    domain: "excited-dwell.org",
  });

  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

domain
string
required

Query Parameters

years
string

a string to be decoded into a number

Response

Success

years
number
required
purchasePrice
number | null
required

The price for purchasing this domain for the given number of years. If null, the domain is not available for purchase for the given number of years.

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

The price for renewing this domain for the given number of years. If null, the domain cannot be renewed for the given number of years.

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

The price for transferring this domain in for the given number of years. If null, the domain cannot be transferred in for the given number of years.

Required range: x >= 0.01
I