Count Real-time Core Device Data of the Day

Last Updated on : 2026-03-30 06:51:50Copy for LLMView as MarkdownDownload PDF

Based on the device ID, count the core device data of the day in real time.

API address

GET: /v1.0/cloud/agent/ai/chat/b/devices/{device_id}/statistical-data

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringpathtrueThe ID of the specified device.

Return parameter

Parameter nameTypeDescription
chat_countIntegerThe number of chats.
chat_minutesIntegerThe total chat duration, in minutes.
dateStringThe date.
toolListThe number of times the tool has been invoked.
emotionListThe statistical result of emotions.

Description of emotion

Parameter nameTypeDescription
emotion_nameStringThe emotion name.
emotion_codeStringThe emotion code.
emotion_countIntegerThe number of times the emotion has been invoked.

Description of tool

Parameter nameTypeDescription
tool_nameStringThe skill name.
tool_codeStringThe skill code.
tool_countIntegerThe number of times the skill has been invoked.

Request example

GET: /v1.0/cloud/agent/ai/chat/b/devices/{device_id}/statistical-data
{
  "device_id": "6c3585ebfe301b40a8u***"
}

Return example

{
    "result": [
        {
            "date": "20260326",
            "chat_minutes": 77,
            "tool": [
                {
                    "tool_name": "Emotion",
                    "tool_count": 69,
                    "tool_code": "emo"
                },
                {
                    "tool_name": "Intermediate State Response Skill",
                    "tool_count": 36,
                    "tool_code": "intermediate_reply"
                },
                {
                    "tool_name": "Smart Home Skill v1.5",
                    "tool_count": 34,
                    "tool_code": "smart_home_v1.5"
                },
                {
                    "tool_name": "Roleplay",
                    "tool_count": 1,
                    "tool_code": "ai_endpoint_control"
                },
                {
                    "tool_name": "Calendar Skill",
                    "tool_count": 1,
                    "tool_code": "calendar"
                }
            ],
            "emotion": [
                {
                    "emotion_count": 36,
                    "emotion_code": "NEUTRAL"
                },
                {
                    "emotion_count": 20,
                    "emotion_code": "HAPPY"
                },
                {
                    "emotion_count": 6,
                    "emotion_code": "THINKING"
                },
                {
                    "emotion_count": 4,
                    "emotion_code": "CONFUSED"
                },
                {
                    "emotion_count": 2,
                    "emotion_code": "RELAXED"
                },
                {
                    "emotion_count": 1,
                    "emotion_code": "ANNOYED"
                }
            ],
            "chat_count": 71
        }
    ],
    "t": 1753707608368,
    "success": true
}

Error code

For more information, see error code.