xinitrc-dev / randomfox.ca

http://randomfox.ca/
Other
90 stars 19 forks source link

Add an `id` property on the response #5

Closed papaia closed 4 years ago

papaia commented 4 years ago

It would be great to have a way to get the ID of the random image straight from the response, instead of having to take it from the URLs.

xinitrc-dev commented 4 years ago

I'm updating the site right now and working on an actual api portal and customizable endpoints. For now just get the id from the link itself, it's guaranteed to be of the same format anyway.