Get User Device Activity

API Documentation

API Route

{{apiBase}}/v2/device/user_activity/{userid}

Authentication

  • Required: Yes

  • Method: Send the API key as APIKEY in the request headers.

Request Details

  • Method: GET

Path Parameters:

  • userid: (Required) User ID to specify.

Optional Query Parameters:

  • sso: Single Sign-On (SSO) value.

Responses

Success:

{
    "status": 200,
    "timestamp": 1694597541,
    "time": 1.05,
    "ip": "182.187.142.133",
    "message": "User activity found",
    "data": [
        {
            "userid": "303",
            "session_id": "1694594281495105451",
            "app": "androidtv_app",
            "os": "android",
            "device_type": "tv",
            "device_name": "google sdk_google_atv64_amati_arm64",
            "timestamp": "13 September 2023 08:38:01 AM",
            "count": 4,
            "device_uuid": "STT9.221129.002",
            "last_active": "1 minute ago",
            "content_id": "5207",
            "content_type": "1",
            "activity_status": "not active"
        }, {...}
    ]
}

Error: No User Activity Found

{
    "status": 400,
    "timestamp": 1694597529,
    "time": 1.078,
    "ip": "182.187.142.133",
    "message": "No user activity found",
    "error_code": "resource_not_found",
    "data": []
}

Error: No User Found

{
    "status": 400,
    "timestamp": 1694597325,
    "time": 0.126,
    "ip": "182.187.142.133",
    "message": "No user found",
    "error_code": "resource_not_found",
    "data": []
}

Last updated