Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
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
1.1.0
Version published
Weekly downloads
5
-28.57%
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.users(['foobar', 'unicorn']).then(stats => {
	console.log(stats);
	/*
	[{
		comments: 351,
		commentsPerPost: 8,
		description: 'A wonderful description',
		email: 'foobar@gmail.com',
		engagement: 0.02,
		followers: 821,
		following: 387,
		fullName: 'Foo Bar',
		id: '2343gf12',
		likes: 581,
		likesPerPost: 12,
		posts: 146,
		postsPerDay: 1.23,
		url: 'http://instagram.com/foobar',
		username: 'foobar',
		website: 'http://foobar.com'
	}, {
		...
	}]
	 */
});

API

instagramAnalytics.users(users, [options])

users

Type: Array

Returns a promise for an array of user stats objects with:

  • comments: Total number of comments
  • commentsPerPost: Average number of comments per post
  • description: User description
  • email: User email
  • engagement: Average user engagement (((comments + likes) / posts) / followers)
  • followers: Total number of followers
  • following: Total number of following
  • fullName: User full name
  • id: User id
  • likes: Total number of likes
  • likesPerPost: Average number of likes per post
  • posts: Total number of posts
  • postsPerDay: Average posts per day
  • url: User Instagram url
  • username: Same username as supplied
  • website: User website

options

count

Type: number
Default: 20

Number of posts to fetch.

minEngagement

Type: number
Default: 0

Minimum amount of engagement.

minFollowers

Type: number
Default: 0

Minimum amount of followers.

instagramAnalytics.post(id, [options])

id

Type: string

Fetch stats for all users that has commented on a post. Returns a promise for an array of user stats objects.

options

Same as above.

License

MIT © Kevin Mårtensson

Keywords

analytics

FAQs

Package last updated on 16 Feb 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