Analytics
List analytics per employee
/v1/analytics/employeesAttributed net/gross revenue per active employee over the window, sorted by net revenue. Resolve names with GET /v1/employees. unattributed_amount is revenue no employee is credited for; former_employees_amount is revenue attributed to since-removed employees.
read:analyticscurl 'https://api.fansquare.so/v1/analytics/employees?start=2026-09-01&end=2026-09-30&timezone=Europe%2FParis' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"data": [
{
"user_id": "ki9DZXxpgGz7KiDqHj88eCxHg56W",
"gross_amount": 927500,
"net_amount": 742000,
"by_type": {
"tip": 300000,
"subscription": 128000,
"subscription_renewal": 0,
"booking": 0,
"push": 214000,
"mod": 0,
"fan_to_creator": 100000,
"creator_to_fan": 0,
"affiliate": 0,
"affiliation": 0
}
}
],
"unattributed_amount": 542000,
"former_employees_amount": 0,
"currency": "EUR"
}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
dataarray of objectsrequireduser_idstringrequiredFansquare employee id.
gross_amountintegerrequiredAttributed gross revenue, EUR cents.
net_amountintegerrequiredAttributed net revenue, EUR cents.
by_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
unattributed_amountintegerrequiredNet revenue with no employee attribution, EUR cents.
former_employees_amountintegerrequiredNet revenue attributed to removed employees, EUR cents.
currency"EUR"required
curl 'https://api.fansquare.so/v1/analytics/employees?start=2026-09-01&end=2026-09-30&timezone=Europe%2FParis' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"data": [
{
"user_id": "ki9DZXxpgGz7KiDqHj88eCxHg56W",
"gross_amount": 927500,
"net_amount": 742000,
"by_type": {
"tip": 300000,
"subscription": 128000,
"subscription_renewal": 0,
"booking": 0,
"push": 214000,
"mod": 0,
"fan_to_creator": 100000,
"creator_to_fan": 0,
"affiliate": 0,
"affiliation": 0
}
}
],
"unattributed_amount": 542000,
"former_employees_amount": 0,
"currency": "EUR"
}