Stream a jut.su CDN URL through backend's session
GET
/api/v1/sources/jutsu/stream
const url = 'http://localhost:8080/api/v1/sources/jutsu/stream?url=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:8080/api/v1/sources/jutsu/stream?url=example'Re-issues the GET against the upstream URL using backend’s authenticated jut.su session and streams the response back to the browser without buffering. Required because Yandex CDN signs URLs against the originating session — a URL fetched by backend cannot be opened directly by the browser. Whitelisted to *.yandexwebcache.org. Pass ?filename=… to receive a Content-Disposition: attachment header so the browser triggers a download with the supplied filename instead of inline playback.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” url
required
string
filename
string | null
Responses
Section titled “ Responses ”OK