Tokenless, butthurtless private API for Instagram. Get account information, media, explore tags and user feed without any applications and other crap.
This fork only focuses on features that are related to Direct messaging aspect.
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.
This project intends to provide all the features available in the Instagram API. It is being developed in C# for .NET Standard 2.0
- Please note that this project is still in design and development phase; the libraries may suffer major changes even at the interface level, so do not rely on this software for production uses yet. *
Build with .NET Standard. Can be used on Mac, Linux, Windows.
Use library as dll, reference from myget or clone source code.
Currently the library supports following coverage of the following Instagram APIs:
- Login
- Logout
- Create new account
- Get user explore feed
- Get user timeline feed
- Get all user media by username
- Get media by its id
- Get user info by its user name
- Get current user info
- Get tag feed by tag value
- Get current user media
- Get followers list
- Get followers list for currently 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)
- Upload story (photo)
- Change password
- Send direct message
- Search location
- Get location feed
- Collection create/get by id/get all/add items
- Push notification
var api = new InstaApiBuilder()
.UseLogger(new SomeLogger())
.UseHttpClient(new SomeHttpClient())
.SetUser(new UserCredentials(...You user...))
.Build();
var api = new InstaApiBuilder()
.LoadStateFromStream(stateStream)
.UseLogger(new SomeLogger())
.Build();
IResult<bool> loggedIn = await api.LoginAsync();
IResult<InstaUser> user = await api.GetUserAsync();
IResult<InstaMediaList> media = await api.GetUserMediaAsync();
IResult<InstaMedia> mediaItem = await api.GetMediaByIdAsync("1234567891234567891_123456789);
IResult<InstaFeed> feed = await api.GetUserFeedAsync();
IResult<bool> postResult = await apiInstance.CommentMediaAsync("1234567891234567891_123456789", "Hi there!");
for more samples you can look at Examples folder
ADeltaX for contribution
vitalragaz for contribution
n0ise9914 for contribution
Ramtinak for contribution
mgp25 and his php wrapper
MIT
- Anyone who uses this wrapper MUST follow Instagram Policy
- Provided project MUST NOT be used for marketing purposes
- Support will not be provided to those who wish to use this API to send massive messages, likes, follows, and etc
- 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.