npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

myipms-api-client

v1.0.5

Published

Query Myip.ms data using API

Downloads

14

Readme

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.