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.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
url | string | Required | Up to 500 characters |
hd | boolean | Optional | Any |
Example request
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.
| Field | Type |
|---|---|
aweme_id | string |
id | string |
region | string |
title | string |
cover | url |
ai_dynamic_cover | url |
origin_cover | url |
duration | integer |
play | url |
wmplay | url |
hdplay | url |
size | integer |
wm_size | integer |
hd_size | integer |
music | url |
music_info | object |
play_count | integer |
digg_count | integer |
comment_count | integer |
share_count | integer |
download_count | integer |
collect_count | integer |
create_time | integer |
anchors_extras | string |
is_ad | boolean |
commerce_info | object |
commercial_video_info | string |
item_comment_settings | integer |
mentioned_users | string |
author | object |
is_nff_or_nr | boolean |