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
required

Represents a monetary amount in USD dollars

Required range: x >= 0.01
renewalPrice
number
required

Represents a monetary amount in USD dollars

Required range: x >= 0.01
transferPrice
number
required

Represents a monetary amount in USD dollars

Required range: x >= 0.01
I