Source is built for use in small, low-traffic applications. For production uses, we recommend the official Unsplash API which has more robust features and supports high-traffic use cases.
Check out the Unsplash API.
To choose a random photo from a specific user, the format follows that of selecting from a collection.
https://source.unsplash.com/user/{USERNAME}
* Optionally, to specify a size, append it at the end of the base URL.
https://source.unsplash.com/user/erondu/1600x900
<img src="https://source.unsplash.com/user/erondu/1600x900">
Similar to finding a photo taken by a user, you can fetch a random photo that has been liked by a specific user.
https://source.unsplash.com/user/{USERNAME}/likes
* Optionally, to specify a size, append it at the end of the base URL.
https://source.unsplash.com/user/jackie/likes/1600x900
<img src="https://source.unsplash.com/user/jackie/likes/1600x900">
You can also select a random photo from a given collection.
https://source.unsplash.com/collection/{COLLECTION ID}
* Optionally, to specify a size, append it at the end of the base URL.
https://source.unsplash.com/collection/190727/1600x900
<img src="https://source.unsplash.com/collection/190727/1600x900">
All of the above URL's will give you a new photo each time they are requested (provided there are enough photos to choose from given the filtering). However each can also be limited to only updating once per day or week. To do so, simply append /daily
or /weekly
to the URL.
https://source.unsplash.com/daily
https://source.unsplash.com/user/erondu/daily
https://source.unsplash.com/weekly?water
Using any of the above formats, you can narrow the selection of a random photo even further by supplying a list of comma-separated search terms at the end of the URL.
If you'd like to limit the results to only those photos included in our curated collections, simply add featured
at the end of the URL.
https://source.unsplash.com/featured/?{KEYWORD},{KEYWORD}
* Optionally, to specify a size, place it after the base URL.
https://source.unsplash.com/1600x900/?nature,water
To get a specific photo, simply append its photo ID to the embed URL. You can also embed a specific size.
* The photo ID can be found in the address bar in the standalone photo page.
https://source.unsplash.com/{PHOTO ID}/{WIDTHxHEIGHT}
https://source.unsplash.com/WLUHO9A_xik/1600x900
<img src="https://source.unsplash.com/WLUHO9A_xik/1600x900">
For a more advanced integration, check out our free full API at unsplash.com/developers