An insights toolbox for Instagram. 🔧
- Export follower, like, and feed data.
- Public or private API login
- Output data into json or csv.
- Scriptable
$ npm i -G instastat
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
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