Finally, my API data refreshes without page reload- How I got it to work

Is this still working because I can’t seam to make my api calls refresh