instagram-analytics
v3.0.1
Published
> Get user stats from Instagram
Downloads
81
Readme
instagram-analytics
Get user stats from Instagram
Install
$ npm install instagram-analytics
Usage
const instagramAnalytics = require('instagram-analytics');
(async () => {
console.log(await instagramAnalytics('foobar'));
/*
{
comments: 351,
description: 'A wonderful description',
email: '[email protected]',
engagement: 0.02,
followers: 821,
…
}
*/
})();
API
instagramAnalytics(user, options?)
Returns a Promise<Object>
for user stats with the following:
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
user
Type: string
Username to fetch stats from.
options
Type: Object
count
Type: number
Default: 20
Number of posts to fetch.