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.
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
Request Body
application/json
cdnUrl*string
Must be a valid URL. Must match the regex /^https?://(?:[a-zA-Z0-9-]+.)*onlyfans.com(?=/.
Response Body
text/plain
curl -X GET "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/media/download/" \ -H "Content-Type: application/json" \ -d '{ "cdnUrl": "http://:hkDLN.:d2f5d.onlyfans.com(=" }'"<Streamed binary of the downloaded file>"