I am trying to get data from URL in JSON format. I used http.get function to collect data from the URL. Then data in JSON format is decoded. I store values of the keys as I need. Issue I have is that, I want same URL to run my script when data is changed by the URL admin. Can I do it in any settings or is there any other way to do that?
HTTP requests aren’t dynamic. You request, you receive a response. There’s a lot of ways for a server to indicate a response should be cached (or not), but ultimately the client has to make new request(s) for new data to be delivered.