preethamvishy / instapro

A Node.js library to get a wide range of public Instagram data without API keys or logging in. https://www.npmjs.com/package/instapro
MIT License
54 stars 18 forks source link
instagram instagram-api instagram-client instagram-scraper node nodejs social-media

instapro 🚀

Get the widest range of Instagram data possible without Instagram API keys or logging in. A Node.js library that supports more endpoints than similar libraries without authentication.

https://www.npmjs.com/package/instapro

instapro

Data available

Usage

Instapro can be installed via npm: npm install instapro --save

Example.js provides examples of each supported endpoint.


const {
    getMediaByCode,
    getUserByUsername,
    getMediaByLocation,
    getMediaByTag,
    getMediaLikesByCode,
    getMediaCommentsByCode,
    generalSearch,
    getUserIdFromUsername,
    getUserProfilePicture,
    getTaggedUsersByCode,
    getMediaOwnerByCode
  } = require('./index');

getUserByUsername('instagram').then((user) => {
    console.log(user)
})

getUserIdFromUsername('instagram').then((id) => {
    console.log(id)
})

getMediaByCode('BUu14BdBkO5').then(media => {
    console.log(media)
})

getMediaOwnerByCode('BUu14BdBkO5').then(media => {
    console.log(media)
})

getMediaByLocation('292188415').then(({ location }) => {
    console.log(location.id)
    console.log(location.name)
    console.log(location.slug)
})

getMediaByTag('abcd').then((media) => {
    console.log(media)
})

generalSearch('insta').then((results) => {
    console.log(results)
})

getUserProfilePicture('instagram').then((url) => {
    console.log(url)
})

getMediaLikesByCode('BUu14BdBkO5').then((media) => {
    console.log(media)
})

getMediaCommentsByCode('BUu14BdBkO5').then((media) => {
    console.log(media)
})

getTaggedUsersByCode('BUu14BdBkO5').then((media) => {
    console.log(media)
})

License

MIT