> 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/help-center/basketball/trend-data-in-basketball.md).

# Trend data in basketball

### What is trend data?

Trend data indicates the score difference between the home team and the away team during a match.

### How often should the Trend API endpoint be called?

Trend data is available while a match is in progress. Use the match status to determine when to call the **Real-time match trends** API endpoint.

Call the API endpoint once every 1 to 3 minutes during the match. Trend values are updated at minute-level intervals.&#x20;

If you want to get the match trends for historical matches, you can use **Match trends** API endpoint.

### How to display trend data?

You can plot the returned data on an x-y axis:

* The x-axis represents time.
* The y-axis represents the score difference.

<figure><img src="/files/JsJtlV5c87Ky0ZP3frgY" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/k1tFiybXXnwgR9HV7LP7" alt=""><figcaption></figcaption></figure>


---

# 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/help-center/basketball/trend-data-in-basketball.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.
