Use block in a loop? (Poll an API for "now playing")

Hi All,

Apologies if this has been covered before - I’m building a skill for an online radio station. I can use the Stream block to play the audio and that’s working perfectly.

I’d like to show the currently playing track, which I can easily get from an API - my question is how to update it repeatedly? I need to poll the API every 20 seconds or so to get the track name and display it. It is possible to do that in a timed loop somehow with voiceflow blocks, or would I need to go back to coding in javascript directly in Amazon for that functionality?

Does any one have any ideas how to do it? (In voiceflow, or in JS itself? I guess SetInterval or similar - but how to set the card info).

Many thanks,