DEV Community

Discussion on: Fill up your portfolio with meaningful projects in 2020, Use these APIs

Collapse
 
kylefilegriffin profile image
Kyle Griffin

With the unsplash API, a regular fetch request will get N number of the same picture over and over. How does one modify the request to get a different one for each iteration of the loop?

Collapse
 
justaashir profile image
Aashir Khan

Can you provide some more information like what framework you're using?
And what end result you want with the real-world example. 🙂

Collapse
 
kylefilegriffin profile image
Kyle Griffin

Literally just using the fetch promise in vanilla JS and outputting it using Map or a forEach loop. What do you propose?