Minion

How to find a YouTube video ID for your website

Find a YouTube video ID in watch, short, Shorts and embed URLs, then check video permissions and the website component that will display it.

Reviewed December 2, 2026 · Minion

A YouTube video ID identifies the video itself. Many website sections ask for either the full video URL or that ID. Check the field's instructions before pasting a complete sharing link.

Find the ID in the URL

URL formatWhere the ID appears
youtube.com/watch?v=VIDEO_IDThe value of the v parameter.
youtu.be/VIDEO_IDThe first path segment after the hostname.
youtube.com/shorts/VIDEO_IDThe path segment after shorts.
youtube.com/embed/VIDEO_IDThe path segment after embed.

Leave out extra parameters such as a start time or sharing reference when a field asks for the ID only. Do not confuse a playlist identifier with a video identifier.

Check whether the video can be embedded

A valid ID does not guarantee that a website can play the video. Check the video's visibility, embedding permissions and any restrictions that apply to the viewer. Test from a session that is not signed in to the video's owner account.

Use the website or Shopify theme's supported video component where possible. It can handle aspect ratio and responsive behavior more consistently than a fixed-size pasted iframe.

Preview the customer experience

Test the video on mobile and confirm that the player has a meaningful title and usable controls. Avoid autoplay with sound, and do not make video the only source of essential product information.

For several videos on one page, consider loading the player after the customer chooses to watch. That can reduce the initial page cost while keeping the surrounding content available.

References

Put this into practice.

Minion integrates product and editorial video into Shopify pages with attention to responsive presentation and page performance.

Talk to MinionExplore our services