Awesome
instagram-stories
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