Analytics
Get the revenue timeseries
/v1/analytics/revenue/timeseriesBucketed net revenue and subscriptions for charts, gap-filled (every bucket of the window is present, zero-filled by type). With include=subscribers, each bucket also counts its new and renewing subscribers (subscribers): the daily history of GET /v1/analytics/creators in one request. Buckets are timezone-correct across DST. granularity defaults to a sensible value for the window size (≤2d: hour, ≤31d: day, ≤90d: week, else month). Each bucket size caps how wide the window may be (hour ≤ 7 days, day ≤ 365 days, week ≤ 365 days, month ≤ 365 days); a wider window is rejected with 400 rather than silently truncated, so fetch older history with additional requests.
read:analyticscurl 'https://api.fansquare.so/v1/analytics/revenue/timeseries?start=2026-09-01&end=2026-09-30&timezone=Europe%2FParis&granularity=day&breakdown=creator' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"data": [
{
"date": "2026-08-31T22:00:00.000Z",
"total": 41200,
"by_type": {
"tip": 9800,
"subscription": 14000,
"subscription_renewal": 7900,
"booking": 0,
"push": 6500,
"mod": 0,
"fan_to_creator": 3000,
"creator_to_fan": 0,
"affiliate": 0,
"affiliation": 0
},
"by_creator": {
"m81IhLxdhzDGYs54rNp2": 41200
},
"subscribers": {
"new": 1,
"renewal": 1
},
"subscribers_by_creator": {
"key": {
"new": 1,
"renewal": 1
}
}
}
],
"granularity": "day"
}Parameters
Headers
Fansquare-VersionstringrequiredAPI version to pin. Accepts the mineral name or the release date of a version.
Query
startstringrequiredFirst day of the window (inclusive), e.g.
2026-07-01. Interpreted intimezone. A date-time is accepted too and floored to its local day.endstringrequiredLast day of the window (inclusive: the whole day is covered), e.g.
2026-07-31. Interpreted intimezone. The window cannot exceed 365 days (and less for the finer bucket sizes of the timeseries endpoint); fetch older history with additional requests.timezonestringIANA timezone the window and buckets are computed in, canonical
Area/Locationform (e.g.Europe/Paris). Abbreviations likeCETare rejected. Defaults to UTC.creator_idsstringRestrict to these creators (Fansquare ids from GET /v1/creators). Omit for every creator the key can see. Comma-separated, 50 max.
exclude_disconnected_creatorsstringtrue: leave out the creators whose MYM account is not connected (disconnected, or an expired key). Omit or false: they count, like every creator the key can see.
ValuestruefalsegranularitystringBucket size. Maximum window per bucket size:
hour≤ 7 days,day≤ 365 days,week≤ 365 days,month≤ 365 days.Valueshourdayweekmonthbreakdown"creator"Adds the per-creator revenue (
by_creator) to each bucket, and withinclude=subscribersthe per-creator subscriptions (subscribers_by_creator).include"subscribers"subscribers: adds the new and renewing subscribers of each bucket (subscribers). Off by default: it reads the window a second time.user_idsstringOnly count the revenue and the subscriptions attributed to these employees (Fansquare user ids from GET /v1/employees). Comma-separated, 50 max.
Response
OK, application/json
dataarray of objectsrequireddatestringrequiredBucket start instant, ISO 8601 UTC. Buckets are aligned on local midnights/hours in
timezone.format date-timetotalintegerrequiredNet revenue of the bucket, EUR cents.
by_typeobjectrequiredNet revenue in EUR cents per order type, every type present and zero-filled (affiliate revenue is grouped under
affiliation;affiliateis kept for compatibility and is always 0).tipintegerrequiredsubscriptionintegerrequiredsubscription_renewalintegerrequiredbookingintegerrequiredpushintegerrequiredmodintegerrequiredfan_to_creatorintegerrequiredcreator_to_fanintegerrequiredaffiliateintegerrequiredDeprecated: always 0, affiliate revenue is counted under
affiliation.affiliationintegerrequired
by_creatormap of integersOnly with
breakdown=creator: net revenue per creator id (sparse, absent creators earned 0).subscribersobjectOnly with
include=subscribers: the subscriptions of the bucket, counted per creator then added up: a fan subscribed to two creators counts once for each. Same definition assubscribersof GET /v1/analytics/creators, so the days of a window add up to its total, except a fan who subscribes twice to the same creator within the window (once for the window, once per day here).newintegerrequiredDistinct fans with a first subscription (
subscriptionorder) in the bucket.renewalintegerrequiredDistinct fans with a subscription renewal (
subscription_renewalorder) in the bucket.
subscribers_by_creatormap of objectsOnly with
include=subscribersandbreakdown=creator: the subscriptions of the bucket per creator id (sparse, an absent creator had neither a new subscription nor a renewal).
granularitystringrequiredThe bucket size actually used.
Valueshourdayweekmonth
curl 'https://api.fansquare.so/v1/analytics/revenue/timeseries?start=2026-09-01&end=2026-09-30&timezone=Europe%2FParis&granularity=day&breakdown=creator' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"data": [
{
"date": "2026-08-31T22:00:00.000Z",
"total": 41200,
"by_type": {
"tip": 9800,
"subscription": 14000,
"subscription_renewal": 7900,
"booking": 0,
"push": 6500,
"mod": 0,
"fan_to_creator": 3000,
"creator_to_fan": 0,
"affiliate": 0,
"affiliation": 0
},
"by_creator": {
"m81IhLxdhzDGYs54rNp2": 41200
},
"subscribers": {
"new": 1,
"renewal": 1
},
"subscribers_by_creator": {
"key": {
"new": 1,
"renewal": 1
}
}
}
],
"granularity": "day"
}