MCPcopy Index your code
hub / github.com/Gimenz/insta-fetcher

github.com/Gimenz/insta-fetcher @1.2.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2.5 ↗ · + Follow
13 symbols 25 edges 6 files 10 documented · 77% updated 3mo ago1.2.5 · 2021-12-08★ 8914 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Insta Fetcher

HitCount GitHub license Npm package monthly downloads GitHub repo size

Fetch instagram metadata with full details and simplified json metadata

☕ Buy Me a Coffee : Saweria

Features

  • [x] fetchUser
  • [x] fetchPost
  • [x] fetchStories
  • [x] explore
  • [ ] fetchHighlights
  • [ ] fetchTV
  • [ ] fetchReels

Usage

Installation:

npm i insta-fetcher

recommended to set the session id before make call to all function

const ig = require('insta-fetcher');

ig.setCookie('your session id');

Example

const ig = require('insta-fetcher');

// Public post
ig.fetchPost('https://www.instagram.com/p/CMBZUsMALA_/').then(res => {
   console.log(res);
})
// User data
ig.fetchUser('mg.creativestudio').then(res => {
   console.log(res);
})

// Fetch stories
ig.fetchStories('adiraas.p').then(res => {
   console.log(res);
})

Contributing

All kinds of contributions are welcome - code, tests, documentation, bug reports, new features, etc...

  • Send feedbacks.
  • Submit bug reports.
  • Write/Edit the documents.
  • Fix bugs or add new features.

Core symbols most depended-on inside this repo

get
called by 6
src/helper/cookieHandler.js
getIdByUsername
called by 2
src/index.js
UrlFormatter
called by 1
utils/index.js
save
called by 1
src/helper/cookieHandler.js
update
called by 1
src/helper/cookieHandler.js
check
called by 1
src/helper/cookieHandler.js
setCookie
called by 0
src/index.js
fetchPost
called by 0
src/index.js

Shape

Function 7
Method 4
Class 2

Languages

TypeScript100%

Modules by API surface

src/index.js6 symbols
src/helper/cookieHandler.js6 symbols
utils/index.js1 symbols

For agents

$ claude mcp add insta-fetcher \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact