Retention
Get Retention For Project
GET
apiKeyAuthheader
x-api-key<token>FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.
idOrSlug*stringgranularity?stringValue in
"day""week""month"cohortType?stringValue in
"first""recurring"returnType?stringValue in
"exact""on_or_after"cohortFrom*stringcohortTo*stringperiodCount?stringincludeHasMore?stringsource*stringValue in
"web""mods"startEvent?stringLength
1 <= length <= 200returnEvent?stringLength
1 <= length <= 200timezone?stringfilterFields?string|array<string>filterOperators?|array<>filterValues?string|array<string>segment?string|array<string>excludeSegment?string|array<string>RetentionCohortPage
application/json- response
cohorts*array<>hasMore*booleancurl -X GET 'https://api.faststats.dev/v0/projects/string/retention?cohortFrom=string&cohortTo=string&source=web'Example Response
{ "cohorts": [ { "cohort": "string", "cohortDate": "string", "users": 0, "periods": [ { "period": 0, "usersRetained": 0, "retentionRate": 0 } ] } ], "hasMore": true}curl -X GET 'https://api.faststats.dev/v0/projects/string/retention?cohortFrom=string&cohortTo=string&source=web'{
"cohorts": [
{
"cohort": "string",
"cohortDate": "string",
"users": 0,
"periods": [
{
"period": 0,
"usersRetained": 0,
"retentionRate": 0
}
]
}
],
"hasMore": true
}