Socket
Socket
Sign inDemoInstall

instagram-fetch

Package Overview
Dependencies
61
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    instagram-fetch

Fetches instagram public data


Version published
Weekly downloads
2
Maintainers
1
Install size
6.11 MB
Created
Weekly downloads
 

Readme

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 instagramFetch = require('instagram-fetch')

Install module

yarn add instagram-fetch

npm install instagram-fetch --save

Get post data

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

Get profile data

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

Keywords

FAQs

Last updated on 26 Feb 2019

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