Skip to content
Sign in Waitlist
Docs/API reference/Media/Public media by token

Public media by token

GET /v1/m/:id/:token/:name public

Public media served through a tokenized link (supports Range). Also served at /m/…. This is the URL Meta and TikTok download from.

Parameters

Name In Description
id path Media item id.
token path Token of the public media link.
name path File name.

Example

curl "https://praeko.app/v1/m/01KA3VQ7M2T9XE4HB8N5RZ6C0D/k7Qm2vXz9Rt4Lp8Wc3Nd6Hy1Bs5Fa0J/video.mp4"

Response

Success status When
200 The whole file.
206 A chunk, when the request has Range: bytes=….

The bytes of the file with Cache-Control: public, max-age=3600 and X-Robots-Tag: noindex, nofollow. Wrong token or nonexistent media: plain-text 404; Range outside the file: 416.

Errors

No errors specific to this route besides the common ones.

Question or mistake on this page? contato@praeko.appView .md

Type to search pages, routes and error codes.