This is a inofficial Wrapper around the Unsplash API.
Install project via pip
pip install unsplashapi
- Register for a Developer Account on Unsplash.com
- Add a new application und
Your Apps
- Adapt
Redirect URI & Permissions
according to your preferences - Copy
Access Key
fromKeys
# Extracts Rate Limits of your key
from unsplashapi import UnsplashAPI
api = UnsplashAPI(access_key='<your key>')
api.get_current_rate_limit()
>>> '49'
# Extract contents of an image
from unsplashapi import UnsplashAPI
api = UnsplashAPI(access_key='<your key>')
api.get_photo_by_id(photo_id='ieic5Tq8YMk')
>>> {'id': 'ieic5Tq8YMk',
'created_at': '2018-01-13T16:36:34-05:00',
'updated_at': '2022-04-15T13:02:41-04:00',
'promoted_at': '2018-01-14T20:42:18-05:00' ...}
Contributions are always welcome!
- Clone Repository
- Make adjustments
- Add PR
All requests are documented in the official Unsplash-API documentation provided from the developers: https://unsplash.com/documentation
Package Reference: https://pypi.org/project/unplashapi/0.0.1/