A canonical TikTok user profile. id may be TikTok sec_uid, numeric user id, or public handle.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | Stable TikTok user id. | |
| username | str | ||
| display_name | str | ||
| avatar_url | str | ||
| bio | str | ||
| is_verified | bool | ||
| is_private | bool | ||
| follower_count | int | ||
| following_count | int | ||
| like_count | int | Total likes received across posts | |
| video_count | int | ||
| region | str |
from unifapi.models.user import User
# TODO update the JSON string below
json = "{}"
# create an instance of User from a JSON string
user_instance = User.from_json(json)
# print the JSON string representation of the object
print(User.to_json())
# convert the object into a dict
user_dict = user_instance.to_dict()
# create an instance of User from a dict
user_from_dict = User.from_dict(user_dict)