> For the complete documentation index, see [llms.txt](https://docs.trackle.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trackle.io/trackle-cloud/cloud-api/limiti-alle-richieste.md).

# Limiti alle richieste

Le richieste alle API sono limitate approssimativamente a 10 al secondo verso `api.trackle.io` per ogni IP pubblico. Questo limite è il numero totale di chiamate da un IP pubblico e non dipendono dall'access token utilizzato o dall'endpoint della richiesta.

## **Attenzione a monitorare i cambiamenti delle variabili** <a href="#beware-of-monitoring-variables-for-change" id="beware-of-monitoring-variables-for-change"></a>

Una situazione che può causare problemi è il continuo monitoraggio delle variabili in attesa di cambiamenti. Se il software sta in polling ogni secondo su una variabile per un solo dispositivo non ci sono problemi, ma se vengono monitorati molti dispositivi, si può facilmente superare il limite.

E' molto più efficiente chiamare `Trackle.publish()` dal dispositivo quando un valore cambia.

## **Gestisci gli errori nel modo corretto** <a href="#make-sure-you-handle-error-conditions-properly" id="make-sure-you-handle-error-conditions-properly"></a>

Se il software ottiene un errore `401 (Unauthorized)` significa che l'access\_token è sicuramente scaduto. Continuare a riprovare con la stessa richiesta non cambia il risultato.

Se si ottiene un errore `429 (Too many requests)` significa che si è già superato il limite delle richieste, quindi continuare con le richieste non aiuta.&#x20;

In generale in caso di errore si può considerare di aspettare un pò prima di eseguire la richiesta successiva.


---

# 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.trackle.io/trackle-cloud/cloud-api/limiti-alle-richieste.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.
