> 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/thesports-docs/basic-data/historical-compensation.md).

# Historical compensation

## Historical compensation

> This interface returns the statistics (historical confrontation,recent record,and historical same compensation) for the match not started within 30 days,and obtain new or changed data according to the time\<br/>\<br/>1,Full update for the first time,full data is obtained according to the parameter page (Page increases by 1, loop to get the interface, total is 0, and the loop ends)\<br/>2,Subsequent incremental update,obtain change data according to the parameter time increment (recommended request frequency:1min/time)

```json
{"openapi":"3.0.1","info":{"title":"Football API","version":"1.0.251028"},"tags":[{"name":"BASIC DATA","description":"BASIC DATA"}],"servers":[{"url":"https://api.thesports.com"}],"paths":{"/v1/football/compensation/list":{"get":{"tags":["BASIC DATA"],"description":"This interface returns the statistics (historical confrontation,recent record,and historical same compensation) for the match not started within 30 days,and obtain new or changed data according to the time<br/><br/>1,Full update for the first time,full data is obtained according to the parameter page (Page increases by 1, loop to get the interface, total is 0, and the loop ends)<br/>2,Subsequent incremental update,obtain change data according to the parameter time increment (recommended request frequency:1min/time)","summary":"Historical compensation","operationId":"getCompensatioList","parameters":[{"$ref":"#/components/parameters/User"},{"$ref":"#/components/parameters/Secret"},{"$ref":"#/components/parameters/Page100"},{"$ref":"#/components/parameters/Time"},{"$ref":"#/components/parameters/Uuid"}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer"},"query":{"$ref":"#/common/schemas/Query"},"results":{"type":"array","description":"Match list","items":{"$ref":"#/deps/schemas/Compensatio"}}}}}}},"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"}},"Page100":{"name":"page","in":"query","description":"page query,return the data of the query page number (starting from 1), the default is 100","schema":{"type":"integer","format":"int32"}},"Time":{"name":"time","in":"query","description":"time query,return records (timestamp) greater than or equal to the update time,sorted according to the update time","schema":{"type":"integer","format":"int32"}},"Uuid":{"name":"uuid","in":"query","description":"uuid query,return the queried uuid data","schema":{"type":"string"}}},"responses":{"404NotFound":{"description":"Resource does not exist","content":{"application/json":{"schema":{"$ref":"#/common/schemas/ErrorMsg"}}}}}},"common":{"schemas":{"Query":{"type":"object","description":"Inquiry","properties":{"total":{"type":"integer","description":"Return the total amount of data"},"type":{"type":"string","description":"Query type,uuid query:uuid,page query:page,time query:time,default page"},"uuid":{"type":"string","description":"uuid query value (uuid query,field exists)"},"page":{"type":"integer","description":"page query value (page query,field exists)"},"time":{"type":"integer","description":"time query value,timestamp format (time query,field exists)"},"min_time":{"type":"integer","description":"Return the smallest time in the data(updated_at value) (time query,field exists)"},"max_time":{"type":"integer","description":"Return the largest time in the data(updated_at value) (time query,field exists)"}}},"ErrorMsg":{"type":"object","description":"abnormal","properties":{"code":{"type":"integer","description":"status code"},"msg":{"type":"string","description":"Error message"}}}}},"deps":{"schemas":{"Compensatio":{"type":"object","description":"Data details","properties":{"id":{"type":"string","description":"Match id"},"history":{"type":"object","description":"Historical confrontation","properties":{"home":{"type":"object","description":"Home team","properties":{"won_count":{"type":"integer","description":"Number of wins"},"drawn_count":{"type":"integer","description":"Number of draws"},"lost_count":{"type":"integer","description":"Number of loses"},"rate":{"type":"float","description":"Win rate"}}},"away":{"type":"object","description":"Away team","properties":{"won_count":{"type":"integer","description":"Number of wins"},"drawn_count":{"type":"integer","description":"Number of draws"},"lost_count":{"type":"integer","description":"Number of loses"},"rate":{"type":"float","description":"Win rate"}}}}},"recent":{"type":"object","description":"Recent record","properties":{"home":{"type":"object","description":"Home team","properties":{"won_count":{"type":"integer","description":"Number of wins"},"drawn_count":{"type":"integer","description":"Number of draws"},"lost_count":{"type":"integer","description":"Number of loses"},"rate":{"type":"float","description":"Win rate"}}},"away":{"type":"object","description":"Away team","properties":{"won_count":{"type":"integer","description":"Number of wins"},"drawn_count":{"type":"integer","description":"Number of draws"},"lost_count":{"type":"integer","description":"Number of loses"},"rate":{"type":"float","description":"Win rate"}}}}},"similar":{"type":"object","description":"Historical compensation","properties":{"teams":{"type":"array","description":"Team list(Same compensation schedule involves teams)","items":{"$ref":"#/deps/schemas/CompensatioTeams"}},"competitions":{"type":"array","description":"Competition list(Same compensation schedule involves competitions)","items":{"$ref":"#/deps/schemas/CompensatioComps"}},"companies":{"type":"array","description":"Odds company list(Same compensation schedule involves companies)","items":{"$ref":"#/deps/schemas/CompensatioCompanies"}},"europe":{"type":"array","description":"Same compensation schedule list (European compensation)","items":{"$ref":"#/deps/schemas/CompensatioEurope"}},"analysis":{"type":"array","description":"Probability of winning or losing","items":{"$ref":"#/deps/schemas/CompensatioAnalysis"}}}},"updated_at":{"type":"integer","description":"Update time"}}},"CompensatioTeams":{"type":"object","description":"Data details","properties":{"id":{"type":"string","description":"Team id"},"name":{"type":"string","description":"Team name"}}},"CompensatioComps":{"type":"object","description":"Data details","properties":{"id":{"type":"string","description":"Competition id"},"name":{"type":"string","description":"Competition name"}}},"CompensatioCompanies":{"type":"object","description":"Data details","properties":{"id":{"type":"integer","description":"Company id"},"name":{"type":"string","description":"Company name"}}},"CompensatioEurope":{"type":"object","description":"Data details","properties":{"id":{"type":"integer","description":"Odds company id"},"total":{"type":"integer","description":"Total number of matches"},"won":{"type":"integer","description":"Number of wins"},"draw":{"type":"integer","description":"Number of draws"},"loss":{"type":"integer","description":"Number of loses"},"odds":{"$ref":"#/deps/schemas/CompensatioEuropeOdds"},"matches":{"type":"array","description":"Match list","items":{"$ref":"#/deps/schemas/CompensatioEuropeMatches"}}}},"CompensatioEuropeOdds":{"type":"array","description":"Euro Compensation,Initial Odds<br/>example:[2.1, 3.4, 3.1]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Win | Float |\n| `1` | Draw | Float |\n| `2` | Lose | Float |\n","items":""},"CompensatioEuropeMatches":{"type":"object","description":"Data details","properties":{"id":{"type":"string","description":"Match id"},"competition_id":{"type":"string","description":"Competition id"},"home_team_id":{"type":"string","description":"Home team id"},"away_team_id":{"type":"string","description":"Away team id"},"match_time":{"type":"integer","description":"Match time"},"home_score":{"type":"integer","description":"Home team goal"},"away_score":{"type":"integer","description":"Away team goal"},"begin_odds":{"$ref":"#/deps/schemas/CompensatioEuropeMatchesBegin"},"immediate_odds":{"$ref":"#/deps/schemas/CompensatioEuropeMatchesImmed"}}},"CompensatioEuropeMatchesBegin":{"type":"array","description":"Euro Compensation,Initial Odds<br/>example:[2.1, 3.4, 3.1]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Win | Float |\n| `1` | Draw | Float |\n| `2` | Lose | Float |\n","items":""},"CompensatioEuropeMatchesImmed":{"type":"array","description":"Euro compensation,The final real-time odds<br/>example:[2.1, 3.4, 3.1]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Win | Float |\n| `1` | Draw | Float |\n| `2` | Lose | Float |\n","items":""},"CompensatioAnalysis":{"type":"object","description":"Data details","properties":{"id":{"type":"integer","description":"Odds company id"},"win_rate":{"type":"float","description":"Win rate"},"draw_rate":{"type":"float","description":"Draw rate"},"loss_rate":{"type":"float","description":"Lose rate"}}}}}}
```


---

# 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/thesports-docs/basic-data/historical-compensation.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.
