Skip to main content

python-pexels

A unofficial python library to support all of Pexels API features.

  • Supports all of the endpoints, which are available in API v1.0

  • Return data are python objects.

  • User friendly library.

  • Easy to use.

📚 Documentation for this library can be found below. It contains detailed instructions on how to use API.

📚 Documentation for the official API can be found here.

Installation

You can install the library via pip

pip install python-pexels

Or using source code, which is not recommended.

git clone https://github.com/jk6521/py-pexels-api.git

cd py-pexels-api

python setup.py install

more installation guide found here

Usage & Example

You need API token to access Pexels API, you can get it here

Once library is installed using pip, create a new python file named main.py

    #main.py
    from Pexels import Client

    client = Client(token="abcd1223")

    #search photos
    photos = client.search_photo(query="Joker")

    #you can access return data like
    print(photos.total_results)

    >>> 230

more examples can be found here

Useful Links

📚 Docs 🌐 PyPi 💬 Telegram

Release files for python-pexels 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-pexels 1.1
File Size Uploaded
python-pexels-1.1.tar.gz 21.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-pexels 1.1
File Interpreter ABI Platform
python_pexels-1.1-py3-none-any.whl Python 3 none any Details

Total release size: 42.6 kB

Release files / python-pexels-1.1.tar.gz

Download URL python-pexels-1.1.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c27a7279d66ea550e65fffa3323d666921eacd4f62eb6dbac00dba706919b0a9
BLAKE2b-256 checksum
How to use checksums
34d1a7843e0b5f3ab12d636108247e968f6efffb377f6175f66ef2186741e71f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / python_pexels-1.1-py3-none-any.whl

Download URL python_pexels-1.1-py3-none-any.whl
Size 21.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
511d35ba84e3941d2b86492040802142d46da07cc6c962b7fe9aff0c52cb9093
BLAKE2b-256 checksum
How to use checksums
3aa5e0f12a6e46c0c2f0d3a723a6367ad864250ba3bb1bc5723cd84fb1c1207d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files

1.0

2 release files

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