0.0.3 • Published 4 years ago
ig-wraper v0.0.3
ig-wrapper
NPM
Instalasi
Untuk menggunakan API , download dulu Packagenya.
npm install ig-wrapper
A instagram api wrapper
Usage
const InstaClient = require("ig-wrapper")
const api = new InstaClient()
(async() => {
const userinfo = await api.user("farrr.ss")
console.log(userinfo)
}()
API Results
{
"logging_page_id": "profilePage_7868084351",
"show_suggested_profiles": false,
"show_follow_dialog": false,
"graphql": {
"user": {
"biography": "/ 大丈夫 /",
"blocked_by_viewer": false,
"business_email": null,
"restricted_by_viewer": false,
"country_block": false,
"external_url": "https://dsc.bio/farisdaffa",
"external_url_linkshimmed": "https://l.instagram.com/?u=https%3A%2F%2Fdsc.bio%2Ffarisdaffa&e=ATMzIQEfwkJaurczfpDqLiBRS9bfJlKX4_vJkYKgXZHCs73Li8YQy-Mo0c0hIC2j3B0jG0EC0dr0AyniTRMMzQ&s=1",
"edge_followed_by": {
"count": 94
},
"followed_by_viewer": false,
"edge_follow": {
"count": 140
},
"follows_viewer": false,
"full_name": "Faris",
"has_ar_effects": false,
"has_clips": false,
"has_guides": false,
"has_channel": false,
"has_blocked_viewer": false,
"highlight_reel_count": 0,
"has_requested_viewer": false,
"id": "7868084351",
"is_business_account": false,
"is_joined_recently": false,
"business_category_name": null,
"overall_category_name": null,
"category_enum": null,
"is_private": false,
"is_verified": false,
"edge_mutual_followed_by": {
"count": 0,
"edges": []
},
"profile_pic_url": "https://scontent-lga3-1.cdninstagram.com/v/t51.2885-19/44884218_345707102882519_2446069589734326272_n.jpg?_nc_ht=scontent-lga3-1.cdninstagram.com&_nc_ohc=_Csvb8SfdY8AX93kTvF&oh=4d7e1340f380f176ce359814256271ef&oe=5F9E1A0F&ig_cache_key=YW5vbnltb3VzX3Byb2ZpbGVfcGlj.2",
"profile_pic_url_hd": "https://scontent-lga3-1.cdninstagram.com/v/t51.2885-19/44884218_345707102882519_2446069589734326272_n.jpg?_nc_ht=scontent-lga3-1.cdninstagram.com&_nc_ohc=_Csvb8SfdY8AX93kTvF&oh=4d7e1340f380f176ce359814256271ef&oe=5F9E1A0F&ig_cache_key=YW5vbnltb3VzX3Byb2ZpbGVfcGlj.2",
"requested_by_viewer": false,
"username": "farrr.ss",
"connected_fb_page": null,
"edge_felix_video_timeline": {
"count": 0,
"page_info": {
"has_next_page": false,
"end_cursor": null
},
"edges": []
},
"edge_owner_to_timeline_media": {
"count": 0,
"page_info": {
"has_next_page": false,
"end_cursor": null
},
"edges": []
},
"edge_saved_media": {
"count": 0,
"page_info": {
"has_next_page": false,
"end_cursor": null
},
"edges": []
},
"edge_media_collections": {
"count": 0,
"page_info": {
"has_next_page": false,
"end_cursor": null
},
"edges": []
}
}
},
"toast_content_on_load": null,
"show_view_shop": false,
"profile_pic_edit_sync_props": null
}