An complete Private Instagram Api for .NET (C#, VB.NET).
Supports almost every features that Instagram app has!
Target | Branch | Version | Download link |
---|---|---|---|
Nuget | master | v1.3.2.2 |
PaginationParameters
updated, you must use NextMaxId
instead of using old NextId
!!!!!
This library is based on InstaSharper with more features and new cool things.
Use this library as dll or reference it from NuGet.
Nuget package manager command:
PM> Install-Package InstagramApiSharp
Note: this library uses Json.NET v10.0.3 and above for serialize and deserialize json.
Platform | Supported Version |
---|---|
.NET Framework | 4.5.2 |
.NET Standard | 1.3 |
.NET Standard | 2.0 |
.NET Core(UWP) | 10.0.10240 |
Buy me a coffee if you like this project: https://buymeacoff.ee/rXdVTHQkh
There are a lot of features and bug fix me and NGame1 and other contributors added to this library. Check sample projects and wiki pages to see how it's works.
Some of features:
Login | Login with cookies | Logout | Create new account email/phone number |
Edit profile | Change/remove profile picture | Story settings | Get user explore feed |
Get user timeline feed | Get all user media by username | Get media by its id | Get user info by its username |
Get current user info | Get tag feed by tag value | Get current user media | Get followers list |
Get followers list for logged in user | Get following list | Get recent following activity | Get user tags by username |
Get direct mailbox | Get recent recipients | Get ranked recipients | Get inbox thread |
Get recent activity | Like media | Unlike media | Follow user |
Unfollow user | Set account private | Set account public | Send comment |
Delete comment | Upload photo | Upload video | Get followings list |
Delete media (photo/video/album) | Upload story (photo/video/album) | Change password | Send direct message |
Search location | Get location feed | Collection create/get by id/get all/add items | Support challenge required |
Upload album (videos/photo) | Highlight support | Share story | Send direct photo/video/ stories/profile/ link/location |
IG TV support | Share media to direct thread | Business account support |
var api = InstaApiBuilder.CreateBuilder()
// required
.SetUser(new UserSessionData(...Your user...))
// optional
.UseLogger(new SomeLogger())
// optional
.UseHttpClient(new SomeHttpClient())
// optional
.UseHttpClientHandler(httpHandlerWithSomeProxy)
// optional
.SetRequestDelay(new SomeRequestDelay())
// optional
.SetApiVersion(SomeApiVersion)
.Build();
Every method returns object IS NOT COMPLETED YET! For example:
Task<IResult<object>>
Check Wiki pages for documentation.
v1.3.2.2
- [Bugfix] for user activities timespan
- [Add] support for story sliders
- [Add] VoteStorySliderAsync to StoryProcessor
- [Add] some new properties to InstaStoryItem
- [Add] StorySliderVoters to InstaStoryItem
- [Add] Slider to InstaStoryUploadOptions
- [Add] Fail(Exception, T, ResponseType) to Result
- [Add] NetworkProblem to ResponseType
v1.3.2.1
- [Add] support story poll to InstaStoryItem
- [Add] ViewerVote property to InstaStoryPollStickerItem
- [Add] story voters support in InstaStoryItem
- [Add] Viewers property to InstaStoryItem
- [Add] viewers and voters in GetStoryMediaViewersAsync function
- [Add] pagination to GetStoryMediaViewersAsync
- [Add] GetStoryPollVotersAsync to StoryProcessor
- [Add] VoteStoryPollAsync to StoryProcessor
- [Add] SetTimeout to IInstaApi
- [Add] story options (add locations, hashtags or poll questions) to UploadStoryPhotoAsync and UploadStoryVideoAsync
v1.3.2.0
- [Add] Api Version 76
- [Set] api version v76 as default (for new logins)
- [Update] GetStatisticsAsync
- [Update] highlight values
- [Add] SendDirectHashtagAsync to MessagingProcessor
- [Add] SendDirectHashtagToRecipientsAsync to MessagingProcessor
- [Add] support Hashtag message in direct threads
- [Add] support LiveViewerInvite in direct message
- [Add] ShareLiveToDirectThreadAsync to LiveProcessor
- [Add] ShareLiveToDirectRecipientAsync to LiveProcessor
- [Update] GetUserTimelineFeedAsync
v1.3.1.8
- [Add] refresh to timeline feed
- [Bugfix] for LoginWithCookiesAsync
v1.3.1.7
- [Add] support for postlives
- [Add] like in directs
- [Add] Challenge support in 2FALogin
v1.3.1.6
- [Add] timespan for InstaAudio
- [Add] support for dynamically setting httphandler
v1.3.1.3
- [Add] top searches in discover processor
- [Add] LoginWithCookiesAsync to IInstaApi
- [Bugfix] for live comments get
- [Bugfix] for SearchPlacesAsync
v1.3.1.1
- [Bugfix] fix for hashtags deserialize on api version 64
- [Add] RichText support in API Version 64 for Activities
v1.3.1.0
- [Add] set/get timezone and timezone offset (thx to @burak1000 for report)
- [Bugfix] for MarkDirectThreadAsSeenAsync
- [Add] PaginationParameters to SearchPlacesAsync
v1.3.0.0
- [Add] SendDirectLinks with recipients and threadId to MessagingProcessor (thx to @estgold for PR)
- [Add] ArchiveMediaAsync to MediaProcessor
- [Add] UnArchiveMediaAsync to MediaProcessor
- [Add] GetArchivedMediaAsync to MediaProcessor
- [Add] GetPresenceOptionsAsync to AccountProcessor
- [Add] EnablePresenceAsync to AccountProcessor
- [Add] DisablePresenceAsync to AccountProcessor
- [Add] BlockUserCommentingAsync to CommentProcessor
- [Add] UnblockUserCommentingAsync to CommentProcessor
- [Add] GetBlockedCommentersAsync to CommentProcessor
- [Update] FriendshipStatus property in GetUserAsync
Version changes page
Nothing!!!!
InstaPost app.
You can download source code or app from InstaPost github page.
You can ask questions or report issues in Persian or English language. I can't answer to other languages, because I don't understand them.
Do whatever you want to do! Except changing library name!!!!
- Use this Api at your own risk.
Feel free to contribute and submit pull requests.
Special thanks to all 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.
Name | Github | Telegram | ||
---|---|---|---|---|
Ramtin Jokar | @Ramtinak | [email protected] | - | - |
Ali Noshahi | @NGame1 | [email protected] | https://t.me/NGameW | https://instagram.com/alingame |
Iranian developers - (c) 2019 | Tabestan - Zemestan 1397.