Earnings
Get Earnings Chart
Returns the per-source earnings timeseries that backs the OnlyFans **Statements → Earnings** page — one $ series (chartAmount), one transaction-count series (chartCount), net + gross totals, and OF's percent-change delta vs the previous equal-length window. Bucket granularity (daily vs monthly) is chosen by OnlyFans based on window length. Requires permission api_earnings_read_chart.
https://public-api.buffmetrics.comAuthorization
defaultAuthorizationBearer <token>Send your FansMetric API key as a Bearer token in the Authorization header.
In: header
Path Parameters
account_id*integerOnlyFans numeric account ID.
Query Parameters
bystringRevenue source. One of
total(default),subscribes,tips,post,chat_messages,stream. Vocabulary matches thetypeparameter on [/v1/{account_id}/earnings](/api-reference/earnings/list).start_datestringWindow start. Default 2 years ago, UTC.
YYYY-MM-DD HH:MM:SSor ISO 8601 (theTseparator is normalized to a space). To pull a full lifetime chart, pass thestartDatefrom/me/start-date.end_datestringWindow end. Default end of today, UTC. Same format as
start_date.
curl --request GET "https://public-api.buffmetrics.com/v1/acct_XXXXX/earnings/chart?by=sample_by&start_date=sample_start_date&end_date=sample_end_date" \
--header "Authorization: Bearer YOUR_API_KEY"Response
200