https://github.com/jlobos/instagram-stories
Get the Instagram Stories in Node.js and Browser
https://github.com/jlobos/instagram-stories
facebook instagram stories story
Last synced: 3 days ago
JSON representation
Get the Instagram Stories in Node.js and Browser
- Host: GitHub
- URL: https://github.com/jlobos/instagram-stories
- Owner: jlobos
- License: mit
- Created: 2017-05-31T13:37:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-05T14:11:36.000Z (5 months ago)
- Last Synced: 2025-04-18T21:42:16.157Z (8 days ago)
- Topics: facebook, instagram, stories, story
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/instagram-stories
- Size: 492 KB
- Stars: 109
- Watchers: 5
- Forks: 26
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# instagram-stories
[](https://travis-ci.org/github/jlobos/instagram-stories)
[](https://github.com/sindresorhus/xo)Get the Instagram Stories in Node.js
## Install
```
npm install --save instagram-stories
```## Usage
```js
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