Get user stats from Instagram
$ npm install --save instagram-analytics
const instagramAnalytics = require('instagram-analytics');
instagramAnalytics('foobar').then(stats => {
console.log(stats);
/*
{
comments: 351,
description: 'A wonderful description',
email: '[email protected]',
engagement: 0.02,
followers: 821,
...
}
*/
});
Type: string
Returns a Promise for a user stats object with:
comments
: Total number of commentsdescription
: User descriptionemail
: User emailengagement
: Average user engagement (((comments + likes) / posts) / followers
)followers
: Total number of followersfollowing
: Total number of followingfrequency
: Returns ams-to
object with a post frequency between the first and last onefullName
: User full nameid
: User idlikes
: Total number of likesposts
: Total number of postsurl
: User Instagram urlusername
: Same username as suppliedwebsite
: User website
Type: number
Default: 20
Number of posts to fetch.
MIT © Kevin Mårtensson