Skip to content

Get url to the profile picture of any instagram user in different resolutions

License

Notifications You must be signed in to change notification settings

legitalk/instagram-profile-picture

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Get url to the profile picture of any instagram user in different resolutions

Install

npm install --save instagram-profile-picture

Usage

  • Full size
const ipp = require('instagram-profile-picture');

ipp('9gag').then(user => {
  console.log(user);
  // => https://scontent-sit4-1.cdninstagram.com/7...jpg
});
  • Medium size
ipp.medium('9gag').then(user => {
  console.log(user);
  // => https://scontent-sit4-1.cdninstagram.com/7...jpg
});
  • Small size
ipp.small('9gag').then(user => {
  console.log(user);
  // => https://scontent-sit4-1.cdninstagram.com/7...jpg
});

Extra

Additionally, you can get downloadable link to the publically shared media (images/videos)

  • Images
ipp.image('https://www.instagram.com/p/BRfTRCQBeHw/').then(img => {
  console.log(img);
// => "https://instagram.fpat1-1.fna....9017349928908750848_n.jpg"
});
  • Videos
ipp.video('https://www.instagram.com/p/BTTuhDsgtCs/').then(vid => {
  console.log(vid);
  // => "https://instagram.fpat1-1.fn....9178079197241802752_n.mp4"
})

Related

  • Instavim : Download instagram media directly from command line.

License

MIT © Rishi Giri;

About

Get url to the profile picture of any instagram user in different resolutions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%