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

# WebSocket Sample Data

### score

```json
[
    {
        "id": "23xmv1t053x0mg8",
        "score": [
            "23xmv1t053x0mg8",
            4,
            372,
            [
                23,
                9,
                0,
                0,
                0
            ],
            [
                14,
                5,
                0,
                0,
                0
            ]
        ],
        "timer": [
            1,
            1,
            1699500201,
            372
        ]
    }
]

Score field description
[
	"23xmv1t053x0mg8",//Match id
	4,//Match status，please refer to Status Code -> Match Status
	372, //Remaining time of the match section (seconds)
	[//Hone team data
		23,//Section 1 Score
		9,//Section 2 Score
		0,//Section 3 Score
		0,//Section 4 Score
		0//Overtime score
	],
	[//Away team score, same format as home team
		14,
		5,
		0,
		0,
		0
	]
]

Timer field description
[
  1,//Whether to run seconds, 1-yes, 0-no
  1,//Whether to count down, 1-yes, 0-no
  1699500201,//Update time
  372 //Remaining time of current section (seconds)
]

Overtime score field description(over_time_scores)
//This field is only available for more than 1 extra time, and each bit is the score of 1 extra time.
[
	[//Hone team
	9,  //overtime scores in the first quarter
	10, //overtime scores in the second quarter
	11  //overtime score in the nth quarter
	],
	[//Away team, same format as home team
	9,
	10,
	20
	]
]
```

### stats

```json
[
    {
        "id": "23xmv1t053x0mg8",
        "stats": [
            [
                1,
                1,
                5
            ]
        ]
    }
]

Technical Statistics Field Description
[
  [
    1,//Type，see status code -> technical statistics
    8,//Home team value
    10//Away team value
  ],
  [
    4,//The number of pauses, the remaining number of pauses in the current section, reset in the next section, need to record by yourself
    2,
    1
  ],
  [
    5,//The number of fouls, the number of fouls in the current quarter, reset in the second quarter, need to record by yourself
    3,
    5
  ]
]
```

### players

```json
[
	{
		"id": "pxwrx5t382n7qyk",
		"players": [
			[
				[
					"y0or5gtllpkqwzv",
					"Hiromu Kitagawa",
					"https://img.thesports.com/basketball/player/a527b8991e5c9c10d31c8b1260307ca1.png",
					"6",
					"7^2-4^0-2^0-0^0^2^2^0^1^0^0^0^0^4^1^1^0"
				]
			],
			[
				[
					"y0or5gtl447qwzv",
					"Julian Mavunga",
					"https://img.thesports.com/basketball/player/e19059b62c9f7a4ab466a5691e68dfd5.png",
					"32",
					"7^2-6^0-3^3-4^0^1^1^1^0^0^1^0^0^7^1^1^0"
				]
			],
			"0^7-14^1-5^2-2^2^5^7^3^2^0^2^5^0^17",
			"0^3-9^1-4^7-8^2^5^7^2^1^0^4^1^0^14"
		]
	}
]

Lineup field description
[
	[//Home team
	  [
		"y0or5gtllpkqwzv",//Player id
		"Hiromu Kitagawa",//Player name
		"https://img.thesports.com/basketball/player/a527b8991e5c9c10d31c8b1260307ca1.png",//Player logo
		"5",//Number
		"27^1-9^1-5^0-0^0^7^7^4^0^0^1^2^+2^3^1^0^1"//Duration of presence^Hits-Shots^Three-pointers made-Three-point shots^Free throws made-Free throw shots^Offensive rebound^Defensive rebound^Total rebounds^Assists^Steals^Blocks^Number of errors^Individual fouls^+/- value^Score^Whether to play (1-to play，0-not to play)^Whether on the field (0-on the field，1-not on the field) (used in the game)^Whether it is a substitute (1-substitute，0-starter)
	  ],
	]
	[//Away team, same as home team
	],
	"0^37-86^9-30^11-19^7^39^46^24^12^4^13^18^0^94",//Home team data
	"0^33-89^9-34^10-15^10^44^54^20^8^2^16^15^0^85"//Away team data：(Compatible ignore)^Hits-Shots^Three-pointers made-Three-point shots^Free throws made-Free throw shots^Offensive rebound^Defensive rebound^Total rebounds^Assists^Steals^Blocks^Number of errors^Individual fouls^(Compatible ignore)^Score
]
```

### tlive

```json
[
  {
    "id": "4jwq25tz9209q0v",
    "tlive": [
      [
        "3^12:00^2^0^54-57^Gradey Dick enters the game for Jonathan Mogbo^78020,79005^0^0^0^0,0",
        "3^11:45^1^0^54-59^De'Aaron Fox makes 2pt floating jump shot^12363^1^1^2^22,5",
        "3^11:28^1^0^54-59^Keegan Murray shooting foul^55801^0^0^0^21,2",
      ],
      []
    ]
  }
]

match text field description
The tlive field is a list, representing data with different numbers of sections
[
  [//Section One
    "3^12:00^2^0^54-57^Gradey Dick enters the game for Jonathan Mogbo^78020,79005^0^0^0^0,0", //(Compatible Ignore)^Time^Home and Away Team (0-Neutral, 1-Home Team, 2-Away Team)^0^Away Team Score-Home Team Score^Description^(Compatible Ignore)
    "3^11:45^1^0^54-59^De'Aaron Fox makes 2pt floating jump shot^12363^1^1^2^22,5",
    "3^11:28^1^0^54-59^Keegan Murray shooting foul^55801^0^0^0^21,2",
  ],
  [//Subsequent sections, same as the first section
  ]
]
```


---

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