패키지, 저장소 및 앱 카테고리 검색

패키지 상세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, 웹, 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.