1.3.35 ⢠Published 1 year ago
insta-fetcher v1.3.35
Insta Fetcher
Fetch instagram api with full details and simplified json metadata
Read the docs here
ā Buy Me a Coffee : Saweria
Features
- accountInfo
- addPost
- changeProfilePicture
- fetchHighlights
- fetchPost
- fetchStories
- fetchUser
- fetchUserPosts
- fetchUserV2
Usage
Installation:
npm i insta-fetcher
recommended to set the cookie before make call to all function
let { igApi, getCookie } = require("insta-fetcher");
// using constructor
let ig = new igApi("your cookie");
// you can get sesion id by using getSessionId function, it requires username & password
(async () => {
const session_id = await getCookie("username", "password");
console.log(session_id);
})();
Example
more example you can check at example.ts file
let { igApi } = require("insta-fetcher");
// some example with proxy, but i never test it
let ig = new igApi("your cookie", false, {
proxy: {
host: 'proxy-url',
port: 80,
auth: {username: 'my-user', password: 'my-password'}
}
});
// Public post
ig.fetchPost("https://www.instagram.com/reel/CXhW_4sp32Z/").then((res) => {
console.log(res);
});
// User data
ig.fetchUser("mg.creativestudio").then((res) => {
console.log(res);
});
// Fetch stories
ig.fetchStories("adiraas.p").then((res) => {
console.log(res);
});
// Fetch highlights
ig.fetchHighlights("adiraas.p").then((res) => {
console.log(res);
});
My Project with this Library
- https://github.com/Gimenz/nganu - simple multi-device base WhatsApp Bot
Contributing
All kinds of contributions are welcome - code, tests, documentation, bug reports, new features, etc...
- Send feedbacks.
- Submit bug reports.
- Write/Edit the documents.
- Fix bugs or add new features.
1.3.35
1 year ago
1.3.33
1 year ago
1.3.34
1 year ago
1.3.31
1 year ago
1.3.32
1 year ago
1.3.3
1 year ago
1.3.27
2 years ago
1.3.26
2 years ago
1.3.24
3 years ago
1.3.25
3 years ago
1.3.22
3 years ago
1.3.23
3 years ago
1.3.21
3 years ago
1.3.18
3 years ago
1.3.19
3 years ago
1.3.20
3 years ago
1.3.17
3 years ago
1.2.8
3 years ago
1.2.7
3 years ago
1.2.6
3 years ago
1.2.5
4 years ago
1.2.4
4 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.3.13
3 years ago
1.3.14
3 years ago
1.3.12
3 years ago
1.3.15
3 years ago
1.3.16
3 years ago
1.2.92
3 years ago
1.2.93
3 years ago
1.2.91
3 years ago
1.2.96
3 years ago
1.2.97
3 years ago
1.2.94
3 years ago
1.2.95
3 years ago
1.2.9
3 years ago
1.2.98
3 years ago
1.2.99
3 years ago
1.2.3
4 years ago
1.2.2
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.0.0
4 years ago