搜尋套件、儲存庫與 APP 分類

GitHub 儲存庫imtheguna/instagram_public_api

instagram_public_api

Flutter 套件,用於取得 Instagram 使用者詳細資料並下載貼文。

instagram_public_api 專案封面
星標
6
分支
5
最近推送(UTC)
2023年2月21日
專案狀態
未封存

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

instagram_public_api

Flutter package to get Instagram user details and download posts.

How to Use

To use instagram_public_api, first start by importing the package.

import 'package:instagram_public_api/instagram_public_api.dart';

Get profile details

  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 Pots details

//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);
  }

Project Created & Maintained By

Gunanithi

Passionate #Flutter, #Android Developer. #UI Designer.

Currently Available Methods

  • InstaProfileData getProfileData() returns user details

  • List<InstaPost> getPostData() returns Post Details (Post with nested images and video and details)

The limitations or problems you may bump into using this package.

Rate limiting:

Instagram allows a maximum of around 200–300 request hits per hour. After reaching the limit, you’ll start getting the server error.

No Insight Data:

You cannot get Instagram insight data using this API. Look into FB Instagram Insight API.

No Private Account Data:

Since this works on publically available API’s, you cannot get private account data.

Inspired from this article

Getting Started

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.

imtheguna GitHub avatar
GitHub 作者

imtheguna ↗

C S Gunanithi

Tamil Nadu, India官方網站 ↗
語言Dart

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項

  • flutter{"sdk":"flutter"}
  • http^0.13.1
  • flutter_test開發依賴{"sdk":"flutter"}

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗