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?|nullcohortType?|nullreturnType?|nullcohortFrom*stringcohortTo*stringperiodCount?string|nullincludeHasMore?string|nullsource*stringValue in
"web""mods"startEvent?|nullreturnEvent?|nulltimezone?string|nullfilterFields?string|array<string>|nullfilterOperators?|array<>|nullfilterValues?string|array<string>|nullsegment?string|array<string>|nullexcludeSegment?string|array<string>|nullRetentionCohortPage
application/json- response
cohorts*array<>hasMore*booleanExample Request
curl -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}