Giter Club home page Giter Club logo

node-myipms-api-client's Introduction

node-myipms-api-client

Version npm node.js version js-semistandard-style

Query Myip.ms data using API

Instal

npm install myipms-api-client

Usage

You can get apiId and apiKey by registering an account at myip.ms. Free plan is available and can be used.

const myipms = require('myipms-api-client');

(async () => {
  const apiId = 'PLEASE_CHANGE_IT_TO_YOUR_APIID_FROM_MYIPMS';
  const apiKey = 'PLEASE_CHANGE_IT_TO_YOUR_APIKEY_FROM_MYIPMS';

  const result = await myipms(apiId, apiKey, '185.199.108.153');
})();

result will contain something like these:

{
  "query": "185.199.108.153",
  "ip_address": "185.199.108.153",
  "status": "ok",
  "location": {
    "countryID": "USA",
    "countryName": "United States",
    "countryIcon": "https://myip.ms/images/devices/16/flags/USA.png"
  },
  "owners": {
      "owner": {
        "range": "185.199.108.0 - 185.199.111.255",
        "cidr": "185.199.108.0/22",
        "rangeSize": "1024",
        "ownerName": "Github, Inc",
        "provider": "",
        "address": "88 Colin P. Kelly Jr. Street, 94107, San Francisco, United States",
        "countryID": "USA",
        "countryName": "USA",
        "countryIcon": "https://myip.ms/images/devices/16/flags/USA.png",
        "website": "",
        "phone": "+1 415 735 4488",
        "sites": "22274",
        "topSites": "185",
        "logo": "",
        "screenshot": "",
        "link": "https://myip.ms/view/ip_owners/802978"
      }
    },
  "statistics": {
    "total_websites_on_ip_now": "21396",
    "total_websites_on_ip_before": "9696",
    "total_not_working_websites_on_ip": "975",
    "total_dns_on_ip": 1,
    "total_os_on_ip": 0,
    "total_browsers_on_ip": 0,
    "total_useragents_on_ip": 0
  },
  "crawlerbot_use_ip": "yes",
  "ip_blacklist": {
    "blacklist": "yes",
    "latest_thread": "User Submission - Spam from this IP",
    "latest_site_visit_date": "06 Dec 2018"
  },
  "websites_on_ip_now": [
    {
      "website": "nn.ci",
      "rank": "1914",
      "visitors": "203000",
      "image": "https://myip.ms/images/popularity/rating9.png",
      "text": "203,000 visitors per day"
    },
    {
      "website": "pytorch.org",
      "rank": "2758",
      "visitors": "159000",
      "image": "https://myip.ms/images/popularity/rating9.png",
      "text": "159,000 visitors per day"
    },
    // ...
  ],
  "dns_on_ip": [
    {
      "nameserver": "185.199.108.153",
      "sites": "1",
      "topSites": "0"
    }
  ],
  "os_on_ip": [],
  "browsers_on_ip": [],
  "useragents_on_ip": []
}

Notes

API will only return 100 websites. There is no documented API to get next page on myip.ms.

My other reverse ip npm package:

  • rapiddns.io scrapper. It will return up to 10000 hostnames per ip. Also can be used to enumerate subdomains.

node-myipms-api-client's People

Contributors

kucingbasah737 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.