Skip to main content

Unsplash API

.github/workflows/python-package.yml PyPI version fury.io

This is a inofficial Wrapper around the Unsplash API.

Installation

Install project via pip

pip install unsplashapi

Get an Access Key

  1. Register for a Developer Account on Unsplash.com
  2. Add a new application und Your Apps
  3. Adapt Redirect URI & Permissions according to your preferences
  4. Copy Access Key from Keys

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!

  1. Clone Repository
  2. Make adjustments
  3. 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)

Source distribution for unsplashapi 0.0.5
File Size Uploaded
unsplashapi-0.0.5.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for unsplashapi 0.0.5
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page