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",
    teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
  });

  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

A valid domain name

Query Parameters

years
string

The number of years to get the price for. If not provided, the minimum number of years for the TLD will be used.

teamId
string
Example:

"team_1a2b3c4d5e6f7g8h9i0j1k2l"

Response

Success

years
number
required
purchasePrice
required
Required range: x >= 0.01
renewalPrice
required
Required range: x >= 0.01
transferPrice
required
Required range: x >= 0.01