> 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/basic-data/statistical-data-historical-matches.md).

# Statistical data(historical matches)

## Statistical data(historical matches)

> Return statistics for completed historical matches (score, technical statistics, lineup and player data)\<br/>Request limit: Matches within 30 days before today\<br/>\<br/>Request times: 120 times/min

```json
{"openapi":"3.0.1","info":{"title":"Basketball API","version":"1.0.251028"},"tags":[{"name":"BASIC DATA","description":"BASIC DATA"}],"servers":[{"url":"https://api.thesports.com"}],"paths":{"/v1/basketball/match/live/history":{"get":{"tags":["BASIC DATA"],"description":"Return statistics for completed historical matches (score, technical statistics, lineup and player data)<br/>Request limit: Matches within 30 days before today<br/><br/>Request times: 120 times/min","summary":"Statistical data(historical matches)","operationId":"getMatchLiveHistory","parameters":[{"$ref":"#/components/parameters/User"},{"$ref":"#/components/parameters/Secret"},{"name":"uuid","in":"query","description":"Match id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer"},"results":{"$ref":"#/components/schemas/MatchLiveHistory"}}}}}},"404":{"$ref":"#/components/responses/404NotFound"}}}}},"components":{"parameters":{"User":{"name":"user","in":"query","description":"Username, please contact business","required":true,"schema":{"type":"string"}},"Secret":{"name":"secret","in":"query","description":"Key, please contact business","required":true,"schema":{"type":"string"}}},"schemas":{"MatchLiveHistory":{"type":"object","description":"Data details","properties":{"id":{"type":"string","description":"Match id"},"score":{"$ref":"#/deps/schemas/LiveScore"},"over_time_scores":{"$ref":"#/deps/schemas/OtScore"},"stats":{"type":"array","description":"Match statistics","items":{"$ref":"#/deps/schemas/LiveHistoryStats"}},"players":{"$ref":"#/deps/schemas/LivePlayer"},"tlive":{"type":"array","description":"Match text","items":{"$ref":"#/deps/schemas/LiveTlive"}}}}},"responses":{"404NotFound":{"description":"Resource does not exist","content":{"application/json":{"schema":{"$ref":"#/common/schemas/ErrorMsg"}}}}}},"deps":{"schemas":{"LiveScore":{"type":"array","description":"Score field description<br/>example: [\"3glrwytp5zn0qdy\", 10, 0, [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Match id | String |\n| `1` | Match status, please refer to Status Code -> Match Status | Integer |\n| `2` | Remaining time of the match section (seconds) | Integer |\n| `3` | Nested array; see details below | Array |\n| `4` | Nested array; see details below | Array |\n\n**Index `3` details**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `3[0]` | Home Section 1 Score | Integer |\n| `3[1]` | Home Section 2 Score | Integer |\n| `3[2]` | Home Section 3 Score | Integer |\n| `3[3]` | Home Section 4 Score | Integer |\n| `3[4]` | Home Overtime score | Integer |\n\n**Index `4` details**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `4[0]` | Away Section 1 Score | Integer |\n| `4[1]` | Away Section 2 Score | Integer |\n| `4[2]` | Away Section 3 Score | Integer |\n| `4[3]` | Away Section 4 Score | Integer |\n| `4[4]` | Away Overtime score | Integer |\n","items":""},"OtScore":{"type":"array","description":"Overtime score field description(This field is only available for more than 1 extra time, and each bit is the score of 1 extra time.)<br/>example: [[8, 9, 6], [8, 9, 8]]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Nested array; see details below | Array |\n| `1` | Nested array; see details below | Array |\n\n**Index `0` details**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0[0]` | Home team overtime scores in the first quarter | Integer |\n| `0[1]` | Home team 2nd quarter overtime score | Integer |\n| `0[2]` | Home team overtime score in the nth quarter | Integer |\n\n**Index `1` details**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `1[0]` | Away team overtime scores in the first quarter | Integer |\n| `1[1]` | Away team 2nd quarter overtime score | Integer |\n| `1[2]` | Away team overtime score in the nth quarter | Integer |\n","items":""},"LiveHistoryStats":{"type":"array","description":"Data details<br/>example: [1, 8, 9]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Type, see status code -> technical statistics | Integer |\n| `1` | Home team value(6- Free throw percentage, floating point) | Integer |\n| `2` | Away team value(6- Free throw percentage, floating point) | Integer |\n","items":""},"LivePlayer":{"type":"array","description":"Lineup field description<br/>Two-pointers made = Hits - Three-pointers made<br/>Two-point shots = Shots - Three-point shots<br/>example: [[[\"e4wyrn1t8jjq86p\",\"J.J. Barea\",\"https://cdn.sportnanoapi.com/basketball/player/143a4b49049f75c3f7ce5e5275c0d26f.png\",\"5\",\"27^1-9^1-5^0-0^0^7^7^4^0^0^1^2^+2^3^1^0^1\"]],[],\"0^37-86^9-30^11-19^7^39^46^24^12^4^13^18^0^94\",\"0^33-89^9-34^10-15^10^44^54^20^8^2^16^15^0^85\"]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Nested array; see details below | Array |\n| `1` | Nested array; see details below | Array |\n| `2` | Home 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 | String |\n| `3` | 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 | String |\n\n**Index `0` details**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0[0]` | Nested array; see details below | Array |\n\n**Index `0[0]` details**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0[0][0]` | Home team player id | String |\n| `0[0][1]` | player name | String |\n| `0[0][2]` | player logo | String |\n| `0[0][3]` | Jersey number | String |\n| `0[0][4]` | 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) | String |\n\n**Index `1` details**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `1[0]` | Nested array; see details below | Array |\n\n**Index `1[0]` details**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `1[0][0]` | Away team player id | String |\n| `1[0][1]` | player name | String |\n| `1[0][2]` | player logo | String |\n| `1[0][3]` | Jersey number | String |\n| `1[0][4]` | 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) | String |\n","items":""},"LiveTlive":{"type":"array","description":"The tlive field is a list, representing data with different numbers of sections<br/>example: [[\"0^08:48^2^0^2-2^Robert Loe,2pt tipinlayup^30493^1^1^2^24,4\"], []]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `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) | String |\n","items":""}}},"common":{"schemas":{"ErrorMsg":{"type":"object","description":"abnormal","properties":{"code":{"type":"integer","description":"status code"},"msg":{"type":"string","description":"Error message"}}}}}}
```


---

# 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/basic-data/statistical-data-historical-matches.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.
