This package is deprecated in favor of the API https://api.instagram.com/oembed/?url=https://www.instagram.com/p/BJmERWHgFEd/
get-instagram-photo
helps you get Instagram photo by URL.
Install
$ npm install --save get-instagram-photo
Usage
const getInstagramPhoto = require('get-instagram-photo')
getInstagramPhoto('https://www.instagram.com/p/BItduURBUpF/')
.then(image => {
console.log(image)
//=> https://scontent.cdninstagram.com/t51.2885-15/e35/13735878_229794197415635_1137269208_n.jpg?ig_cache_key=MTMwOTgzMzc5MjgzOTgzMDA4NQ%3D%3D.2
})
API
getInstagramPhoto(url)
url
Type: string
The URL to the sharable link of an Instagram photo.
License
MIT © EGOIST