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

套件詳情v0.2.3

instagram_public_api

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

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
30
喜歡數
66
Pub 分數
140

安裝套件

flutter pub add instagram_public_api

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 套件,讓開發者能夠從 Instagram 的公開 API 直接取得公開的 Instagram 使用者詳細資料並下載媒體貼文。它支援 Android、iOS、Web、macOS、Windows 與 Linux 多個平台,非常適合跨平台社群媒體應用程式。此套件簡化了與 Instagram 公開資料的整合,無需驗證即可存取個人檔案資訊與影像/影片內容。對於專注於社群媒體匯總、內容探索或分析的應用程式特別實用。

適用情境

  • 社群媒體內容聚合
  • 使用者資料資訊檢索
  • 媒體貼文下載
  • 內容發現工具
  • 分析儀表板

主要特色

  • 跨平台支援
  • 公共資料存取
  • 個人檔案和貼文檢索
  • 無需身份驗證
  • 與 Flutter 的輕鬆整合

適合對象

  • Flutter 開發人員建構社交應用
  • 需要公開 Instagram 數據的應用
  • 公共貼文的內容抓取器
  • 跨平台社群媒體工具

使用建議

  • 僅限公開資料
  • 無法訪問私人帳戶
  • 可能會應用速率限制
  • 依賴於Instagram公開API的穩定性

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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.

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。