Socket
Socket
Sign inDemoInstall

simple-instagram-api

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    simple-instagram-api

Extract Instagram Media data by providing its unique code.


Version published
Weekly downloads
7
decreased by-36.36%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

simple-instagram-api

GitHub CI Status Testing cron NPM version NPM downloads

Extract Instagram Media data by providing its unique code.

  • It does not require any login information
  • Can fetch IG-TV and album posts
  • Zero dependency

Table of contents

Installation

yarn add simple-instagram-api

Usage

import { InstagramApi } from "simple-instagram-api";

// https://www.instagram.com/p/CMf29lRF52W/
const code = "CMf29lRF52W";

InstagramApi.get(code).then((result) => {
  console.log(result);
});

Response:

{
  "id": "2530983242020396438",
  "code": "CMf29lRF52W",
  "is_video": false,
  "url": "...",
  "caption": "Introducing the new ..",
  "children": [
    {
      "id": "2530983238446620648",
      "code": "CMf29h8FB_o",
      "is_video": false,
      "url": "..."
    },
    {
      "id": "2530983238438257890",
      "code": "CMf29h7lITi",
      "is_video": false,
      "url": "..."
    },
    {
      "id": "2530983238555903256",
      "code": "CMf29iCl6UY",
      "is_video": false,
      "url": "..."
    },
    {
      "id": "2530983238430039583",
      "code": "CMf29h7Fx4f",
      "is_video": false,
      "url": "..."
    }
  ]
}

Running tests

yarn test

Keywords

FAQs

Last updated on 24 Sep 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc