How to upload Product Videos in Magento 2 - Youtube API Key
With a big catalog of 234+ extensions for your online store
Are you wondering how to attract and persuade customers more effectively? The answer is, show them, don’t tell them. To help your products be more attractive and lively, Magento 2 allows uploading individual video for any product you need. Videos comprise all kinds of medium, from images to audios, hence being a powerful method to convey any messages. That is why watching Magento product video will bring a true overview of your product to customers before purchasing. The more visual a product is, the more sales is created by the clients.
The video can be uploaded from your browse or you can embed the Youtube link to the product settings. To do that, you must get an API Key from your Google account and insert it in the configuration.
The required steps you should follow are listed clearly in this tutorial.
3 Steps to Upload Product Videos in Magento 2
Step 1: Get Your YouTube API Key
First, you have to get your YouTube API Key by going to your Google account:
- Log in to your Google account, and visit the Google Developers Console. Then, follow these:
- Under Use Google APIs, click
Youtube Data APIs
. - Click on
Manage
- In the panel on the left choose
Credentials
, click onCreate Credentials
and chooseAPI key
. - When prompted to create a new key, choose
Server key
. Enter a name for the key and IP address, and click onCreate
.
- Under Use Google APIs, click
- After you get the key, copy the key to the clipboard.
Step 2: Configure in Magento
Now, come back to the Magento and finish the settings:
- On the Admin Sidebar,
Stores > Settings > Configuration
. - In the panel, under Catalog, choose
Catalog
. - Expand the
Product Videos
section, paste Youtube API key into the required field.
- Click
Save Config
. - Go to Cache Management to refresh the cache.
Step 3: Link to Video
Add the video on your site and everything will be set!
- From the
Product Detail
, click onAdd Video
in theImages and Videos
.
- Enter the URL of the YouTube or Vimeo video. In the
URL
field, if you haven’t entered the Youtube API key yet, the system error message will appear, click onOK
to continue.
- Enter the
Title
andDescription
of the video. - To upload a Preview Image, browse to the image and select the file.
- If you prefer to use the video meta data, click on
Get Video Information
. - To assign the role to the video, mark the corresponding checkbox of each Role:
- Base Image
- Small Image
- Swatch Image
- Thumbnail
- Hide from Product Page
- When complete, click on
Save
.
Final words
It’s easy, isn’t it? Creating a product video is more effective than thousands of pictures you show on the product page, thanks to the display of nonverbal communication, especially in today’s digital age and quick pace of life. We and your customers can’t wait to see your videos, so add them now! Feel free to send us the results or share any thoughts on this!
Related Topics:
Looking for
Customization & Development Services?
8+ years of experiences in e-commerce & Magento has prepared us for any challenges, so that we can lead you to your success.
Get free consultantRecent Tutorials
Change Store Email Addresses
Fix Magento 2 'Invalid Form Key. Please refresh the page'
Magento 2 Search Settings: Default Magento vs Mageplaza AJAX Search
Explore Our Products:
People also searched for
- magento 2 youtube api key
- youtube api key magento 2
- magento youtube api key
- magento 2 youtube api
- magento 2 youtube
- magento 2 youtube video
- magento 2 upload video
- magento 2 add video to product programmatically
- 2youtube
- magento 2 product video
- magento 2 add video to product gallery
- magento 2 video
- magento 2 add video to product
- youtube magento 2
- magento 2 how to upload images and videos in custom module
- magento video
- youtube magento
- magento 2 video upload extension
- magento 2 product videos
- magento 2 product video not working
- youtube data api key
- magento 2 embed youtube
- magento 2 api key
- youtube api
- youtube api key
- video magento
- magento youtube
- magento api key
- magento product video
- magento 2 videos
- 2.2.x, 2.3.x, 2.4.x
Stay in the know
Get special offers on the latest news from Mageplaza.
Earn $10 in reward now!