[Deprecated] Scrape media from the OnlyFans CDN
**⚠️ 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**
Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys
In: header
Path Parameters
The Account ID
The CDN URL to scrape. Keep in mind that these URLs expire fast.
The OnlyFans Vault Media ID. Can be used instead of the url.
The file type to scrape. Only allowed when using media_id.
"full" | "thumb" | "preview" | "squarePreview"The expiration date of our returned temporary_url. Default of 5 minutes. Must be null if public is true.
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 Body
curl -X POST "https://app.onlyfansapi.com/api/string/media/scrape" \
-H "Content-Type: application/json" \
-d '{}'{
"temporary_url": "https://ofapi-media-prod.nyc3.digitaloceanspaces.com/123/600x400_123.jpg",
"expiration_date": "2025-01-01T00:00:00.000000Z"
}{
"error": "ONLYFANS_COM_ERROR",
"message": "OnlyFans returned an unknown error.: [403]",
"description": "This error happened most probably because of a bug in the OnlyFans.com API or you sent wrong parameters (like a non-existing user id).",
"onlyfans_response": {
"status": 403,
"body": null
},
"_meta": {
"_credits": {
"used": 1,
"balance": 123,
"note": "OnlyFans returned an error, but we still had to make an API request to OnlyFans.com"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": 50000,
"remaining_minute": 999,
"remaining_day": 50000
}
}
}