TikTok

List of TikTok APIs

baseURL: wv2h4to5qa.execute-api.us-east-2.amazonaws.com/dev/tiktok

To obtain x-api-key please contact the team. You can find more information at the "Connect With Us" section


Authentication

All requests require a valid API key to be included in the x-api-key header.

Fetch TikTok User by UserHandle

GET https://<baseURL>/user/:userHandle

Fetches the details of a TikTok user by their user handle

If the user exists in the database, it returns the existing user data. Otherwise, it fetches the user data from TikTok and saves it.

Request Parameters

NameTypeDescription

userHandle*

string

Provide the unique TikTok User Handle of the TikTok user

{
    "user": {
      "id": string,
      "nickname": string,
      "id_dup": string,
      "secUid": string,
      "profileBio": string,
      "profilePictureUrl": string,
      "isVerified": boolean,
      "isPrivateAccount": boolean,
      "createdAt": string,
      "updatedAt": string
  },
    "stats": {
      "diggCount": number,
      "followerCount": number,
      "followingCount": number,
      "friendCount": number,
      "heartCount": number,
      "heart": number,
      "videoCount": number
  }
}

Fetch TikTok Video by Video Id and User Handle

GET https://<baseURL>/video/:userHandle/:videoId

Fetches details of a TikTok video given video id and user handle of video's author. These parameters can be easily found in a typical TikTok video link.

Request Parameters

NameTypeDescription

userHandle*

string

Provide the unique TikTok User Handle of the video's author

videoId*

string

Provide the id of the video

{
    "id": string,
    "description": string,
    "createTime": string,
    "duration": number,
    "music": {
        "id": string,
        "title": string,
        "authorName": string,
        "album": string,
        "duration": number,
        "original": boolean,
        "private": boolean,
        "createdAt": string,
        "updatedAt": string
    },
    "stats": {
        "diggCount": number,
        "collectCount": number,
        "commentCount": number,
        "playCount": number,
        "repostCount": number,
        "shareCount": number
    },
    "author": {
        "id": string,
        "nickname": string,
        "id_dup": string,
        "secUid": string,
        "profileBio": string,
        "profilePictureUrl": string,
        "isVerified": boolean,
        "isPrivateAccount": boolean,
        "createdAt": string,
        "updatedAt": string
    },
    "authorStats": {
        "diggCount": number,
        "followerCount": number,
        "followingCount": number,
        "friendCount": number,
        "heartCount": number,
        "heart": number,
        "videoCount": number
    }
}

Last updated