I am currently using the source.unsplash.com service where I can get a random image from the collection of my liked images with this URL.
https://source.unsplash.com/user/pizaranha/likes
Everything works perfectly, but I can't get the image information as the author to give credits.
Then I started using Unsplash Api, where I can get the author information and all the images I like in a json array with this url.
"https://api.unsplash.com/users/pizaranha/likes/?client_id="+clientId;
My question is how could I get just a random item and not the entire list of images that I like.
A workaround that works is to use a random index to pick an object from the array, BUT I think it is not efficient in terms of bandwidth because I get a large array with a bunch of elements instead of a single element.
Thanks in advance