Hi,
I followed plenty of guides about this and got my youtube API Key.
I keep trying to insert it in the configs but when I hit save, the key disappear from the field and when I try to add a youtube link to a product it keep saying:
Error: "Video cant be shown due to the following reason: Youtube API key is invalid"
I went to the api settings, restricted the key for YouTube Data API v3.
Anything else I should do?
Edit: The key disappearing was due to folders not having rights anymore... Still the api key show's as invalid when I try to have a video url.
Hi,
How are you? Did you checked the below thread for this problem:
https://community.magento.com/t5/Magento-2-x-Admin-Configuration/Youtube-API-key-Field-greyed-out-wh.../
I solved a similar problem using this thread.
Thanks
I’ve run into the same issue before when connecting YouTube API with a product gallery. Even after fixing permissions, the “invalid key” error can happen if the API isn’t enabled for the right project or if there’s a missing referrer/domain restriction mismatch. Try regenerating a new unrestricted key first just to confirm it’s not a config issue, then add restrictions once it works.
Also, if you’re testing or trimming demo clips before embedding them again, this Youtube Video Cutter Online can help create shorter, optimized test videos.