instagram_public_api 0.0.5 copy "instagram_public_api: ^0.0.5" to clipboard
instagram_public_api: ^0.0.5 copied to clipboard

outdated

Flutter package to get Instagram user details and download posts.

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.profile_pic_url);
  print(user.bio);
  print(user.external_url);
  print(user.followers);
  print(user.following);
  print(user.is_verified);
  print(user.is_private);
  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].display_url); //post download url
    print(post[i].postType);
    print(post[i].thumbnailDimensions);
    print(post[i].thumbnailUrl);
    print(post[i].user.followers);
    print(post[i].user.is_private);
    print(post[i].user.is_verified);
    print(post[i].user.posts);
    print(post[i].user.profile_pic_url);
    print(post[i]..user.username);
    print(post[i].video_duration);
  }

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.

65
likes
0
pub points
69%
popularity

Publisher

verified publishergktwinapp.com

Flutter package to get Instagram user details and download posts.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on instagram_public_api