hooks
The clip's original video file, for a <video> tag
Play a TikTok or Instagram clip in your own player: put this URL (the hook's media_url) in a <video src>. It answers a 302 to the clip's original file on the platform's CDN, which plays with seeking; no video byte is stored or proxied. No key needed. 404 media_unavailable for a clip with no file (a YouTube Short, a photo post, a deleted post) and 503 media_busy when it cannot be looked up now: show the official embed instead. After a playback error, ask once with ?retry=1 for a fresh address. With ?format=json it answers 200 {url, expires_in} instead of redirecting. Free.
get/v1/hooks/{hook_id}/media
Request
- Base URL: https://api.hookdetector.com (the document declares no server; this is the origin it was published from)
- URL: https://api.hookdetector.com/v1/hooks/{hook_id}/media
- Auth: none declared
Path parameters
hook_idstring uuid required
Query parameters
retryboolean
format'redirect' | 'json'
Response
with ?format=json: the file address as JSON
Example response
{
"expires_in": 300,
"url": "https://v16m.tiktokcdn-us.com/.../video/tos/.../"
}Changes
No recorded changes to this operation across all 1 revision of this API.