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 🙏

© 2024 – Pkg Stats / Ryan Hefner

insta-package

v0.0.1

Published

This Node.js package provides a simple and efficient way to download media from Instagram. Whether you need to download images, videos, or stories, this package makes it easy with minimal setup. Designed for developers, this package supports various media

Downloads

42

Readme

insta-package

npm version Build Status GitHub license Npm package monthly downloads GitHub repo size

This Node.js package provides a simple and efficient way to download media from Instagram. Whether you need to download images, videos, or stories, this package makes it easy with minimal setup. Designed for developers, this package supports various media formats and ensures quick downloads, making it perfect for both personal use and larger projects. With straightforward API calls, you can integrate Instagram media downloading functionality into your applications effortlessly.

Table of Contents

Installation:

To install the package, run:

npm install insta

or

npm i insta

Usage

To use the insta package, follow the example below. This package allows you to fetch data from Instagram posts.

Example

const insta = require("insta");

async function test(url) {
  try {
    const result = await insta(url);
    console.log(result);
  } catch (error) {
    console.error("Error fetching data:", error);
  }
}

test("https://www.instagram.com/reel/C9HytkYS4Hc/?utm_source=ig_web_copy_link");

Output

The result object contains the data fetched from the Instagram post. You can adjust the code to process this data as needed.

{
  "video": [
    {
      "video": "https://scontent.cdninstagram.com/o1/v/t16/f2/m69/An9VukWeVHPYEj_QoBTxvf0tfXakKJyWBnztDeTFbQnOgu4XVsGh1Y4xi8ucjLzRFEqnQXom7sn5MSlr01mZbWN3.mp4?efg=eyJxZV9ncm91cHMiOiJbXCJpZ193ZWJfZGVsaXZlcnlfdnRzX290ZlwiXSIsInZlbmNvZGVfdGFnIjoidnRzX3ZvZF91cmxnZW4uY2xpcHMuYzIuMTA4MC5iYXNlbGluZSJ9&_nc_ht=scontent.cdninstagram.com&_nc_cat=111&vs=497431829473320_3124900975&_nc_vs=HBksFQIYOnBhc3N0aHJvdWdoX2V2ZXJzdG9yZS9HQXZCQlJRTXI0ZThmc0FDQUhwU212emZpdTU5YnBSMUFBQUYVAALIAQAVAhg6cGFzc3Rocm91Z2hfZXZlcnN0b3JlL0dBVFAwQnBUU1J0S21NZ0NBSHFCM0hWajJtNEVicV9FQUFBRhUCAsgBACgAGAAbABUAACb%2B7dzD24aXQRUCKAJDMywXQDuQ5WBBiTcYFmRhc2hfYmFzZWxpbmVfMTA4MHBfdjERAHX%2BBwA%3D&_nc_rid=5c862724ed&ccb=9-4&oh=00_AYCg7DV04LknbzJ_Y09ehpcdqt3Jl9gykX2lFieJAjWUJg&oe=668D6CE5&_nc_sid=10d13b",       
      "thumbnail": "https://scontent.cdninstagram.com/v/t51.29350-15/450258777_1528082971118106_3162685055130347958_n.jpg?stp=dst-jpg_e15&_nc_ht=scontent.cdninstagram.com&_nc_cat=1&_nc_ohc=P2DVaf_sZ0IQ7kNvgFSmczi&edm=APs17CUBAAAA&ccb=7-5&oh=00_AYC7b5Dib4CyVhX_h6D1Tb8hZSuKD0fbAfcNcvN78enfaA&oe=66916EA3&_nc_sid=10d13b"
    }
  ]
}

Features

  • [x] Instagram media download link

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.

License

This project is licensed under the MIT license - see the LICENSE file for details.