node-instagram-analytics

    0.5.0 • Public • Published

    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

    Install

    npm i node-instagram-analytics

    DownloadsWeekly Downloads

    1

    Version

    0.5.0

    License

    MIT

    Last publish

    Collaborators

    • jobsamuel