Awesome Open Source
Awesome Open Source

InstagramApi [InstaSharper]

Tokenless, butthurtless private API for Instagram. Get account information, media, explore tags and user feed without any applications and other crap.

Development of this project postponed

Before posting new issues: Demo samples, Tests project and Wiki page

Note that: there is a simple Instagram API based on web-version of Instagram. This repository based on Instagram API for mobile devices.

Build status Build status NuGet MyGet GitHub stars

Current version: 1.4.0 [Stable], 1.5.0 [Under development]


This project intends to provide all the features available in the Instagram API up to It is being developed in C# for .NET Framework 4.5.2 and .NET Standard 2.0

This repository is provided for reference purposes only.

  • Please note that this project is still in design and development phase; the libraries may suffer major changes even at the interface level, so don't rely (yet) in this software for production uses. *

Cross-platform by design

Build with dotnet core. Can be used on Mac, Linux, Windows.

Easy to install

Use library as dll, reference from nuget or clone source code. Pre-release version available at myget feed together with symbols


Currently the library supports following coverage of the following Instagram APIs:

  • [x] Login
  • [x] Logout
  • [x] Create new account
  • [x] Get user explore feed
  • [x] Get user timeline feed
  • [x] Get all user media by username
  • [x] Get media by its id
  • [x] Get user info by its user name
  • [x] Get current user info
  • [x] Get tag feed by tag value
  • [x] Get current user media
  • [x] Get followers list
  • [x] Get followers list for currently logged in user
  • [x] Get following list
  • [x] Get recent following activity
  • [x] Get user tags by username
  • [x] Get direct mailbox
  • [x] Get recent recipients
  • [x] Get ranked recipients
  • [x] Get inbox thread
  • [x] Get recent activity
  • [x] Like media
  • [x] Unlike media
  • [x] Follow user
  • [x] Unfollow user
  • [x] Set account private
  • [x] Set account public
  • [x] Send comment
  • [x] Delete comment
  • [x] Upload photo
  • [x] Upload video
  • [x] Get followings list
  • [x] Delete media (photo/video)
  • [x] Upload story (photo)
  • [x] Change password
  • [x] Send direct message
  • [x] Search location
  • [x] Get location feed
  • [x] Collection create/get by id/get all/add items

Easy to use

Use builder to get Insta API instance:

var api = new InstaApiBuilder()
                .UseLogger(new SomeLogger())
                .UseHttpClient(new SomeHttpClient())
                .SetUser(new UserCredentials(...You user...))
Note: every API method has synchronous implementation as well

Quick Examples


IResult<bool> loggedIn = await api.LoginAsync();

Get user:

IResult<InstaUser> user = await api.GetUserAsync();

Get all user posts:

IResult<InstaMediaList> media = await api.GetUserMediaAsync();

Get media by its code:

IResult<InstaMedia> mediaItem = await api.GetMediaByIdAsync("1234567891234567891_123456789);

Get user timeline feed:

IResult<InstaFeed> feed = await api.GetUserFeedAsync();

Comment post:

IResult<bool> postResult = await apiInstance.CommentMediaAsync("1234567891234567891_123456789", "Hi there!");
for more samples you can look at Examples folder

Why two separate repos with same mission?


Special thanks

ADeltaX for contribution

vitalragaz for contribution

n0ise9914 for contribution

Ramtinak for contribution

mgp25 and his php wrapper



Terms and conditions

  • Anyone who uses this wrapper MUST follow Instagram Policy
  • Provided project MUST NOT be used for marketing purposes
  • I will not provide support to anyone who wants this API to send massive messages/likes/follows and so on
  • Use this API at your own risk


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.

Code provided for reference purposes only.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
c-sharp (12,466
instagram (275
instagram-api (51
instagram-scraper (31