---
title: "[Deprecated] Scrape media from the OnlyFans CDN"
method: POST
path: "/api/{account}/media/scrape"
tags: ["Media"]
---

# [Deprecated] Scrape media from the OnlyFans CDN

`POST /api/{account}/media/scrape`

**⚠️ 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**

## Request body

- object
  - `url` string, nullable — The CDN URL to scrape. **Keep in mind that these URLs expire fast.**
  - `media_id` integer, 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_date` string, nullable — The expiration date of our returned `temporary_url`. Default of 5 minutes. Must be null if `public` is true.
  - `public` boolean, 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.

## Response `200`

- object
  - `temporary_url` string
  - `expiration_date` string

## Other responses

- `500` — The provided CDN URL is expired, invalid, or the file is not available anymore.

---

[API](https://skmtc.net/onlyfansapi/apis/onlyfans-api.md) · [All operations](https://skmtc.net/onlyfansapi/apis/onlyfans-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onlyfansapi/onlyfans-api/revisions/4a99d36f28a3/schema)
