Download DRM-protected Media
Downloads a Widevine-protected video from your own Media Vault. DRM media returns files.full.url = null from the Vault endpoints, so this endpoint resolves the Widevine license, decrypts the video and audio streams, and returns a playable MP4.
The response is a 302 redirect to dl.fansapi.com, which streams the decrypted file. Most HTTP clients follow redirects automatically (curl requires -L).
Expect roughly 8-15 seconds before the first byte arrives while the license exchange, download and decrypt complete. Cached content keys can speed up preparation, but repeated downloads are still billable. DRM downloads cost 3 credits per decimal MB of remuxed output streamed (1 MB = 1,000,000 bytes), with a minimum of 1 credit for nonempty output. Megabytes are rounded to two decimal places, multiplied by 3, then truncated to whole credits. Billing happens after streaming; interrupted downloads are charged for output already streamed, and zero-byte failures cost no download credits. Range is unsupported: the service returns 200 with Accept-Ranges: none. HEAD returns 405; it does not decrypt a file to discover its final size.
Authorization
default Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys
In: header
Path Parameters
The Account ID
The Media Vault item ID to download.
Response Body
text/plain
application/json
application/json
application/json
curl -X GET "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/media/download/drm/2381923812""<Redirect to the download service>"{
"error": "Unauthorized. Go to https://app.onlyfansapi.com/api-keys to get your API key."
}{
"message": "Insufficient credits for a DRM media download."
}{
"message": "Media 123 is not DRM-protected. Use the regular media download endpoint instead."
}