Skip to content

justinoboyle/instastat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An insights toolbox for Instagram. 🔧

NPM Version

Features

  • Export follower, like, and feed data.
  • Public or private API login
  • Output data into json or csv.
  • Scriptable

Getting Started

Installation

$ npm i -G instastat

Authentication

You can get started by using the interactive utility to setup a session like so, and following the onscreen instructions.

$ istat init

This will output an istat-auth.json (or whatever you choose to name it) in the home directory (or wherever you choose to save it).

You can use this for authentication with instastat.

If you did not save your istat-auth.json in your home directory (~/istat-auth.json), you must specify this to instastat using the ISTAT-AUTH environment variable. You probably want to put this in your .bashrc or the like.

ISTAT-AUTH=~/auth/instagram.json

Examples

Export a full list of followers to a .csv file:

$ istat --export followers --user @example --format csv > file.csv
$ cat file.csv
username,fullname,about,followercount,followingcount
@genericuser,"Generic User","I am a generic user",300,320