> 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/schedule-and-results-date-query.md).

# Schedule and Results - date query

## Schedule and Results - date query

> This interface returns the full schedule results data within 24 hours after the request timestamp (request limit:from 30 days before today to 30 days after)\<br/>Note:Real-time data is obtained through the real-time data interface.\<br/>\<br/>The recommended frequency of the day's schedule:10 Minutes/time(Full update)\<br/>Suggest request frequency for the schedule tomorrow and beyond:30 minutes/time(Full update)\<br/>Note:Get the full data of the match interface, this interface does not need to be obtained again

```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/match/diary":{"get":{"tags":["BASIC DATA"],"description":"This interface returns the full schedule results data within 24 hours after the request timestamp (request limit:from 30 days before today to 30 days after)<br/>Note:Real-time data is obtained through the real-time data interface.<br/><br/>The recommended frequency of the day's schedule:10 Minutes/time(Full update)<br/>Suggest request frequency for the schedule tomorrow and beyond:30 minutes/time(Full update)<br/>Note:Get the full data of the match interface, this interface does not need to be obtained again","summary":"Schedule and Results - date query","operationId":"getDiaryMatchList","parameters":[{"$ref":"#/components/parameters/User"},{"$ref":"#/components/parameters/Secret"},{"name":"tsp","in":"query","description":"Query date time stamp","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer"},"query":{"$ref":"#/common/schemas/QuerySimp"},"results":{"type":"array","description":"Match list","items":{"$ref":"#/components/schemas/Match"}},"results_extra":{"$ref":"#/components/schemas/ResultsExtra"}}}}}},"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":{"Match":{"type":"object","description":"Data details","properties":{"id":{"type":"string","description":"Match id"},"season_id":{"type":"string","description":"Season 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"},"status_id":{"type":"integer","description":"Match status,please refer to Status Code -> Match Status"},"match_time":{"type":"integer","description":"Match time"},"venue_id":{"type":"string","description":"Venue id"},"referee_id":{"type":"string","description":"Referee id"},"neutral":{"type":"integer","description":"Is it neutral,1-Yes,0-No"},"note":{"type":"string","description":"Remarks"},"home_scores":{"$ref":"#/deps/schemas/HomeScore"},"away_scores":{"$ref":"#/deps/schemas/AwayScore"},"home_position":{"type":"string","description":"Home Team Ranking"},"away_position":{"type":"string","description":"Away Team Ranking"},"coverage":{"$ref":"#/deps/schemas/Coverage"},"round":{"$ref":"#/deps/schemas/Round"},"related_id":{"type":"string","description":"The match id of the other round in the double round (No data field does not exist)"},"agg_score":{"$ref":"#/deps/schemas/AggScore"},"environment":{"$ref":"#/deps/schemas/Environment"},"tbd":{"type":"integer","description":"Is the match time to be determined? 1. Yes(if it exists, it will be returned)"},"has_ot":{"type":"integer","description":"Is there overtime? 1. Yes(if it exists, it will be returned)"},"ended":{"type":"integer","description":"End time(if it exists, it will be returned)"},"team_reverse":{"type":"integer","description":"Are the host and away positions opposite? 1. Yes(if it exists, it will be returned eg:Opposite - official website A vs B, thesports B vs A)"},"loss":{"type":"integer","description":"The match is directly ruled as lost? 1. Yes(if it exists, it will be returned)"},"updated_at":{"type":"integer","description":"Update time"}}},"ResultsExtra":{"type":"object","description":"Linked data","properties":{"competition":{"type":"array","description":"Competition data","items":{"$ref":"#/components/schemas/ResultsExtraCompetition"}},"team":{"type":"array","description":"Team data","items":{"$ref":"#/components/schemas/ResultsExtraTeam"}},"referee":{"type":"array","description":"Referee data","items":{"$ref":"#/components/schemas/ResultsExtraReferee"}},"venue":{"type":"array","description":"Venue data","items":{"$ref":"#/components/schemas/ResultsExtraVenue"}},"season":{"type":"array","description":"Season data","items":{"$ref":"#/components/schemas/ResultsExtraSeason"}},"stage":{"type":"array","description":"Stage data","items":{"$ref":"#/components/schemas/ResultsExtraStage"}}}},"ResultsExtraCompetition":{"type":"object","description":"Data details","properties":{"id":{"type":"string","description":"Competition id"},"name":{"type":"string","description":"Competition name"},"logo":{"type":"string","description":"Competition logo"}}},"ResultsExtraTeam":{"type":"object","description":"Data details","properties":{"id":{"type":"string","description":"Team id"},"name":{"type":"string","description":"Team name"},"logo":{"type":"string","description":"Team logo"},"country_logo":{"type":"string","description":"National team logo(Exist for the national team)"}}},"ResultsExtraReferee":{"type":"object","description":"Data details","properties":{"id":{"type":"string","description":"Referee id"},"name":{"type":"string","description":"Referee name"},"logo":{"type":"string","description":"Referee logo"}}},"ResultsExtraVenue":{"type":"object","description":"Data details","properties":{"id":{"type":"string","description":"Venue id"},"name":{"type":"string","description":"Venue name"}}},"ResultsExtraSeason":{"type":"object","description":"Data details","properties":{"id":{"type":"string","description":"Season id"},"competition_id":{"type":"string","description":"Competition id"},"year":{"type":"string","description":"Season year"}}},"ResultsExtraStage":{"type":"object","description":"Data details","properties":{"id":{"type":"string","description":"Stage id"},"season_id":{"type":"string","description":"Season id"},"name":{"type":"string","description":"Stage name"},"mode":{"type":"integer","description":"Match mode,1-points,2-elimination"},"group_count":{"type":"integer","description":"Total groups"},"round_count":{"type":"integer","description":"Total rounds"},"order":{"type":"integer","description":"Sorting,the order of stages"}}}},"responses":{"404NotFound":{"description":"Resource does not exist","content":{"application/json":{"schema":{"$ref":"#/common/schemas/ErrorMsg"}}}}}},"common":{"schemas":{"QuerySimp":{"type":"object","description":"Inquiry","properties":{"total":{"type":"integer","description":"Return the total amount of data"},"type":{"type":"string","description":"Query type,season query:season,date query:diary"}}},"ErrorMsg":{"type":"object","description":"abnormal","properties":{"code":{"type":"integer","description":"status code"},"msg":{"type":"string","description":"Error message"}}}}},"deps":{"schemas":{"HomeScore":{"type":"array","description":"Home team score field description<br/>example:[1, 0, 0, 0, -1, 0, 0]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Score (regular time) | Integer |\n| `1` | Halftime score | Integer |\n| `2` | Red cards | Integer |\n| `3` | Yellow cards | Integer |\n| `4` | Corners,-1 means no corner kick data | Integer |\n| `5` | Overtime score (120 minutes,including regular time),only available in overtime | Integer |\n| `6` | Penalty shootout score,only penalty shootout | Integer |\n","items":""},"AwayScore":{"type":"array","description":"Away team score field description<br/>example:[1, 0, 0, 0, -1, 0, 0]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Score (regular time) | Integer |\n| `1` | Halftime score | Integer |\n| `2` | Red cards | Integer |\n| `3` | Yellow cards | Integer |\n| `4` | Corners,-1 means no corner kick data | Integer |\n| `5` | Overtime score (120 minutes,including regular time),only available in overtime | Integer |\n| `6` | Penalty shootout score,only penalty shootout | Integer |\n","items":""},"Coverage":{"type":"object","description":"Animation,lineup, gif","properties":{"mlive":{"type":"integer","description":"Is there any animation,1-yes,0-no"},"lineup":{"type":"integer","description":"Is there a lineup,1-yes,0-no"},"gif":{"type":"integer","description":"Is there a gif,1-yes,0-no"}}},"Round":{"type":"object","description":"Stage","properties":{"stage_id":{"type":"string","description":"Stage id"},"group_num":{"type":"integer","description":"Which group,1-A,2-B and so on"},"round_num":{"type":"integer","description":"Which round"}}},"AggScore":{"type":"array","description":"The total score of two rounds in regular time (including extra time) (No data field does not exist)<br/>example:[3, 6]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Home team score | Integer |\n| `1` | Away team score | Integer |\n","items":""},"Environment":{"type":"object","description":"Match environment,this segment is only available if there is data","properties":{"weather":{"type":"integer","description":"Weather id<br/>1-Partially cloudy<br/>2-Cloudy<br/>3-Partially cloudy/rain<br/>4-Snow<br/>5-Sunny<br/>6-Overcast Rain/partial thunderstorm<br/>7-overcast<br/>8-mist<br/>9-Overcast with rain<br/>10-cloudy with rain<br/>11-cloudy with rain/partial Thunderstorms<br/>12-Clouds/rains and thunderstorms locally<br/>13-Fog"},"pressure":{"type":"string","description":"Air pressure"},"temperature":{"type":"string","description":"temperature"},"wind":{"type":"string","description":"Wind speed"},"humidity":{"type":"string","description":"humidity"}}}}}}
```


---

# 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/schedule-and-results-date-query.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.
