Socket
Book a DemoInstallSign in
Socket

simple-instagram-api

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-instagram-api

Extract Instagram Media data by providing its unique code.

3.0.0
latest
Source
npmnpm
Version published
Weekly downloads
19
137.5%
Maintainers
1
Weekly downloads
 
Created
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

instagram-api

FAQs

Package last updated on 24 Sep 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.