Skip to main content

Inofficial API Wrapper for Unsplash API

Project description

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/

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

unsplashapi-0.0.5.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unsplashapi-0.0.5-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file unsplashapi-0.0.5.tar.gz.

File metadata

  • Download URL: unsplashapi-0.0.5.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.8

File hashes

Hashes for unsplashapi-0.0.5.tar.gz
Algorithm Hash digest
SHA256 8bfaee8b14a4b30eb2dc617c5fa6caaa9d75d49ea134db1b085949637d818ec4
MD5 200f5b450266c4da41e3aba4fcd6273d
BLAKE2b-256 48a12486775b624e0e88940c74d3092dffe4b3d878196930b90e5408e1368b9d

See more details on using hashes here.

File details

Details for the file unsplashapi-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: unsplashapi-0.0.5-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

Hashes for unsplashapi-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 26e4899aa707c737f192f977c1957cf37fb7e39b04befc925b76714608d5ca7b
MD5 47d3f926f9c9dc13262f4898154753b3
BLAKE2b-256 039acf6a2d0bad817ab0fc76f91f61db5d4ebc584ca84673facadb934031570f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page