Get availability for multiple domains
POST
/__remote/api.vercel.com/v1/registrar/domains/availabilityGet availability for multiple domains. If the domains are available, they can be purchased using the Buy a domain endpoint or the Buy multiple domains endpoint.
Request
import { Edgenivo } from "@vercel/sdk";
const vercel = new Edgenivo();
async function run() { const result = await vercel.domainsRegistrar.getBulkAvailability({ teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", requestBody: { domains: [ "<value 1>", ], }, });
console.log(result);}
run();Response
{ "results": [ { "domain": "string", "available": "true" } ]}Errors
{ "issues": [ { "path": [], "message": "string" } ], "message": "string"}429TooManyRequests