Socket
Book a DemoInstallSign in
Socket

instagram-analytics

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instagram-analytics

> Get user stats from Instagram

Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
2
-75%
Maintainers
1
Weekly downloads
 
Created
Source

instagram-analytics Build Status

Get user stats from Instagram

Install

$ npm install --save instagram-analytics

Usage

const instagramAnalytics = require('instagram-analytics');

instagramAnalytics('foobar').then(stats => {
	console.log(stats);
	/*
	{
		comments: 351,
		description: 'A wonderful description',
		email: 'foobar@gmail.com',
		engagement: 0.02,
		followers: 821,
		...
	}
	*/
});

API

instagramAnalytics(user, [options])

user

Type: string

Returns a promise for a user stats object with:

  • 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

options

count

Type: number
Default: 20

Number of posts to fetch.

License

MIT © Kevin Mårtensson

Keywords

analytics

FAQs

Package last updated on 08 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts