I would like to create a function for an API to GET some data back.
I am stuck on the loop within the function. Roughly my function is like this where I have the API