Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/victorsouzaleal/instagram-direct-url
Get direct url to download from Instagram media links
https://github.com/victorsouzaleal/instagram-direct-url
download downloader image instagram javascript link media photo picture url video
Last synced: 7 days ago
JSON representation
Get direct url to download from Instagram media links
- Host: GitHub
- URL: https://github.com/victorsouzaleal/instagram-direct-url
- Owner: victorsouzaleal
- Created: 2021-03-03T15:26:33.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-25T02:45:37.000Z (5 months ago)
- Last Synced: 2024-10-10T11:26:29.378Z (4 months ago)
- Topics: download, downloader, image, instagram, javascript, link, media, photo, picture, url, video
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/instagram-url-direct
- Size: 57.6 KB
- Stars: 42
- Watchers: 2
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Works with:
It currently works with general Instagram posts, which can contain multiple images/videos or a single one.Stories not supported.
## Instalation :
```bash
> npm i --save instagram-url-direct
```## Example
```js
const instagramGetUrl = require("instagram-url-direct")
let data = await instagramGetUrl("https://www.instagram.com/tv/CdmYaq3LAYo/")
console.log(data)
```
## Output Example### Single result
```
{
results_number : 1,
post_info:{
owner_username: "username",
owner_fullname: "fullname",
is_verified: false,
is_private: false,
likes: 6,
is_ad: false
}
url_list : [
'https://scontent.cdninstagram.com....'
],
media_details:[
{
type: "video",
dimensions: {height: "1080", width: "1920"},
video_view_count: 1000,
url: "https://scontent.cdninstagram.com...",
thumbnail: 'https://scontent.cdninstagram.com...'
}
]
}
```### Multi results
```
{
results_number : 3,
post_info:{
owner_username: "username",
owner_fullname: "fullname",
is_verified: false,
is_private: false,
likes: 10,
is_ad: false
}
url_list : [
'https://scontent.cdninstagram.com...',
'https://scontent.cdninstagram.com...',
'https://scontent.cdninstagram.com...',
],
media_details:[
{
type: "video",
dimensions: {height: "640", width: "640"},
video_view_count: 100,
url: "https://scontent.cdninstagram.com...",
thumbnail: 'https://scontent.cdninstagram.com...'
},
{
type: "video",
dimensions: {height: "640", width: "640"},
video_view_count: 100,
url: "https://scontent.cdninstagram.com...",
thumbnail: 'https://scontent.cdninstagram.com...'
},
{
type: "image",
dimensions: {height: "640", width: "640"},
url: "https://scontent.cdninstagram.com...",
}
]
}
```