You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

myipms-api-client

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

myipms-api-client

Query Myip.ms data using API

1.0.5
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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.

Keywords

myip.ms

FAQs

Package last updated on 07 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts