We just released our native n8n integration!ยป Try now
OnlyFans API
Analytics - Financial

Get Profitability History

Get historical profitability data for a specific account over multiple months.

GET
/api/analytics/financial/profitability/{account}/history
AuthorizationBearer <token>

Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys

In: header

Path Parameters

account*string

The Account ID

Query Parameters

months?integer

Number of months of history to retrieve (1-60, default 12)

Request Body

application/json

account_prefixed_id*string
months?integer

Must be at least 1. Must not be greater than 60.

Response Body

application/json

curl -X GET "https://app.onlyfansapi.com/api/analytics/financial/profitability/acct_XXXXXXXXXXXXXXX/history?months=12" \  -H "Content-Type: application/json" \  -d '{    "account_prefixed_id": "sed"  }'
[
  {
    "year": 2024,
    "month": 1,
    "gross_revenue": 10000,
    "net_revenue": 8000,
    "profit": 6000,
    "margin": 75
  }
]