Save data from an API call to server cache

What you have just described is what I wrote, with “X” being “10 seconds”.

The data will not be current, it will be somewhere between 0 and 10 seconds stale.

Also, what’s better for the API; you calling the API every 10 seconds of the day whether or not there was a need for the data, or Y (your number of clients) calling the API on-demand?