Skip to content

Unofficial TikTok API for fetching user profile details without sign-in, including followers, following, likes, verification, and privacy status.

Notifications You must be signed in to change notification settings

itx-jd/Simple-TikTok-API

Repository files navigation

Simple-TikTok-API

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.

Features

  • 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

Installation

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.

Latest Release :

2- Add the following to the repositories section in your project's settings.gradle file:

repositories {
			...
			maven { url 'https://jitpack.io' }
		}

Quick Usage

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.

Contribution

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!

License

This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.

About

Unofficial TikTok API for fetching user profile details without sign-in, including followers, following, likes, verification, and privacy status.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages