Socket
Socket
Sign inDemoInstall

instagram-fetch

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instagram-fetch

Fetches instagram public data


Version published
Maintainers
1
Created
Source

Instagram public api module

Easy to use module to fetch data from instagram. NOTE! this returns a promise so you need to handle it.

Import the module: const publicInstagramApi = require('public-ig-api')

Install module

yarn add public-ig-api

npm install public-ig-api --save

Get post data

Promise
publicInstagramApi.getPost('somePostCode') // example Bq0gUSGgFv7
    .then(data => console.log(data))
    .catch(err => console.log(err))
Async/Await
const data = await publicInstagramApi.getPost('somePostCode') // example 'Bq0gUSGgFv7'
console.log(data)

Get profile data

Promise
publicInstagramApi.getProfile('someProfileUsername') // example 'instagram'
    .then(data => console.log(data))
    .catch(err => console.log(err))
Async/Await
const data = await publicInstagramApi.getProfile('someProfileUsername') // example 'instagram'
console.log(data)

Keywords

FAQs

Package last updated on 26 Feb 2019

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