Flutter

How to get Instagram user’s details and download reels video in flutter?

Written by codingboy

I have published the flutter package flutter_instato pub.dev

Using this package you can get details of the Instagram user such as profile picture URL, a number of followers, following, Bio, website, and download reels video.

Flutter_Insta Package link: https://pub.dev/packages/flutter_insta

Github link: https://github.com/viralvaghela/flutter_insta

Get profile details 

FlutterInsta flutterInsta = new FlutterInsta();
await flutterInsta.getProfileData("coding_boy_); //instagram username

Print Details

print("Username : ${flutterInsta.username}");
print("Followers : ${flutterInsta.followers}");
print("Folowing : ${flutterInsta.following}");
print("Bio : ${flutterInsta.bio}");
print("Website : ${flutterInsta.website}");
print("Profile Image : ${flutterInsta.imgurl}");
print("Feed images":${flutterInsta.feedImagesUrl}");

Download Reels video 

String downloadLink =  await flutterInsta.downloadReels("https://www.instagram.com/reel/CDlGkdZgB2y/"); //URL

About the author

codingboy

I build mobile apps, tools to make life easier, create content, and write codes to solve real-world problems.

8 Comments

  • When I am trying to install you flutter package, I am getting this error.

    [flutter_insta] flutter pub get
    Running “flutter pub get” in flutter_insta…
    Error on line 32, column 3 of pubspec.yaml: A package may not list itself as a dependency.

    32 │ flutter_insta: ^0.1.3

    │ ^^^^^^^^^^^^^


    pub get failed (65; ╵)
    exit code 65

  • I have changed project name, app is running right now. But video not downloading from instgram. When I try this link “https://www.instagram.com/reel/CFZopSBgi4L/?igshid=f3obp7vqfwpf”, I got download failed.

  • can I get your email ID or mobile number or skype? I need your help in development. This is my email ID veloukarthik@gmail.com and this is my skype ID live:1d75c0d9a3c61e19. I have one flutter project, project is related to instagram, facebook and whatsapp video downloading.

  • Your App is Runnung Okay
    It is extracting the user Data, But Video is not downloading
    Here is flutter run –verbose

    Microsoft Windows [Version 10.0.19042.685]
    (c) 2020 Microsoft Corporation. All rights reserved.

    C:\Users\Patha\Desktop\Codeka\insta_download>
    C:\Users\Patha\Desktop\Codeka\insta_download>flutter run –verbose
    [ +123 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 –pretty=format:%H
    [ +94 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 –pretty=format:%H
    [ ] 022b333a089afb81c471ec43d1f1f4f26305d876
    [ ] executing: [C:\flutter/] git tag –points-at HEAD
    [ +230 ms] Exit code 0 from: git tag –points-at HEAD
    [ ] 1.24.0-10.2.pre
    [ +12 ms] executing: [C:\flutter/] git rev-parse –abbrev-ref –symbolic @{u}
    [ +39 ms] Exit code 0 from: git rev-parse –abbrev-ref –symbolic @{u}
    [ ] origin/dev
    [ ] executing: [C:\flutter/] git ls-remote –get-url origin
    [ +40 ms] Exit code 0 from: git ls-remote –get-url origin
    [ ] https://github.com/flutter/flutter.git
    [ +82 ms] executing: [C:\flutter/] git rev-parse –abbrev-ref HEAD
    [ +45 ms] Exit code 0 from: git rev-parse –abbrev-ref HEAD
    [ ] dev
    [ +69 ms] Artifact Instance of ‘AndroidGenSnapshotArtifacts’ is not required, skipping update.
    [ ] Artifact Instance of ‘AndroidInternalBuildArtifacts’ is not required, skipping update.
    [ +1 ms] Artifact Instance of ‘IOSEngineArtifacts’ is not required, skipping update.
    [ +1 ms] Artifact Instance of ‘FlutterWebSdk’ is not required, skipping update.
    [ +4 ms] Artifact Instance of ‘WindowsEngineArtifacts’ is not required, skipping update.
    [ ] Artifact Instance of ‘MacOSEngineArtifacts’ is not required, skipping update.
    [ ] Artifact Instance of ‘LinuxEngineArtifacts’ is not required, skipping update.
    [ ] Artifact Instance of ‘LinuxFuchsiaSDKArtifacts’ is not required, skipping update.
    [ ] Artifact Instance of ‘MacOSFuchsiaSDKArtifacts’ is not required, skipping update.
    [ ] Artifact Instance of ‘FlutterRunnerSDKArtifacts’ is not required, skipping update.
    [ ] Artifact Instance of ‘FlutterRunnerDebugSymbols’ is not required, skipping update.
    [ +95 ms] executing: C:\Users\Patha\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
    [ +38 ms] List of devices attached
    5c7990bf device product:1723 model:vivo_1723 device:1723 transport_id:7
    emulator-5554 device product:sdk_gphone_x86_arm model:sdk_gphone_x86_arm device:generic_x86_arm transport_id:4
    [ +6 ms] C:\Users\Patha\AppData\Local\Android\sdk\platform-tools\adb.exe -s 5c7990bf shell getprop
    [ +139 ms] C:\Users\Patha\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell getprop
    [ +61 ms] Artifact Instance of ‘AndroidInternalBuildArtifacts’ is not required, skipping update.
    [ ] Artifact Instance of ‘IOSEngineArtifacts’ is not required, skipping update.
    [ ] Artifact Instance of ‘FlutterWebSdk’ is not required, skipping update.
    [ +2 ms] Artifact Instance of ‘WindowsEngineArtifacts’ is not required, skipping update.
    [ ] Artifact Instance of ‘MacOSEngineArtifacts’ is not required, skipping update.
    [ ] Artifact Instance of ‘LinuxEngineArtifacts’ is not required, skipping update.
    [ ] Artifact Instance of ‘LinuxFuchsiaSDKArtifacts’ is not required, skipping update.
    [ ] Artifact Instance of ‘MacOSFuchsiaSDKArtifacts’ is not required, skipping update.
    [ ] Artifact Instance of ‘FlutterRunnerSDKArtifacts’ is not required, skipping update.
    [ ] Artifact Instance of ‘FlutterRunnerDebugSymbols’ is not required, skipping update.
    [ +84 ms] Multiple devices found:
    [ +3 ms] ro.hardware = qcom
    [ +1 ms] ro.hardware = ranchu
    [ +3 ms] vivo 1723 (mobile) • 5c7990bf • android-arm64 • Android 9 (API 28)
    [ +5 ms] sdk gphone x86 arm (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
    [ +2 ms] [0]: vivo 1723 (5c7990bf)
    [ ] [1]: sdk gphone x86 arm (emulator-5554)
    [ +2 ms] Please choose one (To quit, press “q/Q”)
    [ ] :

Leave a Comment