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

# WebSocket Sample Data

### score

```json
[
	{
		"id": "4jwq2pf61y04m0v",
		"score": [
			"4jwq2pf61y04m0v",
			53,
			2,
			{
				"p1": [
					6,
					7
				],
				"p2": [
					6,
					4
				],
				"p3": [
					3,
					3
				],
				"x1": [
					11,
					13
				],
				"pt": [
					"30",
					""
				],
				"ft": [
					1,
					1
				]
			}
		]
	}
]

Score field description
[
	"4jwq2pf61y04m0v",//Match id
	53,//Match status, please refer to Status code->Match state
	2,//Serving side, 1. Home, 2. Away
	{
		"p1": [//p* - Single set score
			6,//Home team score
			7 //Away team score
		],
		"p2": [
			6,//Home team score
			4 //Away team score
		],
		"p3": [
			3,
			3
		],
		"x1": [//x* - Grab 7 points
			11,
			13
		],
		"pt": [//pt - Real-time score
			"30",
			""
		],
		"ft": [//Total score
			1,
			1
		]
	}
]
```

### stats

```json
[
	{
		"id": "4jwq2pf61y04m0v",
		"stats": [
			[
				0,
				[
					[
						301,
						2,
						2
					],
					[
						311,
						3,
						2
					]
				]
			]
		]
	}
]

Technical Statistics Field Description
[
	[
		0,//Type, 0-full court, 1-first set, 2-second set, and so on
		[
			[
				301,//Statistic type，please refer to Status code->Technical Statistics
				2,//Home team value
				2 //Away team value
			],
			[
				311,
				3,
				2
			]
		]
	]
]
```

### timeline

```json
[
	{
		"id": "4wyrnjf008x4q86",
		"timeline": [
			{
				"set"   : 1,
				"rounds": [
					{
						"round" : 1,
						"score" : {
							"home" : 0,
							"away" : 1,
							"serve": 1
							},
						"points": [
							[
								"0",
								"15"
							],
							[
								"0",
								"30"
							],
							[
								"0",
								"40"
							]
						]
					}
				]
			}
		]
	}
]

Round score timeline Field Description
[
	{
		"set"   : 1,//Type, 1-first set, 2-second set, and so on
		"rounds": [
			{
				"round" : 1,//Type, 1-first round, 2-second round, and so on
				"score" : {//Round score (Real-time round, field does not exist)
					"home" : 0,//Home team score
					"away" : 1,//Away team score
					"serve": 1//Serving side, 1. Home, 2. Away
					},
				"points": [//Round score timeline
					[
						"0",//Home team score
						"15"//Away team score
					],
					[
						"0",
						"30"
					],
					[
						"0",
						"40"
					]
				]
			}
		]
	}
]
```


---

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