APIs / TikTok / Video

TikTok: Video

Video from TikTok as JSON. 1 credit per successful call.

GET /v1/tiktok/videoNeeds terms

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

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
urlstringRequiredUp to 500 characters
hdbooleanOptionalAny

Example request

cURLshell
curl "https://api.perceptlayer.com/v1/tiktok/video?url=https%3A%2F%2Fwww.tiktok.com%2F%40tiktok%2Fvideo%2F7568510388342443294&hd=1" \
  -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

data has these 31 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
aweme_idstring
idstring
regionstring
titlestring
coverurl
ai_dynamic_coverurl
origin_coverurl
durationinteger
playurl
wmplayurl
hdplayurl
sizeinteger
wm_sizeinteger
hd_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