This project provide an instagram api wrapper.You can use in your web services and mobile applications.Instagram downloader library is using picuki.com
and savevid.net
.
- Photo Download
- Gallery Download
- Video Download
- Profile View
- Profile Post Pagination
- Profile Stories[Piciku Disabled]
- Post/Video comments
- Profile Info
- Download Service
- Post Service
- User Service
You can install on npm
npm install @xncn/instagramdownloaderpro
import {InstagramService} from "@xncn/instagramdownloaderpro";
async function Run() {
const instagram = new InstagramService();
await instagram.getUserData("USERNAME");
//now you can use instagram.SERVICENAME.METHODNAME
}
Run();
*dont forget to call getUserData() for all services without download service.
You can get downloadable links with download service
const download = await instagram.downloadService.Download(
"https://www.instagram.com/**"
);
console.log(download);
[
{
thumb?: string;
url?: string;
}
]
You can get user information with user service.
const userData = instagram.userService.getProfileInfo();
console.log(userData);
{
id?: string;
userName?: string;
name?: string;
profilePicture?: string;
}
You can get user posts with pagination
//First Page
const posts = await instagram.postService.getPostsByCursor();
console.log(posts);
//Other Pages
//const posts = await instagram.postService.getPostsByCursor(profileEndCursor: string, mobileEndCursor: string, id: string);
{
profileEndCursor: string;
mobileEndCursor: string;
id: string;
data:[
id?: string;
isVideo?: boolean;
image?: string;
description?: string;
likeCount?: string;
commentCount?: string;
createdAt?: string;
]
}
You can get comments with comment service
const comments = await instagram.postService.getPostComments("ID");
console.log(comments);
[
{
username?: string;
comment?: string;
}
]