APIs / TikTok / User Posts

TikTok: User Posts

User Posts from TikTok as JSON. 1 credit per successful call.

GET /v1/tiktok/user-postsNeeds terms

Note
This endpoint needs the restricted-endpoint terms, which you can accept in your dashboard.

Parameters

Send parameters in the query string.

Required Send unique_id or user_id.

ParameterTypeRequiredAllowed values
unique_idstringOptionalUp to 255 characters
user_idstringOptionalUp to 100 characters
countintegerOptionalAny
cursorstringOptionalUp to 100 characters

Example request

cURLshell
curl "https://api.perceptlayer.com/v1/tiktok/user-posts?unique_id=%40tiktok&count=10&cursor=0" \
  -H "X-API-Key: $API_KEY"

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

Each item in data.videos has these 32 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
aweme_idstring
video_idstring
regionstring
titlestring
coverurl
ai_dynamic_coverurl
origin_coverurl
durationinteger
playurl
wmplayurl
sizeinteger
wm_sizeinteger
musicurl
music_infoobject
play_countinteger
digg_countinteger
comment_countinteger
share_countinteger
download_countinteger
collect_countinteger
create_timeinteger
anchors_extrasstring
is_adboolean
commerce_infoobject
commercial_video_infostring
item_comment_settingsinteger
mentioned_usersstring
authorobject
is_nff_or_nrboolean
is_topinteger
content_descstring[]
imagesstring[]