InstagramApiSharp 1.8.0

dotnet add package InstagramApiSharp --version 1.8.0                
NuGet\Install-Package InstagramApiSharp -Version 1.8.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="InstagramApiSharp" Version="1.8.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add InstagramApiSharp --version 1.8.0                
#r "nuget: InstagramApiSharp, 1.8.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install InstagramApiSharp as a Cake Addin
#addin nuget:?package=InstagramApiSharp&version=1.8.0

// Install InstagramApiSharp as a Cake Tool
#tool nuget:?package=InstagramApiSharp&version=1.8.0                

InstagramApiSharp InstagramApiSharp

A complete Private Instagram API for .NET (C#, VB.NET).

Supports almost every features that Instagram app has!

IRANIAN DEVELOPERS

InstagramApiSharp's private version - Under developing. Check #243

Target Branch Version Changelog
Github master v2.8.34 v2.8.34

InstagramApiSharp's public version - Update date: November 21, 2024 - End Of Support(from April 5, 2019)!!!

Target Branch Version Download link Total downloads
Nuget master v1.8.0 NuGet NuGet downloads
Release master v1.8.0 Release

Note

This library is based on InstaSharper with more features and new cool things.

All references in v1.7.0 is updated. Also if you got challenge locked, you can purchase for a subscription, because private version supports this feature.

Account Registration Sample

Wingo Tag App

Wingo Tag App is an excelent app to demonstrate how InstagramApiSharp works, a clean project.

If you have any problem with using a function, search it in this repo.

License

MIT.

Terms and conditions

  • Use this Api at your own risk.

Thanks

estgold for contribution

ADeltaX for contribution

vitalragaz for contribution

n0ise9914 for contribution

Special thanks to all other contributors.

Special thanks to all other InstaSharper contributors.

Special thanks to mgp25 and his php wrapper.

This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by Instagram or any of its affiliates or subsidiaries. This is an independent and unofficial API wrapper.

Developers

Public version - End Of Support

Name Github Email Telegram Instagram
Ramtin Jokar @Ramtinak ramtinak@live.com RamtinJokar -
Ali Noshahi @NGame1 NGame1390@hotmail.com NGameW alingame

Iranian developers - (c) 2024 | Paeez 1403.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap10.0.16299 is compatible. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on InstagramApiSharp:

Package Downloads
InstaService

A wrapper library on top of the InstagramApiSharp library. The library provides simple functionality for downloading media files from Instagram.

nurzhanme.InstagramUnfollowers

Package Description

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on InstagramApiSharp:

Repository Stars
aelassas/wexflow
.NET Workflow Engine and Automation Platform
dotnettools/SharpGrabber
Download from YouTube, Vimeo, HLS (M3U8 files) and more with .NET and JavaScript - Library and desktop app for downloading high quality media
Version Downloads Last updated
1.8.0 50 11/21/2024
1.7.4 24,471 10/7/2022
1.7.2 12,814 2/28/2022
1.7.1 8,678 10/11/2021
1.7.0 2,609 9/19/2021
1.6.0 6,145 5/3/2021
1.5.0.2 10,264 2/1/2021
1.5.0.1 29,236 2/25/2020
1.5.0 1,986 2/24/2020
1.4.0.1 11,919 7/2/2019
1.4.0 19,399 4/4/2019
1.3.5 3,134 4/1/2019
1.3.4.6 3,167 3/31/2019
1.3.4.5 4,550 3/12/2019
1.3.4.4 3,226 3/4/2019
1.3.4.3 3,200 2/26/2019
1.3.4.2 3,015 2/25/2019
1.3.4.1 3,182 2/19/2019
1.3.4 3,126 2/17/2019
1.3.3.5 3,003 2/17/2019
1.3.3.4 3,074 2/13/2019
1.3.3.3 3,120 2/11/2019
1.3.3.2 3,217 2/5/2019
1.3.3.1 3,160 2/5/2019
1.3.3 3,197 1/29/2019
1.3.2.3 3,388 1/25/2019
1.3.2.2 7,585 1/24/2019
1.3.2.1 3,168 1/21/2019
1.3.2 3,237 1/18/2019
1.3.1.9 3,221 1/18/2019
1.3.1.8 3,171 1/16/2019
1.3.1.7 3,449 1/12/2019
1.3.1.6 3,522 1/7/2019
1.3.1.3 3,342 1/3/2019
1.3.1.1 3,456 12/26/2018
1.3.1 3,181 12/24/2018
1.3.0.1 3,103 12/19/2018
1.3.0 3,011 12/19/2018
1.2.0.1 3,141 12/13/2018
1.2.0 3,089 12/13/2018
1.1.6.2 3,359 11/26/2018
1.1.6.1 3,157 11/24/2018
1.1.6 3,234 11/23/2018
1.1.5.5 3,328 11/22/2018
1.1.5.2 4,296 11/20/2018
1.1.5.1 3,737 11/16/2018
1.1.5 3,136 11/15/2018
1.1.4.5 3,251 11/14/2018
1.1.4.4 3,253 11/14/2018
1.1.4.3 3,250 11/12/2018
1.1.4.2 3,234 11/8/2018
1.1.4.1 3,189 11/5/2018
1.1.4 3,199 11/4/2018
1.1.3.8 3,160 10/31/2018
1.1.3.7 3,180 10/29/2018
1.1.3.6 80,928 10/25/2018
1.1.3.5 3,268 10/21/2018
1.1.3.4 3,153 10/18/2018
1.1.3.3 3,225 10/16/2018
1.1.3.2 3,226 10/16/2018
1.1.3.1 3,227 10/14/2018
1.1.3 3,181 10/13/2018
1.1.2.8 3,246 10/8/2018
1.1.2.7 3,264 10/8/2018
1.1.2.6 3,218 10/8/2018
1.1.2.5 3,220 10/8/2018
1.1.2.4 3,198 10/5/2018
1.1.2.3 3,280 10/4/2018
1.1.2.2 3,218 10/2/2018
1.1.2.1 3,212 10/2/2018
1.1.2 3,173 9/28/2018
1.1.1.1 3,220 9/25/2018
1.1.1 3,246 9/23/2018
1.1.0.9 3,318 9/20/2018
1.1.0.8 3,228 9/18/2018
1.1.0.7 3,156 9/14/2018
1.1.0.5 3,336 9/14/2018
1.1.0.2 3,219 9/13/2018
1.1.0.1 3,239 9/12/2018
1.1.0 3,292 9/11/2018
1.0.6 3,190 9/10/2018
1.0.5.6 3,264 9/9/2018
1.0.5.5 3,215 9/9/2018
1.0.5.4 3,215 9/8/2018
1.0.5.3 3,172 9/7/2018
1.0.5.2 3,334 9/7/2018
1.0.5.1 3,223 9/7/2018
1.0.5 3,263 9/7/2018
1.0.4.9 3,209 9/6/2018
1.0.4.8 3,259 9/6/2018
1.0.4.7 3,215 9/5/2018
1.0.4.6 3,259 9/2/2018
1.0.4.5 3,328 9/1/2018
1.0.4.4 3,256 9/1/2018
1.0.4.3 3,238 8/31/2018
1.0.4.2 3,196 8/31/2018
1.0.4.1 3,246 8/30/2018
1.0.4 3,252 8/30/2018
1.0.3.5 3,233 8/28/2018
1.0.3.4 3,386 8/25/2018
1.0.3.3 3,346 8/20/2018
1.0.3.2 3,327 8/17/2018
1.0.3.1 3,261 8/16/2018
1.0.3 3,246 8/14/2018
1.0.2.9 3,261 8/9/2018
1.0.2.8 3,273 8/4/2018
1.0.2.7 3,275 8/3/2018
1.0.2.6 3,285 7/22/2018
1.0.2.5 3,232 7/21/2018
1.0.2.4 3,340 7/19/2018
1.0.2.3 3,379 7/3/2018
1.0.2.2 3,212 6/14/2018
1.0.2.1 3,410 6/11/2018
1.0.2 3,285 6/5/2018
1.0.1 3,376 6/1/2018
1.0.0 3,326 5/15/2018

v1.8.0
- [Add] support for reels media
- [Add] support for uploading reels
- [Add] 261 api version
- [Add] LikeStoryAsync/UnLikeStoryAsync to StoryProcessor
- [Add] support for uploading story link
- [Add] support for story link
- [Add] ValidateUriAsync to StoryProcessor
- [Bugfix] for GenerateUploadId()
- [Fix] issue with auto_expand_chaining null (#597) by @bman46
* Update depends
* Fix null value exception
* Allow null value instead
* Remove excess using

- [Update] all thread client_context functions
- [Update] SendDirectPhotoAsync to latest version
- [Update] LiveProcessor.CreateAsync

v1.7.4
- [Bugfix] for ChangePasswordAsync ( thx to @behi1ty for report )
- [Add] checkpoint required error ( thx to @bman46 )
- [Update] GenerateUploadId
- [Update] GetUserMedia... URI
- [Tiny update] for ChallengeLoginInfo/TwoFactorLoginInfo

v1.7.2
- [Update] TwoFactorLoginAsync ( thx to @bman46 )

v1.7.1
- [Bugfix] for GetUserMediaAsync, GetUserMediaByIdAsync [ thx to @bynifaciy ]
- [Bugfix] for GetUserAsync
- [Bugfix] for GetDirectInboxThreadAsync

v1.7.0
- [Drop support] for .NETFramework 4.5.2 and .NETStandard 1.3
- [Update] api version to v180.0.0.31.119
- [Update] library to recent changes in Instagram
- [Update] LoginAsync
- [Update] TwoFactorLoginAsync
- [Update] LoginWithFacebookAsync
- [Update] VerifyCodeForChallengeRequireAsync
- [Update] ChangePasswordAsync
- [Update] GetCurrentUserAsync [ thx to @u8989332 ]

v1.6.0
- [Add] support for NETFramework4.6.1
- [Add] GetEncryptedPassword to ExtensionHelper for .NETFramework 4.6.1 or newer and NETStandard 2.0 or newer
- [Add] IRegistrationService and RegistrationService
- [Add] CreateNewAccountWithPhoneNumberAsync to IRegistrationService
- [Add] CreateNewAccountWithEmailAsync to IRegistrationService
- [Add] GenerateRandomBirthday to IRegistrationService
- [Add] GetFirstContactPointPrefillAsync to RegistrationService
- [Add] FirstLauncherSyncAsync to IRegistrationService
- [Add] FirstQeSyncAsync to IRegistrationService
- [Add] CheckUsernameAsync to IRegistrationService
- [Add] InstaCheckEmailRegistration to IRegistrationService
- [Add] CheckEmailAsync to IRegistrationService
- [Add] GetSignupConsentConfigAsync to IRegistrationService
- [Add] SendRegistrationVerifyEmailAsync to IRegistrationService
- [Add] CheckRegistrationConfirmationCodeAsync to IRegistrationService
- [Add] GetSiFetchHeadersAsync to IRegistrationService
- [Add] GetUsernameSuggestionsAsync to IRegistrationService
- [Add] CheckAgeEligibilityAsync to IRegistrationService
- [Add] GetOnboardingStepsAsync to IRegistrationService
- [Add] NewUserFlowBeginsConsentAsync to IRegistrationService
- [Add] GetMultipleAccountsFamilyAsync to IRegistrationService
- [Add] GetZrTokenResultAsync to IRegistrationService
- [Add] LauncherSyncAsync to IRegistrationService
- [Add] QeSyncAsync to IRegistrationService
- [Add] NuxNewAccountSeenAsync to IRegistrationService
- [Add] GetContactPointPrefillAsync to IRegistrationService
- [Add] SmsVerificationCode property to IRegistrationService
- [Add] AccountRegistrationPhoneNumber to IRegistrationService
- [Add] CheckPhoneNumberAsync to IRegistrationService
- [Add] SendSignUpSmsCodeAsync to IRegistrationService
- [Add] VerifySignUpSmsCodeAsync to IRegistrationService

v1.5.0.2
- [Bugfix] Fix ChangeProfilePictureAsync in AccountProcessor [ by @juliendu11 ]
- [Bugfix] for parsing created_at_utc in comments [ by @Anushiravani ]
- [Add] additional error handlers  [ by @fatihdumanli ]

v1.5.0.1
- [Bugfix] for adding header

v1.5.0.0
[Update] api version and signature key to v126.0.0.25.121
[Update] Headers and constants
[Update] GetUserTimelineFeedAsync, Constants and some others
[Update] a lot of things related to login and other things
[Add] SendRequestsBeforeLoginAsync to InstaApi
[Add] SendRequestsAfterLoginAsync to InstaApi

v1.4.0.0
- [Add] GetTopicalExploreFeedAsync to FeedProcessor (new explore page)
Supports explore categories, ig tv videos

v1.3.5.0
- [Add] UserTag support in InstaVideoUpload (video upload with user tags)
- [Add] video usertags support for uploading album

v1.3.4.6
- [Bugfix] for slider emoji in story upload
- [Add] CropWidth and CropHeight as parameter for CreateHighlightFeedAsync (thx to @szokeptr)
- [Add] LastPermanentItem property to InstaDirectInboxThread by @estgold
- [Add] RelatedHashtags to GetTopHashtagMediaListAsync
- [Update] GetTopHashtagMediaListAsync
- [Update] GetRecentHashtagMediaListAsync
- [Update] api version to 86.0.0.24.87 (it's default now)

v1.3.4.5
- [Add] GetLoggedInChallengeDataInfoAsync to IInstaApi
- [Add] AcceptChallengeAsync to IInstaApi [THIS IS ME feature] (check #204)
- [Bugfix] for highlights media converter
- [Bugfix] for challenge response for logged in user

v1.3.4.4
- [Bugfix] for login with 2FA enabled (thx to @vivan-snapretail for report)
- [Add] Dashmanifest property for postlive
- [Add] Support Uploading Story Countdown in InstaStoryUploadOptions
- [Add] GetCountdownsStoriesAsync to StoryProcessor
- [Add] FollowCountdownStoryAsync to StoryProcessor
- [Add] UnFollowCountdownStoryAsync to StoryProcessor

v1.3.4.3
- [Bugfix] for BusinessProcessor.GetStatisticsAsync [ by @estgold ]
- [Bugfix] for GetStoryMediaViewersAsync (thx to @tommasoceschia for report)
- [Add] HttpRequestProcessor to IInstaApi
- [Add] GetApiVersionInfo to IInstaApi
- [Add] GetUserAgent to IInstaApi

v1.3.4.2
- [Bugfix] for InstaRecentActivityConverter timestamp for different cultures [ by @estgold ]
- [Bugfix] for media products (thx to @tommasoceschia for report)

v1.3.4.1
- [Bugfix] for UploadStoryPhotoWithUrlAsync
- [Bugfix] for ProductTags (thx to @tommasoceschia for report)
- [Add] some new properties to InstaProduct class
- [Add] support for Questions in InstaStoryUploadOptions
- [Update] facebook login function
- [Update] story slider

v1.3.4.0
- [Add] IWebProcessor to IInstaApi (instagram web api for account data)
- [Add] GetAccountInfoAsync to WebProcessor
- [Add] GetFollowRequestsAsync to WebProcessor
- [Add] GetFormerBiographyTextsAsync to WebProcessor
- [Add] GetFormerBiographyLinksAsync to WebProcessor
- [Add] GetFormerUsernamesAsync to WebProcesor
- [Add] GetFormerFullNamesAsync to WebProcessor
- [Add] GetFormerPhoneNumbersAsync to WebProcessor
- [Add] GetFormerEmailsAsync to WebProcessor

v1.3.3.5
- [Bugfix] for GetDirectInboxThreadAsync pagination (thx to @Hoaas for report)
- [Add] VisualMedia support in direct thread item (check #174 issue) (thx to @aspmaker for report)
- [Add] ActionBlockEnd to ResultInfo (Displaying ActionBlock end date. Used For awaiting liking etc.) (thx to @mihey8800 for PR)
- [Add] Videos property to InstaInboxMedia (direct media item)
- [Update] direct item Users and LeftUsers models class
- [Remove] StartFromId function from PaginationParameters class (use StartFromMaxId instead)

v1.3.3.4
- [Update] InstaUserInfo (thx to @RowanFazio for PR)
- [Change] InstaStory.Items to InstaStoryItem
- [Add] StoryQuestionsResponderInfos property to InstaStoryItem
- [Add] Countdowns property to InstaStoryItem
- [Add] ImportedTakenAt property to InstaStoryItem
- [Add] AnswerToStoryQuestionAsync to StoryProcessor
- [Add] support for Mentions in InstaStoryUploadOptions

v1.3.3.3
- [Bugfix] for GetUserFollowersAsync
- [Bugfix] for GetUserFollowingAsync
- [Rename] GetLocationFeedAsync to GetLocationStoriesAsync
- [Rename] InstaHashtagMediaList to InstaSectionMediaList
- [Add] some new properties to PaginationParameters
- [Add] GetTopLocationFeedsAsync to LocationProcessor
- [Add] GetRecentLocationFeedsAsync to LocationProcessor
- [Add] GetAccountDetailsAsync to BusinessProcessor
- [Update] GetRecentHashtagMediaListAsync pagination
- [Update] GetUserTimelineFeedAsync pull refresh

v1.3.3.2
- [Add] InstaStoryFriendshipStatus class
- [Update] GetStoryFeedAsync
- [Update] GetUserStoryAsync
- [Update] GetFullUserInfoAsync
- [Update] GetFriendshipStatusAsync
- [Update] BlockUserAsync/UnBlockUserAsync
- [Update] IgnoreFriendshipRequestAsync
- [Update] HideMyStoryFromUserAsync/UnHideMyStoryFromUserAsync
- [Update] MuteFriendStoryAsync/UnMuteFriendStoryAsync
- [Update] MuteUserMediaAsync/UnMuteUserMediaAsync
- [Update] FollowUserAsync/UnFollowUserAsync
- [Update] InstaStory.FriendshipStatus (support muting)
- [Update] InstaFullUserInfo.UserDetail.FriendshipStatus
- [Update] InstaStoryFeed.Broadcasts
- [Update] InstaStoryFeed.PostLives
- [Update] InstaReelFeed.FriendshipStatus

v1.3.3.1
- [Add] ShareMediaAsStoryAsync to StoryProcessor
- [Add] HasViewerSaved property to InstaMedia
- [Add] converters for all live broadcast classes
- [Add] pagination to GetDiscoverTopLiveAsync
- [Add] LoginWithFacebookAsync to IInstaApi

v1.3.3.0
- [Bugfix] for followers and followings get functions
- [Bugfix] for SendGetRequestAsync
- [Bugfix] for GetTopHashtagMediaListAsync (thx to @huseyinkarael for report)
- [Bugfix] for GetRecentHashtagMediaListAsync (thx to @huseyinkarael for report)
- [Bugfix] for GetArchivedMediaAsync pagination
- [Bugfix] for GetUserTagsAsync (thx to @hamidrh for bugfix)
- [Rename] GetLikeFeedAsync to GetLikedFeedAsync
- [Rename] SendLikeAsync to SendDirectLikeAsync
- [Add] GetUserFollowersByIdAsync to UserProcessor
- [Add] GetUserFollowingByIdAsync to UserProcessor
- [Add] SaveMediaAsync to MediaProcessor
- [Add] UnSaveMediaAsync to MediaProcessor
- [Add] GetSavedFeedAsync to FeedProcessor
- [Add] support story question in InstaStoryItem
- [Add] GetUserShoppableMediaByIdAsync to ShoppingProcessor
- [Add] GetUserMediaByIdAsync to UserProcessor
- [Add] GetBestFriendsAsync to UserProcessor
- [Add] GetBestFriendsSuggestionsAsync to UserProcessor
- [Add] AddBestFriendsAsync to UserProcessor
- [Add] DeleteBestFriendsAsync to UserProcessor
- [Update] GetUserTagsAsync pagination
- [Update] GetTagFeedAsync pagination
- [Update] GetUserTimelineFeedAsync pagination
- [Update] GetSavedFeedAsync
- [Update] GetLikedFeedAsync pagination
- [Update] GetRecentHashtagMediaListAsync pagination
- [Update] GetTopHashtagMediaListAsync pagination
- [Update] ApproveDirectPendingRequestAsync
- [Update] GetUserShoppableMediaAsync pagination
- [Update] GetUserShoppableMediaAsync pagination