Search packages, repositories and app categories

Package detailsv0.1.2

insta_public_api

A plugin for getting Instagram Details of a public user. Just Pass username inside InstaPublicApi class and get the required details.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
21
Likes
22
Pub points
140

Install package

flutter pub add insta_public_api

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The insta_public_api package is a Flutter plugin that enables developers to fetch public Instagram user details by providing a username. It simplifies integration with Instagram's public data, offering access to profile information such as bio, follower count, and media without requiring authentication. Designed for ease of use, it supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. The package is ideal for apps needing quick access to public Instagram profiles for display or analysis purposes.

Use cases

  • Fetching public Instagram user profiles
  • Displaying Instagram stats in apps
  • Building social media dashboards
  • User profile lookup tools
  • Content aggregation from public accounts

Key features

  • Simple username-based lookup
  • Supports multiple platforms
  • No authentication required
  • Lightweight and easy to integrate
  • Returns structured user data

Suitable for

  • Social media analytics apps
  • Profile preview features
  • Cross-platform Flutter apps
  • Apps needing public Instagram data
  • Developers seeking quick API integration

Considerations

  • Only works with public Instagram profiles
  • Limited to publicly available data
  • Depends on Instagram's public page structure
  • May break if Instagram changes its frontend layout
  • Not suitable for private accounts or sensitive data

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.