Make the server run the api fitch to avoid the client network issues

I built a wepsite and i used js fitch api function to grab my YouTube channel video it works well but the problem when the client Browser try to fitch the api and the client network is bad it print an error on the conole and the browser didn’t try to fitch again so I’m asking if that’s a way to make the sever run the fitch api part to insure that the api fitching is done before viewing date on the page thanks

I try to make it with a loop bu i dont want make the page lagging