JSPM

node-instagram-analytics

0.5.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q22321F
  • License MIT

NodeJS module for Instagram Analytics

Package Exports

  • node-instagram-analytics

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-instagram-analytics) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-instagram-analytics

npm version npm Dependency Status

NodeJS module for Instagram Analytics

installation

$ npm install node-instagram-analytics

usage

Example.js:

var Analytics = require('node-instagram-analytics')

// use a valid instagram access token
var stats = new Analytics('<INSTAGRAM_ACCESS_TOKEN>')

// analyze an instagram profile you have access to
stats.simple('username', function (err, result) {
    if (err) {
        // do something
    }
    console.log(result)
})

The result will be something like this:

{
  "likes_per_media": 63.79468,
  "comments_per_media": 22.5142697,
  "total_likes": 2679,
  "total_comments": 945,
  "ratio": 5.68411203067,
  "limits": 4853,
  "calls": 3
}

todo

  • Publish to npm.
  • Explain module usage (improve README).
  • Improve error handling.
  • Add more features.
  • Get detailed info about user profile.
  • Calculate averages per media (likes, comments, etc).
  • Process comments (get common words, average response time, etc).
  • Process likes (most liked photo, top 3 photos, top fans, etc).

contribution

After checking Github Issues or having a chat with @jobsamuel about the project, feel free to fork and create a Pull Request.

license

MIT License ©️ 2015 Hearty Robot and other contributors