Skip to content
Docs menu

Download files

Signed links, formats, folders and progress.

Downloading is two steps: ask for a signed link, then fetch it. The link needs no key and expires, so treat it like a password. The SDKs do both steps in one call and write the file safely.

path = catalyst.download(song.master, "out/song.wav", format="wav")     # returns the Path written
data = catalyst.download(sound, to_bytes=True)                          # bytes, nothing on disk
link = catalyst.url(song.master, expires_in=3600)                       # just the signed link
files = catalyst.download_all(song, "stems/")                           # master and every stem

Options

OptionDefaultWhat it does
formatmp3 for audiomp3, wav, flac, ogg, mid or midi (stems), mp4 (video).
destinationcurrent folderA file path is used exactly; a folder keeps the name <file_id>.<format>. Data is written to .part and renamed when complete, so a crash never leaves a half file.
expires_in30 daysHow long the link lives, in seconds: above 0, at most one year.
expiry_datenoneAn ISO 8601 date instead, for example 2026-12-01T12:00:00Z.
dispositionattachmentattachment downloads; inline opens in a browser.
progressnoneA callback with bytes done and total.
overwriteyesTurn it off to refuse to replace an existing file.
sessionthe file's ownRequired only for a bare file id the SDK has not returned. See Sessions.
Warning

A signed link works for anyone who has it until it expires. Do not paste it in public places.