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.
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
- 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
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'
}
Instagram.login("username","password").actions().doSomething().addOnCompleteListener(task -> {
if (task.isSuccessful())
System.out.println("Success");
else
task.getException().printStackTrace();
});
Java docs [OUTDATED]
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.
Answer. Yes, not stories but you can download pfp and posts.
Answer. No. You only need to have username and password of the account.
Answer. Yes, check this example on how to use that
Contributions are always welcome!
Please refer to Contribution guide. aslo see the code of conduct
For support, follow us on instagram. It would be nice if you give this repo a star.