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

套件詳情v0.1.2

insta_public_api

一個用於取得公開使用者 Instagram 詳細資料的外掛。只需將使用者名稱傳遞至 InstaPublicApi 類別,即可取得所需資訊。

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

安裝套件

flutter pub add insta_public_api

套件介紹

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

insta_public_api 套件是一個 Flutter 插件,讓開發者能透過提供使用者名稱來取得公開的 Instagram 使用者詳細資料。它簡化了與 Instagram 公開資料的整合,無需認證即可存取包括個人簡介、粉絲數量和媒體在內的個人資料資訊。此套件設計易於使用,支援 Android、iOS、Web、macOS、Windows 及 Linux 多個平台。適用於需要快速存取公開 Instagram 帳號以進行顯示或分析用途的應用程式。

適用情境

  • 獲取公開的Instagram用戶資料
  • 在應用中顯示 Instagram 統計資訊
  • 建構社群媒體儀表板
  • 用戶資料查找工具
  • 來自公開帳號的內容聚合

主要特色

  • 基於使用者名稱的簡單查詢
  • 支援多個平台
  • 無需身份驗證
  • 輕量且易於整合
  • 返回結構化的用戶數據

適合對象

  • 社群媒體分析應用
  • 個人資料預覽功能
  • 跨平台 Flutter 應用
  • 需要公開 Instagram 數據的應用
  • 尋求快速 API 集成的開發者

使用建議

  • 僅適用於公開的Instagram個人資料
  • 僅限公開可用資料
  • 依賴於 Instagram 的公開頁面結構
  • 如果 Instagram 改變其前端版面,可能會失效
  • 不適用於私人帳戶或敏感資料

原始 README

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

Insta Public API

Fetch details of a public Instagram account just by entering their username

// Import the package
import 'package:insta_public_api/insta_public_api.dart';

// Initialize with username (must be public)
final ipa = InstaPublicApi('username');

// Get info like Full Name, Followers, Following etc
final info = await ipa.getBasicInfo();

print('Posts: ${info.noOfPosts}');
print('Followers: ${info.followers}');
print('Following: ${info.following}');

/*
  Basic Info contains:
    isPrivate,
    isVerified,
    profilePic,
    followers,
    following,
    fullName,
    noOfPosts,
    bio and more.
*/

// Get a List of Post with nested images and details eg. number of likes, comments, caption etc for first 12 posts.
final timelinePosts = await ipa.getTimelinePosts();

// Get List of all the posts present on the profile (by default limited to 100, can be modified)
final posts = await ipa.getAllPosts();

/*
  Each Post Contains:
    Nested images,
    no. of comments,
    no. of likes,
    captions and more.
*/

Example App

Example App
Click Here for Code

Currently Available Methods

  • String getProfilePic() returns image url of profile pic

  • BasicInfo getBasicInfo() returns fullName, followers, following etc.

  • List<String> getTimelinePostsImages() returns a List of imageUrl for first 12 posts.

  • List<Post> getTimelinePosts() returns Post with nested images and details e.g. number of likes, comments, caption etc of first 12 posts.

  • List<Post> getAllPosts() returns List of all the posts present on the profile (by default limited to 100, can be modified).

Inspired from this article

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。