---
title: "Adding Product Videos in Magento 2 Using Youtube API Key: A Step-by-Step Guide"
url: "https://magecomp.com/blog/upload-product-videos-magento-2/"
date: "2020-01-15T18:07:29+00:00"
modified: "2020-01-15T18:07:29+00:00"
author:
  name: "Gaurav Jain"
  url: "https://magecomp.com/"
categories:
  - "Magento Tutorials"
word_count: 403
reading_time: "3 min read"
summary: "Hello, Magento Buddies!"
description: "Explore more on How to Add Product Videos in Magento 2 using Youtube API Key: #1 Get YouTube API Key #2 Configure YouTube API in backend #3 Upload Video on P..."
keywords: "Magento Tutorials"
language: "en"
schema_type: "Article"
related_posts:
  - title: "How to Add Sticky Header Component in Magento 2?"
    url: "https://magecomp.com/blog/add-sticky-header-component-in-magento-2/"
  - title: "How to Create Simple Product Programmatically in Magento 2?"
    url: "https://magecomp.com/blog/create-simple-product-programmatically-in-magento-2/"
  - title: "How to Manage Newsletter Subscribers Report in Magento 2 (Episode 2)"
    url: "https://magecomp.com/blog/manage-newsletter-subscribers-report-in-magento-2/"
---

# Adding Product Videos in Magento 2 Using Youtube API Key: A Step-by-Step Guide

_Published: January 15, 2020_  
_Author: Gaurav Jain_  

![How to Add Product Videos in Magento 2](https://magecomp.com/blog/wp-content/uploads/2020/01/How-to-Add-Product-Videos-in-Magento-2-1024x512.webp)

**Hello, Magento Buddies!**

Want to make the product in your Magento 2 store look more alluring and active? Well, I’ve got you covered. Magento 2 provides this functionality to individually upload the video to a product.
More visual appealing product = more sales generated
Using the YouTube API key, you can display or set your youtube video for a product to be shown in the product image/gallery section.
Let’s get right into the steps to Add Product Videos in Magento 2 – Guide for Youtube API Key.
## Steps to Add Product Videos in Magento 2
### Step 1: Get Your YouTube API Key
Firstly, sign in to your Google account. Navigate to the [**Google Developers Console**](https://console.cloud.google.com/apis/library?pli=1&project=logical-essence-318607&folder=&organizationId=). And, perform the following:
- Search for youtube API & Select Youtube Data API v3.
[![Youtube API](https://magecomp.com/blog/wp-content/uploads/2020/01/Youtube-API.png)](https://magecomp.com/blog/wp-content/uploads/2020/01/Youtube-API.png)

- Click on **Enable**.
[![enable - youtube api](https://magecomp.com/blog/wp-content/uploads/2020/01/enable-youtube-api.png)](https://magecomp.com/blog/wp-content/uploads/2020/01/enable-youtube-api.png)

- From the left-hand side panel, click on the **Credentials → Create credentials → API key**.
[![credentials - youtube api](https://magecomp.com/blog/wp-content/uploads/2020/01/credentials-youtube-api.png)](https://magecomp.com/blog/wp-content/uploads/2020/01/credentials-youtube-api.png)

- You will see an API key generated in a popup. Copy the key and store it in a safe place, we need to use it in the Magento backend.
[![youtube api key created](https://magecomp.com/blog/wp-content/uploads/2020/01/youtube-api-key-created.png)](https://magecomp.com/blog/wp-content/uploads/2020/01/youtube-api-key-created.png)

If you want to restrict the access to this API by IP or something, click on Restrict key otherwise click on close to close the popup. By the way, restricting keys is a good option to prevent unauthorized use and quota theft. You can restrict it by websites, IP addresses, or applications can use your API key
### Step 2: Configure YouTube API in Magento Backend
- Log in to the Magento backend and go to **Stores → Settings → Configuration**.- From the Catalog tab, select **Catalog**.- Expand the Product Video section and paste the key in the **YouTube API Key** field.
[![product video - youtube api key](https://magecomp.com/blog/wp-content/uploads/2020/01/product-video-youtube-api-key.png)](https://magecomp.com/blog/wp-content/uploads/2020/01/product-video-youtube-api-key.png)

- Save the configuration and navigate to Cache Management to refresh the cache.
### Step 3: Upload Video on Product
- In the admin panel, Go to Catalog – Products- Select and Edit the product- Expand the images and videos section and click on **Add Video.** Upload product video.
[![video upload youtube api key](https://magecomp.com/blog/wp-content/uploads/2020/01/video-upload-youtube-api-key.png)](https://magecomp.com/blog/wp-content/uploads/2020/01/video-upload-youtube-api-key.png)

Enter the video URL, its title, description, preview image, and the role. On filling out all the information, hit the save button. You can go to the frontend now and check how the video shows.
## Wrap Up!
So, that was all about the steps to Add Product Videos in Magento 2 – Guide for Youtube API Key. Lastly, if you had any problem while implementing these methods or need any help with your Magento store, then you can contact our [**Support**](https://magecomp.com/support/) Desk. We will be happy to help you.
**Happy Reading!**


---

_View the original post at: [https://magecomp.com/blog/upload-product-videos-magento-2/](https://magecomp.com/blog/upload-product-videos-magento-2/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-08-20 06:39:03 UTC_  
