API reference
Get a TikTok video
Public TikTok videos, returned without the TikTok watermark.
GET
/v1/tiktokSend a public TikTok URL and get metadata plus a downloadUrl to a stored copy of the file. The first call for a video downloads and stores it; repeat calls are answered from storage.
Authorization#
Authorizationstring · headerrequiredBearer token: Bearer <YOUR_API_KEY>. The key needs the resolve scope.
Query parameters#
urlstringrequiredThe video page URL, URL-encoded.
formatmp4 | m4aoptionalContainer to prefer for downloadUrl. m4a returns the audio track (Starter and up).
res360p … 2160poptionalQuality to prefer for downloadUrl. Falls back to the best your plan allows.
Accepted URLs#
- https://www.tiktok.com/@<user>/video/<id>
- https://vm.tiktok.com/<code>/
- https://vt.tiktok.com/<code>/
Good to know#
- TikTok serves one source file. Quality is its short side, so a 1080×1920 video is 1080p.
- When the source is sharper than your plan allows, you get a copy scaled to your cap (Free: 720p).
- Starter and up also get the soundtrack as an m4a in audioUrl. Costs 3 credits + 1.46 per MB, rounded up.
Errors#
400 bad_requestMissing or malformed url, a URL from another platform, or a coming-soon service.401 unauthorizedMissing, invalid or revoked API key.403 insufficient_scopeThe key is valid but lacks the scope this endpoint needs (resolve, formats or usage:read).404 not_foundPrivate, removed or region-locked video, or a post without video.402 insufficient_creditsYour credit balance cannot cover this call. Buy a top-up or change plan in the dashboard.429 rate_limitedThe platform is throttling — retry later.502 upstream_errorThe platform or storage failed for this call. Safe to retry.