Download Media from the OnlyFans CDN
Downloads a file directly from a https://cdn*.onlyfans.com/* URL. When the file is already cached on our CDN, this endpoint returns a 302 redirect to a https://cdn.fansapi.com/* URL. Most HTTP clients follow redirects automatically (curl requires -L). Otherwise, the file is streamed through our proxies and queued for caching.
Authorization
default AuthorizationBearer <token>
Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys
In: header
Path Parameters
account*string
The Account ID
cdnUrl*string
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
Response Body
text/plain
curl -X GET "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/media/download/""<Streamed binary of the downloaded file>"