All Integrations

Fidro + Node.js Integration

Validate emails and detect fraud in your Node.js application. Follow this guide to add email validation and IP intelligence in minutes.

Overview

To integrate Fidro with Node.js, send a POST request to the Fidro API with the user's email and IP address. Fidro returns a risk score, email validation results, and IP intelligence data in a single JSON response. The integration requires no SDK — just standard HTTP requests using Node.js's built-in fetch API with your API key.

Fidro is a fraud detection API that combines email validation, IP intelligence, geolocation analysis, and Stripe chargeback prevention in a single API call. It returns a risk score with a clear recommendation — allow, review, or block — so you can stop fraud without building your own scoring logic.

1. Install Dependencies

# Node 18+ has built-in fetch. For older versions:
npm install node-fetch

You will also need a Fidro API key. Sign up for free to get one.

2. Email Validation

Send a POST request to Fidro's /v1/validate endpoint with the user's email address and optional IP. Fidro validates the email, checks for disposable domains, analyzes the IP for VPN/proxy/Tor usage, and returns a risk score with a clear recommendation — allow, review, or block.

const FIDRO_API_KEY = process.env.FIDRO_API_KEY;

async function validateEmail(email, ip) {
  const response = await fetch("https://api.fidro.io/v1/validate", {
    method: "POST",
    headers: {
      "Authorization": `Bearer ${FIDRO_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ email, ip }),
  });

  if (!response.ok) {
    throw new Error(`Fidro API error: ${response.status} ${response.statusText}`);
  }

  const result = await response.json();
  console.log("Risk score:", result.data.risk_score);
  console.log("Recommendation:", result.data.recommendation);
  return result;
}

// Usage
validateEmail("test@example.com", "8.8.8.8")
  .then((result) => console.log(result))
  .catch((err) => console.error(err));

3. IP Lookup

Send a POST request to Fidro's /v1/ip-lookup endpoint with an IP address. Fidro returns geolocation data (country, city, ISP), VPN and proxy detection, Tor exit node identification, and threat intelligence — all in a single API call.

const FIDRO_API_KEY = process.env.FIDRO_API_KEY;

async function lookupIP(ip) {
  const response = await fetch("https://api.fidro.io/v1/ip-lookup", {
    method: "POST",
    headers: {
      "Authorization": `Bearer ${FIDRO_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ ip }),
  });

  if (!response.ok) {
    throw new Error(`Fidro API error: ${response.status} ${response.statusText}`);
  }

  const result = await response.json();
  console.log("Country:", result.data.country);
  console.log("Is VPN:", result.data.is_vpn);
  return result;
}

// Usage
lookupIP("8.8.8.8")
  .then((result) => console.log(result))
  .catch((err) => console.error(err));

Next steps

Explore the full API reference, try the free email checker, or see how Fidro compares to other solutions.

Frequently Asked Questions

How do I add fraud detection to Node.js?
You can add fraud detection to Node.js by calling Fidro's REST API with a POST request containing the user's email and IP address. Fidro returns a risk score and a clear recommendation — allow, review, or block. The entire integration takes about 5 minutes.
Does Fidro have a Node.js SDK?
Fidro doesn't require an SDK. It's a standard REST API that works with any HTTP client in JavaScript, including Node.js's built-in fetch API (available in Node 18+) or the node-fetch package for older versions.
Is Fidro free to use with Node.js?
Yes, Fidro offers a free plan with 1,000 validations per month, no credit card required. It works with any Node.js application, whether you're using Express, Fastify, Hapi, or plain Node.js.

Start catching bad signups in the next 5 minutes

Create your account, grab your API key, and send your first request. Free plan with 200 validations/month. No credit card. Cancel anytime.

Get Started Free