Opportify-SDK-NodeJS
Overview
The Opportify API provides access to a powerful and up-to-date platform. With advanced data warehousing and AI-driven capabilities, this API is designed to empower your business to make informed, data-driven decisions and effectively assess potential risks.
Sign Up Free
Base URL
Use the following base URL for all API requests:
https://api.opportify.ai/insights/v1/<service>/<endpoint>
Requirements
Recommended Node version 22.x.x. It is also compatible with +v18 .
Getting Started
First, install Opportify via the npm package manager:
npm install --save @opportify/sdk-nodejs
Calling Email Insights
import { EmailInsights } from '@opportify/sdk-nodejs';
const clientEmailInsights = new EmailInsights({
version: '1.0',
apiKey: 'YOUR_API_KEY'
});
async function analyzeEmail() {
try {
const response = await clientEmailInsights.analyze({
email: "email_to_validate@domain.com",
enableAutoCorrection: true,
enableAI: true, // only available on paid plans.
});
console.log('response', response);
} catch (error: unknown) {
console.error('error', error);
}
}
analyzeEmail();
Calling IP Insights
import { IPInsights } from '@opportify/sdk-nodejs';
const clientIpInsights = new IPInsights({
version: '1.0',
apiKey: 'YOUR-API-KEY-HERE'
});
async function analyzeIP() {
try {
const response = await clientIpInsights.analyze({
ip: '8.8.8.8',
enableAI: true // only available for paid plans.
});
console.log('response', response);
} catch (error: unknown) {
console.error('error', error);
}
}
analyzeIP();
About this package
This NodeJs package is a customization of the base generated by: