EasyInsta
EasyInsta copied to clipboard
A Java library of Instagram's private API and wrapper of instagram4j. Surf Instagram programmatically, build bots, and a lot more. Just a line of code for every operation.
EasyInsta
An library through which you can use instagram programatically. You can say that this is a well optimize, will featured wrapper of instagram4j library. You can send direct messages, add stories, post photos, scrap profiles and can do many more things with this library.Disclaimer ⚠: This API is private. Means that instagram has not documented or allowed others to use this API. If you are using this API harshly then instagram may ban your account. Developers will not be responsible for anything happend to your account.

Announcement 🔊
A brand new library is been planed to be created as replacement of instagram4j. The new library will be more easy, optimised, and safe (less challenges) to use. The library will be based on the privaye api of web version of instagram. If you want to contribute on making of that new lib, please ping me at @x0.rahil on instagram. Little help is appreciated 💖
To get started, you need to discover/reverse engineer instagram endpoints and add it to OpenAPI spec.json
Features
- Lightweight and Easy 2 use
- No need api token
- Supports Sending messages
- Supports Getting/fetching messages
- Supports Deleting message
- Supports Spamming DMs
- Supports Realtime direct messages listener
- Supports Login using cache/saving sessions
- Supports Posting
- Supports Adding stories
- Supports Following/Unfollowing others
- Supports Acception/Ignoring follow request
- Supports Scrapping followings and followers
- Supports Getting profile data
- Supports Liking/commenting on post
- Supports Fetching feeds/timeline post
- Supports Downloading posts and pfp
Implimentation
In your project build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
In your app build.gradle
dependencies {
implementation 'com.github.ErrorxCode:EasyInsta:TAG'
implementation 'com.github.ErrorxCode:AsyncTask:1.0'
}
Acknowledgements
Its easy :-)
Instagram.login("username","password").actions().doSomething().addOnCompleteListener(task -> {
if (task.isSuccessful())
System.out.println("Success");
else
task.getException().printStackTrace();
});
Documentation
Java docs [OUTDATED]
FAQ
[Q.1] Can we use this library to make bots ?
Answer. Yes. But Instagram don't allow to make bots with their officail graph APIs. Altho This is not the officail api, but you should still follow the usage limits to prevent detection.
[Q.2] Can we download stories or posts using this API ?
Answer. Yes, not stories but you can download pfp and posts.
[Q.3] Does use of this library requires any tokens or other keys ?
Answer. No. You only need to have username and password of the account.
[Q.4] In android, can we use webview to login?
Answer. Yes, check this example on how to use that
Contributing
Contributions are always welcome!
Please refer to Contribution guide. aslo see the code of conduct
Support
For support, follow us on instagram. It would be nice if you give this repo a star.