I have an API which send a random photo each time you call it. But if you\'ve seen all the photos recently, it responds a json object saying that no more photo is available.