Analytics - Summary
Get Period Comparison
Compare two time periods to analyze performance changes. Returns summary, breakdown, and chart data for the comparison.
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 to compare
period_a*
First period to compare
period_b*
Second period to compare
granularity?string
Comparison granularity
Value in
"months" | "quarters" | "half_years" | "years"stat_type?string
The statistic type to compare
Value in
"totalEarnings" | "subscriptions" | "posts" | "messages" | "tipsPosts" | "tipsMessages" | "streams"Response Body
application/json
curl -X POST "https://app.onlyfansapi.com/api/analytics/summary/comparison" \ -H "Content-Type: application/json" \ -d '{ "account_ids": [ "acc_abc123", "acc_def456" ], "period_a": { "start": "2024-01-01", "end": "2024-03-31" }, "period_b": { "start": "2024-04-01", "end": "2024-06-30" } }'{
"summary": {
"period_a_total": 15000,
"period_b_total": 18000,
"change": 3000,
"change_percentage": 20
},
"breakdown": [],
"chart_data": [],
"period_a_label": "Q1 2024",
"period_b_label": "Q2 2024"
}