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

Get Earnings Overview

Get earnings overview by category for selected accounts within a date range. Returns total earnings, subscriptions, posts, messages, tips, streams, and content stats.

POST
/api/analytics/summary/earnings
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 get earnings for

start_date*string

The start date (ISO 8601 format)

end_date*string

The end date (ISO 8601 format)

Response Body

application/json

curl -X POST "https://app.onlyfansapi.com/api/analytics/summary/earnings" \  -H "Content-Type: application/json" \  -d '{    "account_ids": [      "acc_abc123",      "acc_def456"    ],    "start_date": "2024-01-01",    "end_date": "2024-12-31"  }'
{
  "total_earnings": 15000.5,
  "subscriptions": 8000,
  "posts": 2500,
  "messages": 3000,
  "tips_posts": 500,
  "tips_messages": 800,
  "streams": 200.5,
  "total_accounts": 5,
  "total_messages": 1250,
  "total_images": 450,
  "total_videos": 120
}