Media

[Deprecated] Scrape media from the OnlyFans CDN

Changed on

⚠️ This is a deprecated endpoint. Please use the new "Download media from the OnlyFans CDN" endpoint! Scrapes a https://cdn*.onlyfans.com/* URL or Vault Media ID, and uploads it to the OnlyFans API CDN, where you can view or download the file. Max file size is 500MB

post/api/{account}/media/scrape

Request

  • Base URL
    https://app.onlyfansapi.com
  • URL
    https://app.onlyfansapi.com/api/{account}/media/scrape
  • Auth
    HTTP bearer

Request body

urlstring nullable

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

media_idinteger nullable

The OnlyFans Vault Media ID. Can be used instead of the url.

file_type'full' | 'thumb' | 'preview' | 'squarePreview' nullable

The file type to scrape. Only allowed when using media_id.

expiration_datestring nullable

The expiration date of our returned temporary_url. Default of 5 minutes. Must be null if public is true.

publicboolean nullable

Set to true if you want to have the file uploaded to our public CDN (no signed URL needed to access). Default is false. Must be null if expiration_date is set.

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",
  "media_id": 1234567890,
  "file_type": "full",
  "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

    • breaking

      the response property / became nullable for the status

    • info

      api operation id scrapeMediaFromTheOnlyFansCDN removed and replaced with DeprecatedScrapeMediaFromTheOnlyFansCDN

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      request body became optional

    • info

      the request property became nullable

    • info

      the request property became optional