Analytics
Get the revenue summary
/v1/analytics/revenueNet revenue over the window, split by order type. Same numbers as the Fansquare dashboard: EUR cents, affiliate revenue under affiliation.
read:analyticscurl 'https://api.fansquare.so/v1/analytics/revenue?start=2026-09-01&end=2026-09-30&timezone=Europe%2FParis' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"total": 1284000,
"currency": "EUR",
"by_type": {
"tip": 312000,
"subscription": 420000,
"subscription_renewal": 238000,
"booking": 0,
"push": 214000,
"mod": 0,
"fan_to_creator": 100000,
"creator_to_fan": 0,
"affiliate": 0,
"affiliation": 0
}
}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.
Response
OK, application/json
totalintegerrequiredTotal net revenue over the window, EUR cents.
currency"EUR"requiredby_typeobjectrequiredNet revenue in EUR cents per order type, every type present and zero-filled (affiliate revenue is grouped under
affiliation).tipintegerrequiredsubscriptionintegerrequiredsubscription_renewalintegerrequiredbookingintegerrequiredpushintegerrequiredmodintegerrequiredfan_to_creatorintegerrequiredcreator_to_fanintegerrequiredaffiliateintegerrequiredaffiliationintegerrequired
curl 'https://api.fansquare.so/v1/analytics/revenue?start=2026-09-01&end=2026-09-30&timezone=Europe%2FParis' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"total": 1284000,
"currency": "EUR",
"by_type": {
"tip": 312000,
"subscription": 420000,
"subscription_renewal": 238000,
"booking": 0,
"push": 214000,
"mod": 0,
"fan_to_creator": 100000,
"creator_to_fan": 0,
"affiliate": 0,
"affiliation": 0
}
}