Are you saying that you want to have a local display of data provided by a remote API?
I think that you may have ripped those 2 lines from a web page, am I right? If so, you will need to analyse how the script works in order to work out what data comes back. Not easy since only the minimised version of the code is provided.
Perhaps if you share a link that returns the web view you took the picture of, we could look at it more closely.
Open the second plus symbol to compile the information needed for your tramway station. And after click on "HTML code erzeugen" you get the code i posted. The code is for your own homepage to show the departure monitor for your tramway station (see picture in my first post). When i save the code as a html-file on my desktop and click it, it shows the departure monitor. But i would like to have it in my dashboard. (i hope my english is okay to understand, sry)
Will try to find some time to look later unless someone beats me to it. I suspect though that the UI is largely generated via JavaScript so you would need to use a tool that triggers the JS in order to be able to get the data unless you can discover how the JS works and get it directly.
So what is generated is a set of HTML code with javascript that you can embed in another web page. As suspected, you cannot get the raw data though you might be able to decode the script possibly.
The easiest way to use this with Node-RED is to embed that code into the Dashboard by using the ui_template node.