Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Media External

No security coverage Under active development 503 sites

This module allows you to import images from external sources like Pexels and Unsplash directly into your Drupal media library. You can configure API keys and create new media types that pull content from these external providers, making it easy to manage and use external media assets locally.

This module provides a new media source that can be used to import external media as local media items using the media library. External sources for images can be added using plugins. The module ships with plugins for the open source image libraries Pexels and Unsplash.

Using the module

  • Configure the API keys for Pexels and/or Unsplash using settings.local.php.
    $settings['media.external_provider.unsplash.access_key'] = 'YOUR_UNSPLASH_ACCESS_KEY';
    $settings['media.external_provider.pexels.api_key'] = 'YOUR_PEXELS_API_KEY';
    
  • Create a new media type choosing "External media" as the source.
  • In the source configuration, select the provider plugin you want to use for the media type.
  • Save the media type, the source field that stores the external media ID will automatically be created.
  • To improve performance, it is recommended to create extra custom fields to store API data.
    • Go to the "Manage fields" page and create a separate text field to store the image URL.
    • Go to the "Manage fields" page and create a separate text field to store the image alt text.
    • Edit the media type and map the "File URL" and "Alt text" field to the created custom fields.
    • Since the custom fields are now automatically filled when media items are created, it is fine to remove them from the different form displays. The alt text can still be shown if editors prefer to override the alt texts provides by the external media provider.
    • Using the imagecache_external module, you can apply an image style to the custom text field containing the mapped image URL.

Ask your assistant about Media External

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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

Tracked releases
3
Tracked since
Jul 2023
Latest release
1 month ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-beta3 Pre-release 9–11 Aug 21, 2026
1.0.0-beta2 Pre-release 9–11 Dec 23, 2025
1.0.0-beta1 Pre-release 9–10 Jul 19, 2023