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. (Default)type=view: View the image in the browser.type=redirect: Redirect to the image URL.
You can also provide the size to get the image on specific size.
size=regular: Get the regular size image (Default)size=raw: Get the raw size imagesize=small: Get the small size imagesize=thumb: Get the thumbnail size imagesize=full: Get the full size imagesize=small_s3: Get the most small size image
Contact
For further assistance, please contact me from here.