DMarby / picsum-photos

Lorem Ipsum... but for photos.
https://picsum.photos
MIT License
2.2k stars 152 forks source link

there is no picture 725 #102

Closed matthewmayer closed 1 year ago

matthewmayer commented 1 year ago

https://picsum.photos/id/725/640/480

Any idea why? Are there any other missing images between 1...1000?

image
matthewmayer commented 1 year ago

duplicates https://github.com/DMarby/picsum-photos/issues/83

DMarby commented 1 year ago

There's no guarantees for all IDs to exist, please use the list endpoints documented on picsum.photos if you want a full list.

In the future, please look for duplicate issues in a repository before opening new ones, this question has been asked and answered several times before.

matthewmayer commented 1 year ago

Does the list of valid id ever change? Would it be acceptable to download the list of valid ids from the list endpoint and cache that?

matthewmayer commented 1 year ago

I think you could consider adding a note to the documentation that not all ids are valid, as the first "gap" is at 86 and the list of photos paginates 30 at a time a casual browser is likely to think all numbers are valid.