Struggling to fetch products.json from API, can anyone help?

Idk man, but i am doing it with javascript now and still doesnt work..