Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codedotjs/instagram-profile-picture
:gem: Get url to the profile picture (and more) of any Instagram user in different resolutions!
https://github.com/codedotjs/instagram-profile-picture
api image instagram instagram-user npm profile-picture resolution video
Last synced: 7 days ago
JSON representation
:gem: Get url to the profile picture (and more) of any Instagram user in different resolutions!
- Host: GitHub
- URL: https://github.com/codedotjs/instagram-profile-picture
- Owner: CodeDotJS
- License: mit
- Created: 2016-11-05T18:40:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-01T23:51:37.000Z (over 6 years ago)
- Last Synced: 2024-12-06T11:05:45.804Z (19 days ago)
- Topics: api, image, instagram, instagram-user, npm, profile-picture, resolution, video
- Language: JavaScript
- Homepage:
- Size: 41 KB
- Stars: 41
- Watchers: 5
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> Get url to the profile picture of any instagram user in different resolutions
## Install
```
npm install --save instagram-profile-picture
```## Usage
- __`Full size`__ `:` __`1080x1080 px`__
```js
const ipp = require('instagram-profile-picture');ipp('9gag').then(user => {
console.log(user);
// => https://scontent-sit4-1.cdninstagram.com/7...jpg
});
```- __`Regular size`__ `:` __`640x640 px`__
```js
ipp.regular('instagram').then(user => {
console.log(user);
// => https://scontent-sit4-1.cdninstagram.com/7...jpg
});
```- __`Medium size`__ `:` __`320x320 px`__
```js
ipp.medium('9gag').then(user => {
console.log(user);
// => https://scontent-sit4-1.cdninstagram.com/7...jpg
});
```- __`Small size`__ `:` __`150x150 px`__
```js
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`__
```js
ipp.image('https://www.instagram.com/p/BRfTRCQBeHw/').then(img => {
console.log(img);
// => "https://instagram.fpat1-1.fna....9017349928908750848_n.jpg"
});
```- __`Videos`__
```js
ipp.video('https://www.instagram.com/p/BTTuhDsgtCs/').then(vid => {
console.log(vid);
// => "https://instagram.fpat1-1.fn....9178079197241802752_n.mp4"
})
```## Related
- [`Instavim`](https://github.com/CodeDotJS/instavim) : Download instagram media directly from command line.
## License
MIT © [Rishi Giri](http://rishigiri.ml);