Working with Domains

Domains represent verified and curated entities, such as companies, projects, or individuals.

Fetch Domain Information

Fetch details of a specific domain or the default domain associated with your API key:

// Fetch your domain
const yourDomain = await ctx.domain();

// Fetch a specific domain.tld
const domain = await ctx.domain("context.startup");

Domain Properties

Access and display properties of a domain:

console.log(domain.data.name);
console.log(domain.data.fullDomain);
console.log(domain.data.tld);
console.log(domain.data.documents);
console.log(domain.data.status);
console.log(domain.data.createdAt);
console.log(domain.data.updatedAt);

Last updated