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.4.tar.gz (10.7 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.4-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

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

Hashes for unsplashapi-0.0.4.tar.gz
Algorithm Hash digest
SHA256 59a02b2b7234bdfbd439f4768bccc9f956ba311572987ad336535de43c25f050
MD5 d86261dab3e79975343dac6335f06149
BLAKE2b-256 67a21195a47394cba7b7f73c724c0a3957b903a46c1075a51ed88979f5ed7d41

See more details on using hashes here.

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

Hashes for unsplashapi-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7e022811718c59f9562fdefc6915bf45141c0a77b738a61e81edf162f48125bc
MD5 16d7c5bb7e8d935d4c88251a1ad2e84e
BLAKE2b-256 0899fc4c9ddd7e4841b72443b927ee4664182b3a82e3a33bfbb33e6da745caf2

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