パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.2.3

instagram_public_api

Instagram ユーザーの詳細情報を取得し、投稿をダウンロードするための Flutter パッケージ。

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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。