> 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/baseball/websocket/websocket-sample-data.md).

# WebSocket Sample Data

### score

```json
[
    {
        "id": "dn1m16sk04vproe",
        "score": [
            "dn1m16sk04vproe",
            437,
            1,
            {
                "ft": [
                    "0",
                    "0"
                ],
                "p1": [
                    "0",
                    "0"
                ],
                "p2": [
                    "0",
                    "0"
                ],
                "p3": [
                    "0",
                    "0"
                ],
                "h": [
                    "1",
                    "1"
                ]
            }
        ]
    }
]

field description
ft - Total score
p* - Single inning score(* - Number of inning, 1、2、3...)
ot - Overtime score
h - Hit, the total number of hits
e - Error, the number of mistakes made by the entire team on defense
[
    "dn1m16sk04vproe",//Match id
    437,//Match status, please refer to Status code->Match state
    1,//Batting team (stick), 1. Home team, 2. Away team, 0. Unknown
    {
        "ft": [//Total score
            "0",//Home team score
            "0" //Away team score
        ],
        "p1": [//p* - Single inning score(* - Number of inning, 1、2、3...)
            "0",//Home team score
            "0" //Away team score
        ],
        "p2": [
            "0",
            "0"
        ],
        "p3": [
            "0",
            "0"
        ],
        "h": [//h - Hit, the total number of hits
            "1",
            "1"
        ]
    }
]
```

### stats

```json
[
    {
        "id": "dn1m16sk04vproe",
        "stats": [
            [
                0,
                [
                    [
                        601,
                        7,
                        5
                    ],
                    [
                        612,
                        0.226,
                        0.156
                    ]
                ]
            ]
        ]
    }
]

field description
[
    [
        0,//Type, 0-full court, 1-first set, 2-second set, and so on
        [
            [
                601,//Statistic type，please refer to Status code->Team Statistics
                7,//Home team score
                5 //Away team score
            ],
            [
                612,
                0.226,
                0.156
            ]
        ]
    ]
]
```

### players

```json
[
  {
    "id": "y0or56szo07zmwz",
    "players": {
      "home": [
        {
          "id": "4wyrnzso6por86p",
          "stats": [
            [
              613,
              7
            ],
            [
              618,
              0.1
            ],
          ]
        }
      ],
      "away": []
    }
  }
]

Player statistics field description
{
  "id": "4wyrnzso6por86p",//Player id
  "stats": [
    [
      613, //Statistic type，please refer to Status code->Player Statistics
      7    //Value
    ],
    [
      618,
      0.1
    ],
  ]
}
```

### additional

```json
[
  {
    "id": 3792371,
    "extra": {
      "good": 3,
      "bad": 0,
      "base": "011",
      "out": 0
    }
  }
]

Additional data field description
{
  "good": 3,      //Strikes
  "bad": 0,       //Non-Strikes
  "base": "011",  //Number of bases on base (from left to right：1st base, 2nd base, 3rd base, 1 is on base and 0 is not on base)
  "out":          //Outs
}
```


---

# 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/baseball/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.
