API Keys
Banking
Connect OnlyFans Account
Mass Messaging
Media Vault
Media Vault Lists
Notifications
Payouts
Post Comments
Post Labels
Posts
Public Profiles
Saved For Later (Messages)
Saved For Later (Posts)
Statistics | Reach
Statistics | Statements
Tracking Links
Transactions
Trial Links
Users
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
Scrape media from the OnlyFans CDN
Copy
curl --request POST \
--url https://app.onlyfansapi.com/api/{account}/media/scrape \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"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"
}'
Copy
{
"temporary_url": "https://ofapi-media-prod.nyc3.digitaloceanspaces.com/123/600x400_123.jpg",
"expiration_date": "2025-01-01T00:00:00.000000Z"
}
Authorizations
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
Path Parameters
The Account ID
Body
application/json
Response
200
application/json
The response is of type object
.
Scrape media from the OnlyFans CDN
Copy
curl --request POST \
--url https://app.onlyfansapi.com/api/{account}/media/scrape \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"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"
}'
Copy
{
"temporary_url": "https://ofapi-media-prod.nyc3.digitaloceanspaces.com/123/600x400_123.jpg",
"expiration_date": "2025-01-01T00:00:00.000000Z"
}
Assistant
Responses are generated using AI and may contain mistakes.