🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ig-downloader

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ig-downloader

Node.js library for downloading and processing Instagram media data such as reels, posts, and stories with ease.

1.1.5-alpha
latest
Source
npm
Version published
Weekly downloads
66
266.67%
Maintainers
1
Weekly downloads
 
Created
Source

📸 Instagram Downloader

[!CAUTION] This library is no longer available because the API provider for this library is no longer working properly. Please check out the all-downloader library which supports video downloads for more sites. Please check out the all-downloader library which supports video downloads for more sites.

npm GitHub Release Build Status Libraries.io dependency status for GitHub repo

ig-downloader is a powerful Node.js library for downloading and processing Instagram media data such as reels, posts, and stories with ease. 🚀

Instagram Downloader GIF

✨ Features

  • ✅ Fetch detailed Instagram media data.
  • ✅ Supports posts, reels, and more.
  • ✅ Easy-to-use API with TypeScript support.
  • ✅ Handles errors gracefully for invalid URLs.
  • ✅ Lightweight and efficient.

📦 Installation

Install the library via npm or yarn:

# Using npm
npm install ig-downloader

# Using yarn
yarn add ig-downloader

🚀 Usage

CommonJS Example

const IgDownloader = require("ig-downloader").IgDownloader;

const urls = [
  "https://www.instagram.com/p/DD6_fC1TkcK/?utm_source=ig_web_copy_link",
];

const fetchInstagramData = async () => {
  for (const url of urls) {
    try {
      console.log(`Fetching data for: ${url}`);
      const data = await IgDownloader(url);
      console.log("Instagram Data:", data);
    } catch (error) {
      console.error(`Error fetching data for ${url}:`, error.message);
    }
  }
};

fetchInstagramData();

ESModule Example

import { IgDownloader } from "ig-downloader";

const urls = [
  "https://www.instagram.com/p/DD6_fC1TkcK/?utm_source=ig_web_copy_link",
];

const fetchInstagramData = async () => {
  for (const url of urls) {
    try {
      console.log(`Fetching data for: ${url}`);
      const data = await IgDownloader(url);
      console.log("Instagram Data:", data);
    } catch (error) {
      console.error(`Error fetching data for ${url}:`, error.message);
    }
  }
};

fetchInstagramData();

🌟 Features in Detail

FeatureDescription
Support for Posts & ReelsWorks seamlessly with Instagram posts and reels.
Error HandlingHandles invalid URLs and other API errors gracefully.
TypeScript SupportFully typed API for enhanced development experience.

🛠️ Development

Running Tests

Run all unit tests with Jest:

yarn test

Generating Documentation

Generate Typedoc documentation:

yarn docs

Running Examples

Run example usage scripts:

yarn example

🔗 Contributing

Contributions are welcome! If you'd like to contribute, feel free to open an issue or submit a pull request. Make sure to follow the contribution guidelines. ❤️

📜 License

This project is licensed under the MIT License. See the license file for details.

📞 Contact

For questions or support, reach out via:

Feel free to adapt this template to your specific needs. If you want, you can replace the GIF link with a relevant GIF or badge for your project! 🚀

FAQs

Package last updated on 15 May 2025

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