Download Media from the OnlyFans CDN
Downloads a file directly from `https://cdn*.onlyfans.com/*` URL. Use this endpoint to directly download a file from URL.
Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys
In: header
Path Parameters
The Account ID
Optional parameter. The CDN URL to scrape. Keep in mind that these URLs expire in approx. 20 minutes. So for example, if you fetched Media Vault Items at 01:00pm, the URLs will expire at around 01:20pm
Must be a valid URL. Must match the regex /^https?://(?:[a-zA-Z0-9-]+.)*onlyfans.com(?=/.
Response Body
curl -X GET "https://app.onlyfansapi.com/api/string/media/download/string" \
-H "Content-Type: application/json" \
-d '{
"cdnUrl": "https://:A.:k.:h.:x.onlyfans.com(="
}'"<Streamed binary of the downloaded file>"[Deprecated] Scrape media from the OnlyFans CDN POST
**⚠️ This is a deprecated endpoint. Please use the new "Download media from the OnlyFans CDN" endpoint!** Scrapes a `https://cdn*.onlyfans.com/*` URL *or* Vault Media ID, and uploads it to the OnlyFans API CDN, where you can view or download the file. **Max file size is 500MB**
Upload media to the OnlyFans CDN POST
The response can be used **only once** to manually include media in a post or message. This endpoint does not upload media to the Vault.