> 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/realtime-data/real-time-data.md).

# Real-time data

## Real-time data

> Return player data, economic curve, and match events in real-time matches(full update)\<br/>Suggest the request frequency:2 seconds/time\<br/>\<br/>Description:\<br/>Match time (seconds) = current time-data release time + time difference between the start time and the release time (calculated based on the timer field)\<br/>Notes:When the data release time = 0, the time difference between the start time and the release time is directly obtained

```json
{"openapi":"3.0.1","info":{"title":"Gaming LOL API","version":"1.0.250516"},"tags":[{"name":"REALTIME DATA","description":"REALTIME DATA"}],"servers":[{"url":"https://api.thesports.com"}],"paths":{"/v1/lol/match/detail_live":{"get":{"tags":["REALTIME DATA"],"description":"Return player data, economic curve, and match events in real-time matches(full update)<br/>Suggest the request frequency:2 seconds/time<br/><br/>Description:<br/>Match time (seconds) = current time-data release time + time difference between the start time and the release time (calculated based on the timer field)<br/>Notes:When the data release time = 0, the time difference between the start time and the release time is directly obtained","summary":"Real-time data","operationId":"getMatchDetailLive","parameters":[{"$ref":"#/components/parameters/User"},{"$ref":"#/components/parameters/Secret"}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer"},"results":{"type":"array","items":{"$ref":"#/components/schemas/MatchDetailLive"}}}}}}},"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":{"MatchDetailLive":{"type":"object","description":"Data details","properties":{"match_id":{"type":"string","description":"Match id"},"box_num":{"type":"integer","description":"Current inning"},"status_id":{"type":"integer","description":"Match status, please refer to Status Code -> Match Status"},"single_status_id":{"type":"integer","description":"Current game status, please refer to Status Code -> Match Status"},"timer":{"$ref":"#/deps/schemas/Ttimer"},"home":{"type":"object","description":"Home team data","properties":{"id":{"type":"string","description":"Team id"},"side":{"type":"integer","description":"Owner, 1. blue team, 2. red team"},"score":{"type":"integer","description":"Total score (match score)"},"stats":{"$ref":"#/deps/schemas/LiveTeamStats"},"stats2":{"$ref":"#/deps/schemas/LiveTeamStats2"},"pick":{"$ref":"#/deps/schemas/Ppick"},"ban":{"$ref":"#/deps/schemas/Bban"},"players":{"type":"array","description":"Player data","items":{"$ref":"#/deps/schemas/LivePlayers"}}}},"away":{"type":"object","description":"Away team data","properties":{"id":{"type":"string","description":"Team id"},"side":{"type":"integer","description":"Owner, 1. blue team, 2. red team"},"score":{"type":"integer","description":"Total score (match score)"},"stats":{"$ref":"#/deps/schemas/LiveTeamStats"},"stats2":{"$ref":"#/deps/schemas/LiveTeamStats2"},"pick":{"$ref":"#/deps/schemas/Ppick"},"ban":{"$ref":"#/deps/schemas/Bban"},"players":{"type":"array","description":"Player data","items":{"$ref":"#/deps/schemas/LivePlayers"}}}},"economy_lines":{"$ref":"#/deps/schemas/LiveEconomy"},"event":{"type":"array","description":"Match event data","items":{"$ref":"#/deps/schemas/LiveEvent"}}}}},"responses":{"404NotFound":{"description":"Resource does not exist","content":{"application/json":{"schema":{"$ref":"#/common/schemas/ErrorMsg"}}}}}},"deps":{"schemas":{"Ttimer":{"type":"array","description":"Match time field description<br/>example:[0, 0, 1587544542, 835, 0]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Whether to go to the watch, 1. Yes, 0. No | Integer |\n| `1` | Whether to count down, 1. Yes, 0. No | Integer |\n| `2` | Data release time | Integer |\n| `3` | Time difference between start time and release time (seconds) | Integer |\n| `4` | Compatible, ignore | Integer |\n","items":""},"LiveTeamStats":{"type":"array","description":"Team statistics field description<br/>example:[6, 0, 23300, 0, 1, 1, 0, 1, 2, 0, 0, 0, 0]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Kills | Integer |\n| `1` | Destroyed number of towers | Integer |\n| `2` | Economy | Integer |\n| `3` | Destroyed number of crystals | Integer |\n| `4` | Win this single inning, 1. Yes, 0. No | Integer |\n| `5` | Number of dragon drakes killed | Integer |\n| `6` | Number of baron nahsores killed | Integer |\n| `7` | First Blood, 1. Yes, 0. No | Integer |\n| `8` | First Tower, 1. Yes, 0. No | Integer |\n| `9` | First Five Kill, 1. Yes, 0. No | Integer |\n| `10` | First Ten Kill, 1. Yes, 0. No | Integer |\n| `11` | First Drake, 1. Yes, 0. No | Integer |\n| `12` | First Nahsor, 1. Yes, 0. No | Integer |\n","items":""},"LiveTeamStats2":{"type":"array","description":"Team statistics field description<br/>example:[6, 0, 1, 0, 0, 0, 0, 0, 0, 0]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Deaths | Integer |\n| `1` | Assists | Integer |\n| `2` | Voidgrubs | Integer |\n| `3` | Atakhans | Integer |\n| `4` | First Voidgrubs, 1. Yes, 0. No | Integer |\n| `5` | First Atakhans, 1. Yes, 0. No | Integer |\n| `6` | Placeholder, Ignore | Not specified |\n| `7` | Placeholder, Ignore | Not specified |\n| `8` | Placeholder, Ignore | Not specified |\n| `9` | Placeholder, Ignore | Not specified |\n","items":""},"Ppick":{"type":"array","description":"Choose hero ids<br/>example:[\"gy0or59wbg6mwzv\", \"kdj2ryy6tnkr1zp\", \"gx7lm797bwnr2wd\"]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Hero id | String |\n","items":""},"Bban":{"type":"array","description":"Banned hero ids(No data empty)<br/>example:[\"9k82repjtgqepzj\", \"yl5erg5efojm8k0\", \"9vjxm89jb82q6od\"]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Hero id | String |\n","items":""},"LivePlayers":{"type":"object","properties":{"id":{"type":"string","description":"Player id"},"hero_id":{"type":"string","description":"Hero id"},"stats":{"$ref":"#/deps/schemas/LivePlayerStats"},"equipments":{"$ref":"#/deps/schemas/Eequipment"},"spells":{"$ref":"#/deps/schemas/Sspell"}}},"LivePlayerStats":{"type":"array","description":"Player statistics field description<br/>example:[5, 1, 1, 2, 8, 12]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Position, 1. ADC, 2. Middle, 3. Top, 4. Jungle, 5. Support, other unknown | Integer |\n| `1` | Kills | Integer |\n| `2` | Deaths | Integer |\n| `3` | Assists | Integer |\n| `4` | CS | Integer |\n| `5` | Hero level | Integer |\n","items":""},"Eequipment":{"type":"array","description":"Equipment ids(\"\" - Unknown, placeholder)<br/>example:[\"\", \"p4jwq2ekupq0veo\", \"z8yomow3tkwr0j6\"]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Equipment id | String |\n","items":""},"Sspell":{"type":"array","description":"Summoner skills ids(\"\" - Unknown, placeholder)<br/>example:[\"\", \"l965mk6zt2q1ge4\"]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Summoner skill id | String |\n","items":""},"LiveEconomy":{"type":"array","description":"Economic curve: the difference between the home team and the away team (Home team - Away team),Change with time<br/>example:[\"1:124\", \"3:414\", \"4:112\"]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Time (seconds):economic difference | String |\n","items":""},"LiveEvent":{"type":"object","description":"Data details","properties":{"type":{"type":"integer","description":"Event type, 1. Kill the hero 2. Destroy the tower 3. Destroy the crystal 4. Kill the monster"},"side":{"type":"integer","description":"Event side, 1. blue team, 2. red team"},"time":{"type":"integer","description":"Event time"},"killer":{"type":"string","description":"The id of the killer hero, \"\" means unknown"},"victim":{"type":"string","description":"The id of the hero who was killed, \"\" means unknown"},"monster_type":{"type":"integer","description":"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"}}}}},"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/lol/realtime-data/real-time-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.
