Inofficial API Wrapper for Unsplash API
Project description
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/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unsplashapi-0.0.4.tar.gz.
File metadata
- Download URL: unsplashapi-0.0.4.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59a02b2b7234bdfbd439f4768bccc9f956ba311572987ad336535de43c25f050
|
|
| MD5 |
d86261dab3e79975343dac6335f06149
|
|
| BLAKE2b-256 |
67a21195a47394cba7b7f73c724c0a3957b903a46c1075a51ed88979f5ed7d41
|
File details
Details for the file unsplashapi-0.0.4-py3-none-any.whl.
File metadata
- Download URL: unsplashapi-0.0.4-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e022811718c59f9562fdefc6915bf45141c0a77b738a61e81edf162f48125bc
|
|
| MD5 |
16d7c5bb7e8d935d4c88251a1ad2e84e
|
|
| BLAKE2b-256 |
0899fc4c9ddd7e4841b72443b927ee4664182b3a82e3a33bfbb33e6da745caf2
|