npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

instagram-scraper-cli

v0.1.0

Published

Instagram scraper CLI and Node client: public profiles, posts and Reels as JSON or CSV, no login. A thin client of the ShortsIntel API.

Readme

Instagram Scraper

Scrape public Instagram profiles, posts and Reels from your terminal or your code. No Instagram login, output as JSON or CSV.

pip install instagram-scraper && instagram-scraper natgeo --csv > natgeo.csv

or with Node:

npx instagram-scraper-cli natgeo --csv > natgeo.csv

No code? Use the free web tool: Instagram Scraper on ShortsIntel.

This repo is a thin client of the ShortsIntel API. It contains no scraping code: ShortsIntel reads public Instagram pages and this client calls its /v1 API with your key. New accounts get 1,000 credits free, valid for 90 days.

Setup

  1. Get an API key at shortsintel.com/console/keys.
  2. Export it:
export SHORTSINTEL_API_KEY=sk_live_...

Usage

instagram-scraper <username|profile URL|post URL> [--posts N] [--csv|--json]

| Input | What you get | |---|---| | natgeo, @natgeo or https://www.instagram.com/natgeo/ | The profile and its latest Reels (12 by default, --posts N for more) | | https://www.instagram.com/reel/<code>/ or /p/<code>/ | That one post or Reel |

--json (the default) prints { "profile": {...}, "posts": [...] }. The objects use the same field names as the API: stats, engagement, hashtags, posted_at, url.

--csv prints one row per post, with the profile columns repeated on each row.

Example output

instagram-scraper plunge --csv --posts 2
handle,name,followers,following,post_url,posted_at,caption,views,likes,comments,hashtags,mentions,duration_seconds
plunge,Plunge,512300,180,https://www.instagram.com/reel/DAbCdEfGhIA/,2026-09-05T06:32:11.000Z,"Cold plunge, day 30: ""worth it""
Full routine in bio #coldplunge",1284000,143200,2810,coldplunge,coldplungeco,31
plunge,Plunge,512300,180,https://www.instagram.com/reel/DAbCdEfGhIB/,2026-09-02T17:10:00.000Z,Ice bath vs cold shower #recovery,96200,8140,212,recovery,,31
instagram-scraper plunge --posts 1
{
  "profile": {
    "platform": "instagram",
    "handle": "plunge",
    "name": "Plunge",
    "url": "https://www.instagram.com/plunge/",
    "bio": "Cold water every morning.",
    "stats": { "followers": 512300, "following": 180, "videos": null, "likes": null, "views": null }
  },
  "posts": [
    {
      "platform": "instagram",
      "id": "DAbCdEfGhIA",
      "url": "https://www.instagram.com/reel/DAbCdEfGhIA/",
      "description": "Cold plunge, day 30: \"worth it\"\nFull routine in bio #coldplunge",
      "posted_at": "2026-09-05T06:32:11.000Z",
      "hashtags": ["coldplunge"],
      "engagement": { "views": 1284000, "likes": 143200, "comments": 2810 }
    }
  ]
}

(Trimmed. The real output has every field the API returns.)

Python

from instagram_scraper import Client, scrape, to_csv

client = Client("sk_live_...")
data = scrape(client, "natgeo", posts=24)
print(data["profile"]["stats"]["followers"])
open("natgeo.csv", "w").write(to_csv(data))

reel = client.post("https://www.instagram.com/reel/<code>/")

Python 3.9+, no dependencies.

Node

npm install instagram-scraper-cli
import { Client, scrape, toCsv } from "instagram-scraper-cli";

const client = new Client(process.env.SHORTSINTEL_API_KEY);
const data = await scrape(client, "natgeo", 24);
console.log(data.profile.stats.followers);

const reel = await client.post("https://www.instagram.com/reel/<code>/");

Node 18.3+, no dependencies.

API calls it makes

| Call | When | |---|---| | GET /v1/creators/instagram/{handle}?include=videos | Profile input. Pages on with cursor when --posts is larger than one page | | POST /v1/videos/lookup | Post or Reel URL input | | GET /v1/runs/{id} | Only when a lookup takes longer than 60 seconds |

Base URL: https://www.shortsintel.com/v1, auth Authorization: Bearer $SHORTSINTEL_API_KEY. Prices per call are on the pricing page and in the API reference.

Scope

Public data only: no private accounts, follower lists, Stories or DMs. Profile input returns Reels.

Development

cd python && python -m venv .venv && .venv/bin/pip install -e . pytest && .venv/bin/pytest
cd node && npm test

Tests run against fixture responses in fixtures/. They make no network calls.

License

MIT