Media

Scrape media from the OnlyFans CDN

Scrapes a https://cdn*.onlyfans.com/* URL and uploads it to the OnlyFans API CDN, so that you can view or download the file. Max file size is 500MB

post/api/{account}/media/scrape

Request body

urlstring required

The CDN URL to scrape. Keep in mind that these URLs expire fast.

expiration_datestring nullable

The expiration date of our returned temporary_url. Default of 5 minutes.

Example request

{
  "url": "https://cdn2.onlyfans.com/files/e/e5/123/600x400_123.jpg?Tag=2&u=123&Policy=123&Signature=signature&Key-Pair-Id=123",
  "expiration_date": "2025-01-01 00:00:00"
}

Response

temporary_urlstring
expiration_datestring

Example response

{
  "temporary_url": "https://ofapi-media-prod.nyc3.digitaloceanspaces.com/123/600x400_123.jpg",
  "expiration_date": "2025-01-01T00:00:00.000000Z"
}

Changes