Skip to main content

Function: checkDomain()

checkDomain(domain: string, apiKey: string): Promise<{ classification: "unknown" | "malicious" | "suspicious" | "safe"; isScam: boolean; verifiedPhish: boolean; }>

Defined in: Phisherman.ts:20

Checks if a link is detected as a scam or phishing link by phisherman.

Parameters

ParameterTypeDefault valueDescription
domainstringundefinedThe domain to check.
apiKeystringstoredApiKeyoptionally pass a Phiserman API key for making this request. This will default to storedApiKey, which can be configured through setApiKey.

Returns

Promise<{ classification: "unknown" | "malicious" | "suspicious" | "safe"; isScam: boolean; verifiedPhish: boolean; }>

Since

1.0.0