instagram_public_api
Instagram 사용자 세부 정보를 가져오고 게시물을 다운로드하는 데 사용할 수 있는 Flutter 패키지입니다.
Instagram 사용자 세부 정보를 가져오고 게시물을 다운로드하는 데 사용할 수 있는 Flutter 패키지입니다.
{"sdk":"flutter"}^0.13.1{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Flutter package to get Instagram user details and download posts.
To use instagram_public_api, first start by importing the package.
import 'package:instagram_public_api/instagram_public_api.dart';
FlutterInsta insta = FlutterInsta();
//Get Profile Details(must be public)
InstaProfileData user = await insta.getProfileData("thefluttercommunity");
print(user.username);
print(user.profilePicURL);
print(user.bio);
print(user.externalURL);
print(user.followers);
print(user.following);
print(user.isVerified);
print(user.isPrivate);
print(user.username);
//Get Post Details (Post with nested images and video and details) (must be public)
final List<InstaPost> post = await FlutterInsta().getPostData(
"https://www.instagram.com/p/CLXXql8gwpo/?utm_source=ig_web_copy_link");
for (int i = 0; i < post.length; i++) {
print(post[i].dimensions);
print(post[i].displayURL); //post download url
print(post[i].postType);
print(post[i].thumbnailDimensions);
print(post[i].thumbnailUrl);
print(post[i].user.followers);
print(post[i].user.isPrivate);
print(post[i].user.isVerified);
print(post[i].user.posts);
print(post[i].user.profilePicURL);
print(post[i]..user.username);
print(post[i].videoDuration);
}
Passionate #Flutter, #Android Developer. #UI Designer.
https://github.com/aritraroy/social-icons/blob/master/linkedin-icon.png?raw=true
InstaProfileData getProfileData() returns user details
List<InstaPost> getPostData() returns Post Details (Post with nested images and video and details)
Instagram allows a maximum of around 200–300 request hits per hour. After reaching the limit, you’ll start getting the server error.
You cannot get Instagram insight data using this API. Look into FB Instagram Insight API.
Since this works on publically available API’s, you cannot get private account data.
Inspired from this article
This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.