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"
}'
{
"temporary_url": "https://ofapi-media-prod.nyc3.digitaloceanspaces.com/123/600x400_123.jpg",
"expiration_date": "2025-01-01T00:00:00.000000Z"
}
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
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"
}'
{
"temporary_url": "https://ofapi-media-prod.nyc3.digitaloceanspaces.com/123/600x400_123.jpg",
"expiration_date": "2025-01-01T00:00:00.000000Z"
}
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
The Account ID
The response is of type object
.