c# – Best way to refresh a POST Request for third party API

I’m using a third party API.
I’m able to get data and display it in the frontend but I would like to to refresh the data every 5 minutes. I am not using this to put in live.

Is the best way refresh the POST Request is use javascript?:



 var client = new RestClient("https://api.....");
            client.Timeout = -1;
            var request = new RestRequest(Method.POST);
            request.AddHeader("Accept", "application/vnd.salemove.v1+json");
            request.AlwaysMultipartFormData = true;
            request.AddParameter("api_token", gliaToken);
            IRestResponse response = client.Execute(request);

 var Tokenresponse = JsonConvert.DeserializeObject<testReport>(response.Content);

            var client2 = new RestClient("https://api.visitors");
            client2.Timeout = -1;
            var request2 = new RestRequest(Method.POST);
            request2.AddHeader("Accept", "application/vnd.salemove.v1+json");
            request2.AddHeader("Authorization", "Bearer " + Tokenresponse.token.ToString());
            request2.AddHeader("Content-Type", "application/json");
            request2.AddParameter("application/json", "{"site_ids":(""),"xxx","xxx"),"start_date":"" "granularity":"hour"}", ParameterType.RequestBody);
            IRestResponse response2 = client2.Execute(request2);