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

# Scrape media from the OnlyFans CDN

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

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

## Request body

- object
  - `url` string, required — The CDN URL to scrape. **Keep in mind that these URLs expire fast.**
  - `expiration_date` string, nullable — The expiration date of our returned `temporary_url`. Default of 5 minutes.

## 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.dev/onlyfansapi/apis/onlyfans-api.md) · [All operations](https://skmtc.dev/onlyfansapi/apis/onlyfans-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/onlyfansapi/onlyfans-api/revisions/03f828c1cf0d/schema)
