instagram-stories

1.2.3 • Public • Published

instagram-stories

Build Status XO code style

Get the Instagram Stories in Node.js

Install

npm install --save instagram-stories

Usage

const {
  getStories,
  getStoriesFeed,
  getMediaByCode,
  getUserHighlights,
  getUserByUsername
} = require('instagram-stories')

// Get stories of Instagram
// id:        account id for get stories
// userid:    me id
// sessionid: value of cookies from Instagram
getStories({ id: 25025320, userid: 1284161654, sessionid: '' }).then(stories => {
  console.log(stories)
})

// Get stories of people you follow
getStoriesFeed({ userid: 1284161654, userid: 1284161654, sessionid: '' }).then(feed => {
  console.log(feed)
})

// temporary broken. Looking for working solution
getMediaByCode({ code: 'BUu14BdBkO5', userid: 1284161654, sessionid: '' }).then(media => {
  console.log(media)
})

getUserByUsername({ username: 'instagram', userid: 1284161654, sessionid: '' }).then(({ user }) => {
  console.log(user.id)
})

getMediaByLocation({ id: '292188415', userid: 1284161654, sessionid: '' }).then(({ location }) => {
  console.log(location.name)
})

getUserHighlights({id: '25025320', userid: 1284161654, sessionid: '')).then(({ tray }) => {
  console.log(tray);
})

License

MIT © Jesús Lobos, Dmitry Konstantinov

/instagram-stories/

    Package Sidebar

    Install

    npm i instagram-stories

    Weekly Downloads

    10

    Version

    1.2.3

    License

    MIT

    Unpacked Size

    5.37 kB

    Total Files

    4

    Last publish

    Collaborators

    • jlobos
    • dim_k