/api/stats
Info
Requires authentication
GET Get current statistics
Query
Field Name | Type | Description |
---|---|---|
amount | number | The amount of stats to get |
200 Ok (JSON Array)
Field Name | Type | Description |
---|---|---|
id | number | id of the stats object |
createdAt | date | The date the stats object was created |
data | object | The stats data |
max_timestamp | date | The max timestamp of the stats data |
Data
Field Name | Type | Description |
---|---|---|
size | string | Human readable size of uploads |
size_num | number | Size of uploads in bytes |
count | number | Total number of files |
count_users | number | Total number of users |
views_count | number | Total number of views |
types_count | object | Count of each mimetype |
count_by_user | object | Count of each user |
Types Count
Field Name | Type | Description |
---|---|---|
mimetype | number | The mimetype |
count | number | The count of the mimetype |
Count By User
Field Name | Type | Description |
---|---|---|
username | number | The username |
count | number | The count |
[{"id": 454,"createdAt": "2022-12-02T00:18:31.955Z","data": {"size": "318.5 MB","count": 471,"size_num": 333996722,"count_users": 14,"types_count": [{"count": 210,"mimetype": "image/png"},{"count": 119,"mimetype": "application/octet-stream"}],"views_count": 5842,"count_by_user": []},"max_timestamp": "2022-12-02T00:18:31.955Z"},{"id": 453,"createdAt": "2022-12-01T17:41:38.738Z","data": {"size": "318.5 MB","count": 470,"size_num": 333975064,"count_users": 14,"types_count": [{"count": 209,"mimetype": "image/png"},{"count": 119,"mimetype": "application/octet-stream"}],"views_count": 5842,"count_by_user": []},"max_timestamp": "2022-12-01T17:41:38.738Z"}]
400 Bad Request (JSON)
invalid amount
- Theamount
field is not a number, or couldn't be parsed as one.
POST Force a stats update
200 Ok (JSON)
Same response as this
403 Unauthorized (JSON)
not an administrator
- You are not an administrator, therefore you cannot force a stats update.
Last updated: 9/18/2023
Edit this page on GitHub