Unsplash API
This is a inofficial Wrapper around the Unsplash API.
Installation
Install project via pip
pip install unsplashapi
Get an Access Key
- Register for a Developer Account on Unsplash.com
- Add a new application und
Your Apps - Adapt
Redirect URI & Permissionsaccording to your preferences - Copy
Access KeyfromKeys
Usage/Examples
# 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' ...}
Contributing
Contributions are always welcome!
- Clone Repository
- Make adjustments
- Add PR
Appendix
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/
Release files for unsplashapi 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| unsplashapi-0.0.5.tar.gz | 10.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unsplashapi-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.3 kB
Release files / unsplashapi-0.0.5.tar.gz
| Download URL | unsplashapi-0.0.5.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8bfaee8b14a4b30eb2dc617c5fa6caaa9d75d49ea134db1b085949637d818ec4
|
|
BLAKE2b-256 checksum How to use checksums |
48a12486775b624e0e88940c74d3092dffe4b3d878196930b90e5408e1368b9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.8
|
Release files / unsplashapi-0.0.5-py3-none-any.whl
| Download URL | unsplashapi-0.0.5-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26e4899aa707c737f192f977c1957cf37fb7e39b04befc925b76714608d5ca7b
|
|
BLAKE2b-256 checksum How to use checksums |
039acf6a2d0bad817ab0fc76f91f61db5d4ebc584ca84673facadb934031570f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.8
|