Get the Instagram Stories in Node.js and Browser
npm install --save instagram-stories
const {
getStories,
getStoriesFeed,
getMediaByCode,
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, sessionid: '' }).then(feed => {
console.log(feed)
})
getMediaByCode('BUu14BdBkO5').then(media => {
console.log(media)
})
getUserByUsername('instagram').then(({ user }) => {
console.log(user.id)
})
MIT © Jesús Lobos