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

accountstring

The Account ID

cdnUrlstring

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

cdnUrlstring

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>"