MiniH3
EnglishTools

TikTok link to video URL

中文

POSThttps://api.minih3.dev/v1/tools/fetch-tiktok-v1

This call is billed to your account. Price: $0.001 per call, charged only on success

Purpose: give a TikTok share link; get a downloadable video URL plus metadata (duration, author, metrics). Links to TikTok short-drama channel episodes (/shortdrama/episode/…) are not supported yet and return 400 unsupported_link, not charged. Billing id: minih3-tool-fetch-tiktok-v1, $0.001 per call.
The media_url is valid for 24 hours and goes straight into shotlist or breakdown. Charged only when the URL is returned; not-found and copy failures are free. You can paste the whole share text copied from the app; we pull the link out of it. A link from another platform returns 400 unsupported_platform naming the right endpoint.

Parameters

NameInTypeRequiredDescription
urlbodystringyes

A TikTok share link (tiktok.com, vm.tiktok.com) or share text

Code samples

curl -X POST "https://api.minih3.dev/v1/tools/fetch-tiktok-v1" \
  -H "Authorization: Bearer $MINIH3_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://www.tiktok.com/@someone/video/7339393672959757570"
}'

Try it

Kept in this browser tab only (sessionStorage) and sent straight to api.minih3.dev; it never reaches this site.

Enter your key to send.

Responses

200

Media URL and metadata

{
  "media_url": "https://…",
  "expires_at": 1793281040,
  "meta": {
    "platform": "tiktok",
    "video_id": "7339393672959757570",
    "duration_seconds": 32.8,
    "width": 720,
    "height": 1280
  }
}

400

Error

404

Error

502

Error