Drupal is a registered trademark of Dries Buytaert
cms 2.1.0 Update released for Drupal core (2.1.0)! menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). ai 1.2.13 Minor update available for module ai (1.2.13). ai 1.3.2 Minor update available for module ai (1.3.2). moderated_content_bulk_publish 2.0.51 Minor update available for module moderated_content_bulk_publish (2.0.51). moderated_content_bulk_publish 2.0.50 Minor update available for module moderated_content_bulk_publish (2.0.50). editoria11y 2.2.21 Minor update available for module editoria11y (2.2.21). eca 3.1.0 Minor update available for module eca (3.1.0). sophron 3.1.1 Minor update available for module sophron (3.1.1). ai 1.3.1 Minor update available for module ai (1.3.1). seven 2.0.0-beta6 New beta version released for theme seven (2.0.0-beta6). seven 1.0.1-beta1 First beta version released for theme seven (1.0.1-beta1). miniorange_saml 3.1.4 Minor update available for module miniorange_saml (3.1.4). eca_tamper 2.0.10 Minor update available for module eca_tamper (2.0.10). modeler_api 1.1.1 Minor update available for module modeler_api (1.1.1). turnstile 1.1.26 Minor update available for module turnstile (1.1.26). email_tfa 2.0.8 Minor update available for module email_tfa (2.0.8). paragraphs_entity_embed 4.0.0 Major update available for module paragraphs_entity_embed (4.0.0). bootstrap_italia 2.17.4 Minor update available for theme bootstrap_italia (2.17.4). bootstrap_italia 2.17.6 Minor update available for theme bootstrap_italia (2.17.6).

Migrate Youtube

INTRODUCTION

This module provides a set of two migrate source plugin to migrate Youtube videos and playlists.

REQUIREMENTS

This module requires the following module:

* Migrate - https://www.drupal.org/project/migrate
* Migrate Plus - https://www.drupal.org/project/migrate_plus

RECOMMENDED MODULES

* Migrate Tools - https://www.drupal.org/project/migrate_tools

CONFIGURATION

1. In your local settings.php file, add your Youtube API key as follow:

    $settings['youtube_api_key'] = 'your-own-1234567-API-KEY-here';

Migrating videos

Use the 'migrate_youtube_api_playlist_items' source plugin to retrieve videos,
you can pass any Youtube playlist ID as migrate source.

    source:
      plugin: migrate_youtube_api_playlist_items
      playlist_id: youtube-account-playlist-id

Every youtube account has a main playlist containing all its videos (https://developers.google.com/youtube/v3/docs).

Because of API calls limitations with your key, this source tries to be as
efficient as possible.
Additional calls are needed to retrieve video duration, if needed, set the
contentDetails key to true

    source:
      plugin: migrate_youtube_api_playlist_items
      playlist_id: whatever-playlist-id-here
      contentDetails: true

Then add the duration to your destination as follow

    process:
      ...
      field_duration: duration

See the provided example in migration_examples/youtube_video_to_media.yml

Playlist migration is also available.
Learn more about this module's (source fields, maintenance) in its README.md file.

Activity

Total releases
2
First release
Apr 2026
Latest release
14 hours ago
Release cadence
0 days
Stability
100% stable

Releases

Version Type Release date
2.0.0 Stable Apr 2, 2026
1.0.3 Stable Apr 2, 2026