> For the complete documentation index, see [llms.txt](https://docs.thesports.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thesports.com/lol/websocket/websocket-sample-data.md).

# WebSocket Sample Data

## Real-time match statistics

```json
[
    {
        "match_id": "65mk6ztowxn5q1g",
        "box_num": 2,
        "status_id": 2,
        "single_status_id": 2,
        "timer": [
            0,
            0,
            1587547266,
            189,
            0
        ],
        "home": {
            "id": "dn1m1eku4y9oqoe",
            "side": 1,
            "score": 0,
            "stats": [
                0,
                0,
                4500,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "stats2": [
                6,
                0,
                3,
                2,
                0,
                1,
                0,
                0,
                0,
                0
            ],
            "pick": [
                "gy0or59wbg6mwzv",
                "kdj2ryy6tnkr1zp"
            ],
            "ban": [
                "gy0or59wbg6mwzv",
                "kdj2ryy6tnkr1zp"
            ],
            "players": [
                {
                    "id": "gy0oy6tnkr1gmwzv",
                    "hero_id": "gx7lm797bwnr2wd",
                    "stats": [
                        5,
                        1,
                        1,
                        2,
                        8,
                        12
                    ],
                    "equipments": [
                        "",
                        "p4jwq2ekupq0veo",
                        "z8yomow3tkwr0j6"
                    ],
                    "spells": [
                        "",
                        "l965mk6zt2q1ge4"
                    ]
                }
            ]
        },
        "away": {
            "id": "dn1m1eku4y9oqoe",
            "side": 1,
            "score": 0,
            "stats": [
                0,
                0,
                4500,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "stats2": [
                6,
                0,
                3,
                2,
                0,
                1,
                0,
                0,
                0,
                0
            ],
            "pick": [
                "gy0or59wbg6mwzv",
                "kdj2ryy6tnkr1zp"
            ],
            "ban": [
                "gy0or59wbg6mwzv",
                "kdj2ryy6tnkr1zp"
            ],
            "players": [
                {
                    "id": "gy0oy6tnkr1gmwzv",
                    "hero_id": "gx7lm797bwnr2wd",
                    "stats": [
                        5,
                        1,
                        1,
                        2,
                        8,
                        12
                    ],
                    "equipments": [
                        "",
                        "p4jwq2ekupq0veo",
                        "z8yomow3tkwr0j6"
                    ],
                    "spells": [
                        "",
                        "l965mk6zt2q1ge4"
                    ]
                }
            ]
        },
        "economy_lines": [
            "1:124",
            "3:414",
            "4:112"
        ],
        "event": [
            {
                "time": 80,
                "type": 1,
                "side": 1,
                "killer": "",
                "victim": "",
                "monster_type": 1
            }
        ]
    }
]
```

## field description

```json
{
    "match_id": "65mk6ztowxn5q1g",//Match id
    "box_num": 2,//Current inning
    "status_id": 2,//Match status, please refer to Status Code -> Match Status
    "single_status_id": 2,//Current game status, please refer to Status Code -> Match Status
    "timer": [//Match time field description
        0,//Whether to go to the watch, 1. Yes, 0. No
        0,//Whether to count down, 1. Yes, 0. No
        1587547266,//Data release time
        189,//Time difference between start time and release time (seconds)
        0 //Compatible, ignore
    ],
    "home": {//Home team data
        "id": "dn1m1eku4y9oqoe",//Team id
        "side": 1,//Owner, 1. blue team, 2. red team
        "score": 0,//Total score (match score)
        "stats": [//Statistics field description
            0,//Kills
            0,//Destroyed number of towers
            4500,//Economy
            0,//Destroyed number of crystals
            0,//Win this single inning, 1. Yes, 0. No
            0,//Number of dragon drakes killed
            0,//Number of baron nahsores killed
            0,//First Blood, 1. Yes, 0. No
            0,//First Tower, 1. Yes, 0. No
            0,//First Five Kill, 1. Yes, 0. No
            0,//First Ten Kill, 1. Yes, 0. No
            0,//First Drake, 1. Yes, 0. No
            0//First Nahsor, 1. Yes, 0. No
        ],
        "stats2": [//Statistics field description
            11,//Deaths
            6,//Assists
            3,//Voidgrubs
            0,//Atakhans
            0,//First Voidgrubs, 1. Yes, 0. No
            0,//First Atakhans, 1. Yes, 0. No
            0,//Placeholder, Ignore
            0,//Placeholder, Ignore
            0,//Placeholder, Ignore
            0 //Placeholder, Ignore
        ],
        "pick": [//Pick hero ids
            "gy0or59wbg6mwzv",//Hero id
            "kdj2ryy6tnkr1zp"
        ],
        "ban": [//Ban hero ids（No data empty）
            "gy0or59wbg6mwzv",//Hero id
            "kdj2ryy6tnkr1zp"
        ],
        "players": [//Player data
            {
                "id": "gy0oy6tnkr1gmwzv",//Player id
                "hero_id": "gx7lm797bwnr2wd",//Hero id
                "stats": [Player statistics field description
                    5,//Position, 1. ADC, 2. Middle, 3. Top, 4. Jungle, 5. Support, other unknown
                    1,//Kills
                    1,//Deaths
                    2,//Assists
                    8,//CS
                    12//Hero level
                ],
                "equipments": [//Equipment ids（"" - Unknown, placeholder）
                    "",
                    "p4jwq2ekupq0veo",
                    "z8yomow3tkwr0j6"
                ],
                "spells": [//Summoner skills ids（"" - Unknown, placeholder）
                    "",
                    "l965mk6zt2q1ge4"
                ]
            }
        ]
    },
    "away": {},//The away team field is the same as home
    "economy_lines": [//Economic curve: the difference between the home team and the away team (Home team - Away team)，Change with time
        "1:124",//Time:economic difference
        "3:414",
        "4:112"
    ],
    "event": [//Match event data
        {
            "time": 80,//Event time
            "type": 1,//Event type, 1. Kill the hero 2. Destroy the tower 3. Destroy the crystal 4. Kill the monster
            "side": 1,//Event side, 1. blue team, 2. red team
            "killer": "",//The id of the killer hero, "" means unknown
            "victim": "",//The id of the hero who was killed, "" means unknown
            "monster_type": 1//Monster type, 1. Baron Nahsor, 2. Infernal Drake, 3. Ocean Drake, 4. Mountain Drake, 5. Cloud Drake, 6. Rift Herald, 7. Elder Drake, 8. Hextech Drake, 9. Alchemy Technology Drake, 10.Voidgrub, 11.Atakhan
        }
    ]
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.thesports.com/lol/websocket/websocket-sample-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
