Giter Club home page Giter Club logo

instagram-analytics's Introduction

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: '[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 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.

instagram-analytics's People

Contributors

kevva avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.