Simple-TikTok-API is an Android library that provides a simple way to fetch TikTok profile details without signing in. It is an unofficial API that utilizes Jsoup and OkHttp to fetch and extract data quickly.
- Check if an account is available
- Fetch the number of followers
- Fetch the number of followings
- Fetch Total number of likes Check if an account is verified
- Check if an account is private
Simple-TikTok-API can be included in your Android project by following two simple steps.
1- Add the following dependency to your build.gradle
file:
dependencies {
implementation 'com.github.itx-jd:Simple-TikTok-API:<version>'
}
Replace "version" with the appropiate release.
2- Add the following to the repositories section in your project's settings.gradle file:
repositories {
...
maven { url 'https://jitpack.io' }
}
TikTokAPI.getUserDetails("username", new TikTokAPI.TikTokUserListener() {
@Override
public void onUserDetailsReceived(TikTokUserDetails userDetails) {
// Handle the received user details
String followerCount = userDetails.getFollowerCount();
String followingCount = userDetails.getFollowingCount();
String totalLikes = userDetails.getTotalLikes();
boolean isVerified = userDetails.isVerified();
boolean isPrivateAccount = userDetails.isPrivateAccount();
}
@Override
public void onUserNotExist() {
// Handle the case when the user does not exist
Log.d("User Details", "User does not exist");
}
@Override
public void onError() {
// Handle any errors that occur during the API request
Log.e("User Details", "Error occurred during API request");
}
});
Replace "username" with the actual TikTok username you want to fetch details for.
Contributions to Simple-TikTok-API are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request. Let's make this API even better together!
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.