Usage: Unsplash
You can use all the available endpoints to get images from Unsplash by adding the /unsplash/
prefix to the endpoint.
Get a random image
GET /unsplash/photos/random
Get a random photo from Unsplash.
Parameters: check in the unsplash API docs from here
Common Response Type
You can easily get the response as your desired format by adding the type
parameter to the request.
type=json
: Get the response in JSON format.type=image
: Get the response in image format.type=view
: View the image in the browser.type=redirect
: Redirect to the image URL.
Contact
For further assistance, please contact me from here.