Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

PierrickP/sqreen-api

Open more actions menu

Repository files navigation

Sqreen-api

Build Status npm npm license

This module is a just a small helper for the Sqreen API (https://www.sqreen.io/developers.html) For the "main" product, see https://www.npmjs.com/package/sqreen

Install

npm i sqreen-api --save

Usage

const SqreenApi = require('sqreen-api');
const sqreenApi = new SqreenApi('YOUR_API_KEY');

// Get details about email
sqreenApi.email('myemail@mail.com')
  .then(() => {
      /*
        {
          email: 'ChunkyLover53@aol.com',
          risk_score: 0,
          is_known_attacker: false,
          high_risk_security_events_count: 0,
          security_events_count: 0,
          is_disposable: false,
          is_email_malformed: false,
          is_email_harmful: false
        }
       */
    });

// Get detais about ip
sqreenApi.ip('8.8.8.8')
  .then(() => {
      /*
        {
          ip: '8.8.8.8',
          ip_version: 4,
          risk_score: 5,
          is_known_attacker: false,
          security_events_count: 0,
          high_risk_security_events_count: 0,
          ip_geo: {
            latitude: 37.38600158691406,
            city: 'Mountain View',
            longitude: -122.08380126953125,
            country_code: 'USA'
          },
          is_datacenter: true,
          is_vpn: false,
          is_proxy: false,
          is_private: false,
          is_tor: false
        }
       */
    });

// ---

In other languages

Background

This node.js module is not maintened by Sqreen.io. @vdeturckheim forced me to do that repo 😛

About

Just a small helper for the Sqreen API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.