Chat
Chat Chart
Returns a time-series for one chat stat over the requested window, with per-bucket values for both the current window and the previous window (same length, immediately before). Use for line/bar charts. For the full 11-stat headline card in a single call, use Chat Overview. Requires permission api_chat_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
stat*stringWhich stat to chart. One of
outgoingmessages,monthlychattingfans,monthlychatearnings,chatafv,chatearnings,averagetip,averagemessage,tips,messages,tipscount,messagescount.fromstringWindow start (UTC). Default 30 days ago. Accepts ISO 8601 or relative shorthand (
-30days).tostringWindow end (UTC). Default now. Must be after
from.granularitystringBucket size —
hour,day,week, ormonth. Defaults:hourunder a day,monthover four months, otherwiseday.monthlychatearnings,monthlychattingfans, andchatafvare day-only; other granularities are treated asdayon those stats.revenue_typestringnet(default) orgross. Same semantics as Chat Overview. Ignored for count stats and for always-net rolling stats.
curl --request GET "https://public-api.buffmetrics.com/v1/acct_XXXXX/chat/chart?stat=sample_stat&from=sample_from&to=sample_to" \
--header "Authorization: Bearer YOUR_API_KEY"Response
200