@tobyg74/tiktok-api-dl
Version:
Scraper for downloading media in the form of videos, images and audio from Tiktok. Also for stalking Tiktok Users
63 lines (62 loc) • 1.37 kB
TypeScript
export type TiktokStalkUserResponse = {
status: "success" | "error";
message?: string;
result?: {
user: UserProfile;
stats: StatsUserProfile;
};
};
export type UserProfile = {
uid: string;
username: string;
nickname: string;
avatarLarger: string;
avatarThumb: string;
avatarMedium: string;
signature: string;
verified: boolean;
privateAccount: boolean;
region: string;
commerceUser: boolean;
usernameModifyTime: number;
nicknameModifyTime: number;
secUid: string;
};
export type StatsUserProfile = {
followerCount: number;
followingCount: number;
heartCount: number;
videoCount: number;
likeCount: number;
friendCount: number;
};
export type StatisticsUserProfile = {
likeCount: number;
shareCount: number;
commentCount: number;
playCount: number;
favoriteCount: number;
};
export type Video = {
id: string;
duration: string;
ratio: string;
cover: string;
originCover: string;
dynamicCover: string;
playAddr: string;
downloadAddr: string;
format: string;
bitrate: number;
};
export type Music = {
id: string;
title: string;
album: string;
playUrl: string;
coverLarge: string;
coverMedium: string;
coverThumb: string;
authorName: string;
duration: string;
};