1.2.3 • Published 2 years ago

instagram-stories v1.2.3

Weekly downloads
52
License
MIT
Repository
github
Last release
2 years ago

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

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

7 years ago

1.0.0

7 years ago