FanslyMedia
Download Media from the Fansly CDN
Downloads a file from a https://cdn*.fansly.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 redirected to the original signed Fansly URL and queued for caching, so a subsequent call serves it from edge.
Authorization
default AuthorizationBearer <token>
Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys
In: header
Path Parameters
fanslyAccount*string
The Fansly Account ID
cdnUrl*string
Optional parameter. The Fansly CDN URL to download. These URLs are time-limited (Expires parameter), so download promptly after fetching them.
Response Body
text/plain
application/json
curl -X GET "https://app.onlyfansapi.com/api/fansly/fansly_acct_XXXXXXXXXXXXXXX/media/download/""<Redirect to the cached CDN file or the original Fansly URL>"{
"error": "Unauthorized. Go to https://app.onlyfansapi.com/api-keys to get your API key."
}