3.0.1 • Published 5 years ago

instagram-analytics v3.0.1

Weekly downloads
159
License
MIT
Repository
github
Last release
5 years ago

instagram-analytics Build Status

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: 'foobar@gmail.com',
		engagement: 0.02,
		followers: 821,
		…
	}
	*/
})();

API

instagramAnalytics(user, options?)

Returns a Promise<Object> for user stats with the following:

  • comments: Total number of comments
  • description: User description
  • email: User email
  • engagement: Average user engagement (((comments + likes) / posts) / followers)
  • followers: Total number of followers
  • following: Total number of following
  • frequency: Returns a ms-to object with a post frequency between the first and last one
  • fullName: User full name
  • id: User id
  • likes: Total number of likes
  • posts: Total number of posts
  • url: User Instagram url
  • username: Same username as supplied
  • website: User website

user

Type: string

Username to fetch stats from.

options

Type: Object

count

Type: number Default: 20

Number of posts to fetch.

3.0.1

5 years ago

3.0.0

5 years ago

2.1.2

5 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.1.0

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago