We just released our native n8n integration!ยป Try now
OnlyFans API

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
/api/{account}/media/download/{cdnUrl}
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>"