fetch follower, media, like, comment counters for the
access_token
owner
Install the package:
$ npm install fetch-instagram-user
Obtain access_token
through the regular OAuth flow with basic
permissions.
const fetch = require('fetch-instagram-user');
fetch(access_token).then(stats => {
console.log(stats);
// { name: 'bence.danyi', followers: 50, posts: 251, likes: 268, comments: 6 }
});
Fetch followers
and posts
counters, and likes
, comments
counters for the last 20 posts.
MIT