Save data from an API call to server cache

it make sense what you are saying. Would PHP script need to be started using the cron job or is there any other way to start this script? User browser would need to access these values using JS