The external_video object

The external_video object can be accessed from the product object's media attribute. It contains information about a Vimeo or YouTube video associated with a product.

This page describes the different attributes of the external_video object.


Returns the alt tag of the video set on the product details page of the Shopify admin.


Returns the aspect ratio of the external video.


Returns the ID of the external video.

Returns the name of the video host (youtube or vimeo).

Returns the media_id of the external video.


Returns the type of the object (external_video). This can be used to filter the product object's media array.


Returns the position of the external_video in the product object's media array.