# Statistics

# Check

Check if current user is admin

# Resource URL

https://humtog.com/api/admin/check

# Resource Method

GET

# Example Response

true

# States

# Resource URL

https://humtog.com/api/admin/statistics

# Resource Method

GET

# Example Response

{
    "data": {
        "users": {
            "today": 2,
            "week": 2,
            "month": 4,
            "total": 4
        },
        "active_users": {
            "today": 1,
            "week": 2,
            "month": 2,
            "total": 2
        },
        "subscriptions": {
            "today": 1,
            "week": 1,
            "month": 3,
            "total": 3
        },
        "channels": {
            "today": 1,
            "week": 1,
            "month": 7,
            "total": 7
        },
        "comments": {
            "today": 1,
            "week": 3,
            "month": 35,
            "total": 35
        },
        "submissions": {
            "today": 2,
            "week": 3,
            "month": 23,
            "total": 23
        },
        "messages": {
            "today": 0,
            "week": 4,
            "month": 5,
            "total": 5
        },
        "reports": {
            "today": 1,
            "week": 1,
            "month": 1,
            "total": 1
        }
    }
}

# Activities

# Resource URL

https://humtog.com/api/admin/activities

# Resource Method

GET

# Example Response

{
    "data": {
        "id": 100,
        "browser_name": "unknown",
        "browser_version": "unknown",
        "country_short_name": "unknown",
        "country_flag": null,
        "created_at": "2020-05-23 13:57:21",
        "ip_address": "127.0.0.1",
        "activity_type": "created_report",
        "os": "",
        "user": {
            ...
        },
        "subject_id": 2,
        "subject_type": "App\\Report",
        "user_agent": "PostmanRuntime/7.25.0"
    },
    "links": {
        "first": "http://127.0.0.1:8000/api/admin/activities?page=1",
        "last": null,
        "prev": null,
        "next": "http://127.0.0.1:8000/api/admin/activities?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "path": "http://127.0.0.1:8000/api/admin/activities",
        "per_page": 30,
        "to": 30
    }
}