Gojice/InstagramApiSharp

An complete Private Instagram Api for .NET (C#, VB.NET).

★ 0Forks 0C#GitHub ↗Compare

README

InstagramApiSharp InstagramApiSharp

An complete Private Instagram Api for .NET (C#, VB.NET).

Supports: Create new account, verify account, edit profile, set profile picture and many more...

Target Branch Version Download link
Nuget master v1.1.2.6 NuGet

Note

This library is based on InstaSharper with more functions and flexibility.

Install

Use this library as dll, reference 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.

Cross Platform

Platform Supported Version
.NET Framework 4.5.2
.NET Standard 2.0
.NET Core(UWP) 10.0.10240

Overview

There's a lot of functions and bug fix me and NGame1 added to this library. Check sample projects and wiki pages to see how it's works.

Features

Some of features:

Login Login with Facebook 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

Usage

Use builder to get Insta API instance:

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

Contract, warning, note

Every method returns object IS NOT COMPLETED YET! For example:

Task<IResult<object>>

Wiki

Check Wiki page for documentation.

Version changes

v1.1.2.6

  • [Add] SetRequestDelay to IInstaApi
  • [Wiki update] for FAQ page

v1.1.2.5

  • [Bugfix] for uploading video album (thx to @rasaradin for report)

v1.1.2.4

  • [Add] ValidateUrlAsync to BusinessProcessor
  • [Add] GetBusinessPartnersButtonsAsync to BusinessProcessor
  • [Add] AddOrChangeBusinessButtonAsync to BusinessProcessor
  • [Add] RemoveBusinessButtonAsync to BusinessProcessor
  • [Add] GetSuggestedCategoriesAsync to BusinessProcessor
  • [Add] GetCategoriesAsync to BusinessProcessor
  • [Add] GetSubCategoriesAsync to BusinessProcessor
  • [Add] SearchCityLocationAsync to BusinessProcessor
  • [Add] ChangeBusinessCategoryAsync to BusinessProcessor
  • [Add] GetBusinessAccountInformationAsync to BusinessProcessor
  • [Add] RemoveBusinessLocationAsync to BusinessProcessor
  • [Add] UpdateBusinessInfoAsync to BusinessProcessor

v1.1.2.3

v1.1.2.2

  • [Change] minimun target platform to 10240(uwp)

v1.1.2.1

  • [Update] edit media function (location support)
  • [Bugfix] for caption in upload photo [large photo]
  • [Bugfix] for caption in upload video [large video]
  • [Bugfix] for caption in upload album [large album]

v1.1.2.0

  • [Bugfix] for #55 and add some properties to InstaFeed
  • [Bugfix] for #53 and add some properties to InstaRecentActivityFeed
  • [Add] Set accept language to InstaApi (thx to @Lorymi )
  • [Cleanup] and code refactoring some classes
  • [Add] Report media to MediaProcessor
  • [Add] Report user to UserProcessor
  • [Add] Business support to IInstaApi.BusinessProcessor

Version changes page

Known Issues

Nothing!!!!

You can download source code or app from InstaPost github page. InstaPost InstaPost

Language

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.

License

Do whatever you want to do! Except changing library name!!!!

Terms and conditions

  • Use this Api at your own risk.

Donation

No need to donate.

Contribute

Feel free to contribute and submit pull requests.

Thanks

Special thanks to mgp25 and his php wrapper.

Legal

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

Name Github Email Telegram Instagram
Ramtin Jokar @Ramtinak [email protected] - -
Ali Noshahi @NGame1 [email protected] https://t.me/NGameW https://instagram.com/alingame

Iranian developers - (c) 2018 | Tabestan & Paeez 1397.

Contributors

ramtinakNGame1GojiceLorymi

Issues