Tiktok Downloader Api avatar

Tiktok Downloader Api

Pricing

from $10.00 / 1,000 results

Go to Apify Store
Tiktok Downloader Api

Tiktok Downloader Api

Download TikTok videos and their cover thumbnails by URL. Give the actor a list of TikTok post links and it will return direct download URLs for both the video file and the cover image — stored in Apify's Key-Value Store and ready to use immediately.

Pricing

from $10.00 / 1,000 results

Rating

5.0

(5)

Developer

Crawler Bros

Crawler Bros

Maintained by Community

Actor stats

1

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Share

Download TikTok videos and their cover thumbnails by URL. Give the actor a list of TikTok post links and it will return direct download URLs for both the video file and the cover image — stored in Apify's Key-Value Store and ready to use immediately.


What it does

For each TikTok URL you provide, the actor:

  1. Opens the post in a headless browser
  2. Captures the video and cover thumbnail as they load
  3. Saves both files to Apify's Key-Value Store
  4. Returns download links alongside file metadata (dimensions, duration, file size, etc.)

Each post produces two output records — one for the video (.mp4) and one for the cover image (.jpg).


Input

FieldTypeRequiredDescription
postUrlsarray of stringsYesOne or more TikTok post URLs to download

Supported URL formats:

  • https://www.tiktok.com/@username/video/1234567890
  • https://vm.tiktok.com/XXXXXXX/ (short links)
  • https://vt.tiktok.com/XXXXXXX/ (short links)

Example input:

{
"postUrls": [
"https://www.tiktok.com/@khaby.lame/video/7595604254929210646"
]
}

Output

Results are saved to the dataset. Each row represents one media file (video or image) from a post.

FieldDescription
urlThe original TikTok post URL
download_status"success" or "failed"
mediaType"video" or "image"
filenameFile name (e.g. 7595604254929210646.mp4)
mediaUrlDirect download link from Apify Key-Value Store
media_metaFile metadata (see below)
errorError message (only present on failure)

media_meta for videos:

FieldDescription
widthVideo width in pixels
heightVideo height in pixels
fpsFrames per second
durationDuration in seconds
video_codecCodec identifier (e.g. avc1)
extFile extension
filesize_bytesFile size in bytes
total_bitrate_kbpsBitrate in kbps
aspect_ratioWidth / height ratio

media_meta for images:

FieldDescription
widthImage width in pixels
heightImage height in pixels
extFile extension
filesize_bytesFile size in bytes
aspect_ratioWidth / height ratio

Example output record (video):

{
"url": "https://www.tiktok.com/@khaby.lame/video/7595604254929210646",
"download_status": "success",
"mediaType": "video",
"filename": "7595604254929210646.mp4",
"mediaUrl": "https://api.apify.com/v2/key-value-stores/<store-id>/records/7595604254929210646.mp4",
"media_meta": {
"width": 576,
"height": 1024,
"fps": 30.0,
"duration": 15.23,
"video_codec": "avc1",
"ext": "mp4",
"filesize_bytes": 4823100,
"total_bitrate_kbps": 2531.4,
"aspect_ratio": 0.56
}
}

Usage notes

  • One URL at a time is fine, but you can pass dozens of URLs in a single run — they are processed sequentially to avoid being blocked.
  • Download links expire — files are stored in Apify's Key-Value Store and are accessible as long as the run's storage is retained (default: 7 days on Apify platform). Download the files if you need them long-term.
  • Invalid URLs are skipped — if a URL doesn't match TikTok's format it is recorded as failed and processing continues with the rest.
  • Proxy is used automatically — the actor routes traffic through a US residential proxy to improve reliability. No configuration needed.
  • If a video fails to download, the output record will still appear with "download_status": "failed" and an error field explaining what went wrong.