FLUTTER ECOSYSTEM

madhavtripathi05/insta_public_api

केवल उनके उपयोगकर्ता नाम को दर्ज करके एक सार्वजनिक इंस्टाग्राम खाते के विवरण प्राप्त करें।

insta_public_api प्रोजेक्ट कवर
Stars
7
Forks
3
अंतिम पुश (UTC)
25 मई 2021
प्रोजेक्ट स्थिति
सक्रिय
Madhav tripathi GitHub avatar
GITHUB User

Madhav tripathi ↗

Program what you love, until you fall in love with programming 💙

Montrèal, QC, Canada
भाषाएँDartHTMLSwiftKotlinObjective-C

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 3 आइटम
  • flutter{"sdk":"flutter"}
  • http^0.13.3
  • flutter_testडेवलपमेंट{"sdk":"flutter"}

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

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