Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alexa-stats

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alexa-stats

Scrapes [Alexa](http://www.alexa.com/) site to get traffic statistics and analytics for domain.

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

alexa-stats

Scrapes Alexa site to get traffic statistics and analytics for domain.

Install

npm install alexa-stats

Usage

const alexaStats = require('alexa-stats')

const domain = 'github.com'

alexaStats(domain)
.then(data => {
  console.log(data)

  /*
  {
    domain: 'github.com',
    country: 'United States',
    countryFlag: 'http://pcache.alexa.com/images/flags/us.968591e0050981be9fa94bd2597afb48.png',
    globalRank: '58',
    globalRankChange: '4',
    countryRank: '46',
    bounceRate: '44.00%',
    bounceRateChange: '3.00%',
    dailyPageViewsPerVisitor: '5.24',
    dailyPageViewsPerVisitorChange: '3.50%',
    dailyTimeOnSite: '6:19',
    dailyTimeOnSiteChange: '3.00%',
    searchVisits: '32.70%',
    searchVisitsChange: '36.00%',
    totalSitesLinkingIn: '79,903',
    loadSpeed: '1.675 Seconds',
    categories:
     [ 'Computers > Software > Configuration Management > Tools > Git',
       'Computers > Open Source > Project Hosting' ],
    upstreamSites:
     [ 'google.com 11.7%',
       'stackoverflow.com 3.7%',
       'google.co.in 2.8%',
       'github.io 2.4%',
       'youtube.com 2.2%' ],
    downstreamSites: []
  }
  */
})
.catch(error => {
  console.error(error)
})

Test

npm test

NOTE: This module will most likely break in the future when Alexa updates their DOM selectors.

License

MIT

Keywords

FAQs

Package last updated on 19 Sep 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc