TypeScript
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 }
Get price data for a specific domain
Default authentication mechanism
A valid domain name
The number of years to get the price for. If not provided, the minimum number of years for the TLD will be used.
"team_1a2b3c4d5e6f7g8h9i0j1k2l"
Success
x >= 0.01