Instance usage statistics
GET <your-unleash-url>/api/admin/instance-admin/statistics/csv
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Provides statistics about various features of Unleash to allow for reporting of usage for self-hosted customers. The response contains data such as the number of users, groups, features, strategies, versions, etc.
Request
Responses
- 200
instanceAdminStatsSchemaCsv
- text/csv
- Schema
- Example
Schema
- string
"OIDCenabled","SAMLenabled","clientApps","contextFields","environments","featureExports","featureImports","featureToggles","archivedFeatureToggles","groups","instanceId","projects","roles","customRootRoles","customRootRolesInUse","segments","strategies","sum","timestamp","users","serviceAccounts","apiTokens","versionEnterprise","versionOSS","activeUsers","productionChanges","previousDayMetricsBucketsCount","maxEnvironmentStrategies","maxConstraints","maxConstraintValues"
true,false,"[{""range"":""allTime"",""count"":15},{""range"":""30d"",""count"":9},{""range"":""7d"",""count"":5}]",6,2,0,0,29,10,3,"ed3861ae-78f9-4e8c-8e57-b57efc15f82b",4,5,2,1,2,8,"some-sha256-hash","2023-07-12T10:00:00.000Z",10,2,"{}","5.1.7","5.1.7","{""last90"":15,""last60"":12,""last30"":10,""last7"":5}","{""last30"":100,""last60"":200,""last90"":200}","{""variantCount"":100,""enabledCount"":200}",20,17,123
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Request
Request
curl / cURL
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics/csv' \
-H 'Accept: text/csv' \
-H 'Authorization: <API_KEY_VALUE>'
python / requests
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics/csv' \
-H 'Accept: text/csv' \
-H 'Authorization: <API_KEY_VALUE>'
go / native
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics/csv' \
-H 'Accept: text/csv' \
-H 'Authorization: <API_KEY_VALUE>'
nodejs / native
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics/csv' \
-H 'Accept: text/csv' \
-H 'Authorization: <API_KEY_VALUE>'
ruby / Net::HTTP
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics/csv' \
-H 'Accept: text/csv' \
-H 'Authorization: <API_KEY_VALUE>'
csharp / httpclient
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics/csv' \
-H 'Accept: text/csv' \
-H 'Authorization: <API_KEY_VALUE>'
php / cURL
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics/csv' \
-H 'Accept: text/csv' \
-H 'Authorization: <API_KEY_VALUE>'
java / OkHttp
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics/csv' \
-H 'Accept: text/csv' \
-H 'Authorization: <API_KEY_VALUE>'
powershell / RestMethod
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics/csv' \
-H 'Accept: text/csv' \
-H 'Authorization: <API_KEY_VALUE>'