Media Pexels
This module provides a widget for the Entity browser that allows users to search and download free stock photos from Pexels. It integrates with Drupal's media system to make these images available for use on your site.
What is Pexels?
Pexels is a free stock photo and video website and app that helps designers, bloggers, and everyone who is looking for visuals to find great photos and videos that can be downloaded and used for free. If you see a photo or video you like, simply download it for free (no strings attached!).
How this module works
This module depends on Entity browser and adds a new widget, that allows users to search and download images from Pexels.
The module doesn't support videos at the moment.
Install & Configuration
❗ Because of a name collision, require the module like this:
composer require 'drupal/media_pexels-media_pexels'
See specific releases for more info.
An api key is needed to configure the entity browser widget. You can request an api key after signing up.
Api rate limit
Please read the appropriate documentation on current rate limits.
Legal matters
You can use and modify the downloaded material freely. Attribution is optional, but always appreciated. The widget provides some basic mapping to existing media fields and an event that can be used for more fine-tuning.
Find more information about legal issues on Pexes website.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.0-beta2 | Pre-release | 10–11 | php 8.4 compatibility | Feb 20, 2026 | |
| 1.0.0-beta1 | Pre-release | 10–11 | Bugfix and Drupal 11 compatibility. | Dec 4, 2024 | |
| 1.0.0-alpha5 | Pre-release | 9–10 | Fixes warnings related to rate limits | Dec 2, 2024 | |
| 1.0.0-alpha4 | Pre-release | 9–10 | Compatibility for D10 we missed, improved size and metadata handling, error fixes | Dec 2, 2024 |