---
title: "Download DRM-protected Media"
method: GET
path: "/api/{account}/media/download/drm/{media_id}"
tags: ["Media"]
---

# Download DRM-protected Media

`GET /api/{account}/media/download/drm/{media_id}`

## Request

- Base URL: `https://app.onlyfansapi.com`
- URL: `https://app.onlyfansapi.com/api/{account}/media/download/drm/{media_id}`
- Auth: HTTP bearer

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.

## Other responses

- `302`
- `401`
- `402`: Insufficient credits
- `422`: Media is not DRM-protected

## Changes

- **2026-10-17** `b3968f1bc1f0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/onlyfansapi/apis/onlyfans-api/changes/api/:account/media/download/drm/:media_id/get.md)

---

[API](https://skmtc.dev/onlyfansapi/apis/onlyfans-api.md) - [All operations](https://skmtc.dev/onlyfansapi/apis/onlyfans-api/llms.txt) - [OpenAPI document](https://skmtc.dev/onlyfansapi/apis/onlyfans-api/revisions/122c36386896?raw)
