Turn a TikTok post URL into a direct video file link. The endpoint returns a playable address for the clip without the TikTok watermark, and also exposes the watermarked original when you need the version exactly as published. Both are plain URLs your own client can stream or store, which keeps downloader tools and archiving jobs clear of any page scraping.
curl -X GET "https://api.primeapi.co/download-video?url=https%3A%2F%2Fwww.tiktok.com%2F%40taylorswift%2Fvideo%2F7288965373704064286" \
-H "X-PrimeAPI-Key: YOUR_API_KEY"
import requests
url = "https://api.primeapi.co/download-video?url=https%3A%2F%2Fwww.tiktok.com%2F%40taylorswift%2Fvideo%2F7288965373704064286"
headers = {"X-PrimeAPI-Key": "YOUR_API_KEY"}
response = requests.get(url, headers=headers)
print(response.json())
print("Credits left:", response.headers.get("X-PrimeAPI-Balance"))
{
"play": "https://v16m-default.akamaized.net/a4f43c14eee7b4dcd513cc195df6ba9a/678b4b11/video/tos/maliva/tos-maliva-ve-0068c799-us/ooKm3gC0lQELJLrnB38DAmnyEJARineIQmbfV5/?a=0&bti=OHYpOTY0Zik3OjlmOm01MzE6ZDQ0MDo%3D&ch=0&cr=0&dr=0&er=0&lr=all&net=0&cd=0%7C0%7C0%7C0&cv=1&br=1648&bt=824&cs=0&ds=6&ft=-HezKU2sfusQOFCrSfvgFLO-Xt.BCa0QEe-InzAT.YqAnnbvWH6&mime_type=video_mp4&qs=0&rc=NDg8OWhpNjhmZ2Q4aTdpNEBpMzhlcmc6ZmZzbjMzaTczNEBfMGFhMzQtNS0xM2FiMl5fYSNxc2lwcjRnZ2dgLS1kMTJzcw%3D%3D&vvpl=1&l=20250118003232D13801962BE35208F95D&btag=e000b8000",
"play_watermark": "https://v16m-default.akamaized.net/e65b66065e5292584c43224d375d7f17/678b4b11/video/tos/maliva/tos-maliva-ve-0068c799-us/osIWmRBldJnmmefib6kn3AQEVlEbAyzkVEBFD5/?a=0&bti=OHYpOTY0Zik3OjlmOm01MzE6ZDQ0MDo%3D&ch=0&cr=0&dr=0&er=0&lr=all&net=0&cd=0%7C0%7C0%7C0&cv=1&br=1758&bt=879&cs=0&ds=3&ft=-HezKU2sfusQOFCrSfvgFLO-Xt.BCa0QEe-InzAT.YqAnnbvWH6&mime_type=video_mp4&qs=0&rc=Zmk1OTw7ZGloOTk1Mzs2NUBpMzhlcmc6ZmZzbjMzaTczNEBeY2I2L2IxXmMxMjAwLy5fYSNxc2lwcjRnZ2dgLS1kMTJzcw%3D%3D&vvpl=1&l=20250118003232D13801962BE35208F95D&btag=e000b8000"
}