POST
/
api
/
{account}
/
media
/
scrape
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"
}

Authorizations

Authorization
string
header
required

You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.

Path Parameters

account
string
required

The Account ID

Body

application/json

Response

200
application/json

The response is of type object.