Analytics - Financial
Get Revenue Forecast
Generate revenue or churn forecasts using statistical models (Moving Average, Linear Regression, ARIMA, SARIMA).
Authorization
default AuthorizationBearer <token>
Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys
In: header
Request Body
application/json
account_ids*array<string>
Array of account prefixed IDs
metric*string
The metric to forecast
Value in
"revenue" | "churn_percentage"model*string
The forecasting model to use
Value in
"moving_average" | "linear_regression" | "arima" | "sarima"historical_days*integer
Number of historical days to analyze (30-730)
forecast_days*integer
Number of days to forecast (7-365)
Response Body
application/json
curl -X POST "https://app.onlyfansapi.com/api/analytics/financial/forecast" \ -H "Content-Type: application/json" \ -d '{ "account_ids": [ "acc_abc123", "acc_def456" ], "metric": "revenue", "model": "linear_regression", "historical_days": 90, "forecast_days": 30 }'{
"metric": "revenue",
"model": "linear_regression",
"historical": [
{
"date": "2024-01-01",
"value": 500
}
],
"forecast": [
{
"date": "2024-02-01",
"value": 550
}
]
}