node-instagram-analytics
v0.5.0
Published
NodeJS module for Instagram Analytics
Downloads
2
Maintainers
Readme
node-instagram-analytics
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
- [x] ~~Publish to npm.~~
- [x] ~~Explain module usage (improve README).~~
- [ ] Improve error handling.
- [ ] Add more features.
- [x] ~~Get detailed info about user profile.~~
- [x] ~~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 :copyright: 2015 Hearty Robot and other contributors