insta_dl package to get media info from instagram.
flutter pub add insta_dl # OR dart pub add insta_dl
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies: insta_dl: ^1.0.0
Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Now in your Dart code, you can use:
Free Software, Hell Yeah!