Domain Intel | Node.js SDK
The Domain Intel service allows you to retrieve intelligence about known domain names, giving you insight into the reputation of a domain.
Domain Intel
constructor(token: PangeaToken, config: PangeaConfig): DomainIntelServiceCreates a new DomainIntelService
with the given Pangea API token and
configuration.
const config = new PangeaConfig({ domain: "pangea_domain" });
const domainIntel = new DomainIntelService("pangea_token", config);
Reputation check
reputation(domain: string, options: ReputationOptions): Promise<PangeaResponse<ReputationResult>>Retrieve reputation for a domain from a provider, including an optional detailed report.
const response = await domainIntel.reputation(
"google.com"
);
Bulk reputation check
reputationBulk(domains: string[], options: ReputationOptions): Promise<PangeaResponse<ReputationBulkResult>>Retrieve reputations for a list of domains, from a provider, including an optional detailed report.
const response = await domainIntel.reputationBulk(
["google.com"]
);
WhoIs
whoIs(domain: string, options: WhoIsOptions): Promise<PangeaResponse<WhoIsResult>>Retrieve who is for a domain from a provider, including an optional detailed report.
const response = await domainIntel.whoIs(
"google.com",
{
verbose: true,
raw: true,
}
);