Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

insta-fetcher

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

insta-fetcher

Simplified Instagram metadata scraping

  • 1.3.35
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.9K
increased by10.88%
Maintainers
1
Weekly downloads
 
Created
Source

Insta Fetcher

HitCount GitHub license Npm package monthly downloads GitHub repo size npm version

Fetch instagram api with full details and simplified json metadata

Read the docs here

☕ Buy Me a Coffee : Saweria

Features

  • accountInfo
  • addPost
  • changeProfilePicture
  • fetchHighlights
  • fetchPost
  • fetchStories
  • fetchUser
  • fetchUserPosts
  • fetchUserV2

Usage

Installation:

npm i insta-fetcher
let { igApi, getCookie } = require("insta-fetcher");
// using constructor
let ig = new igApi("your cookie");

// you can get sesion id by using getSessionId function, it requires username & password
(async () => {
  const session_id = await getCookie("username", "password");
  console.log(session_id);
})();

Example

more example you can check at example.ts file

let { igApi } = require("insta-fetcher");

// some example with proxy, but i never test it
let ig = new igApi("your cookie", false, {
      proxy: {
        host: 'proxy-url',
        port: 80,
        auth: {username: 'my-user', password: 'my-password'}
    }
});

// Public post
ig.fetchPost("https://www.instagram.com/reel/CXhW_4sp32Z/").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);
});

// Fetch highlights
ig.fetchHighlights("adiraas.p").then((res) => {
  console.log(res);
});

My Project with this Library

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.

Keywords

FAQs

Package last updated on 12 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc