Skip to main content
enum

The possible content types for a media object.

An externally hosted video.

A Shopify hosted image.

A 3d model.

A Shopify hosted video.


Was this section helpful?

•OBJECT

Represents a video hosted outside of Shopify.

•INTERFACE

A common set of fields for media content associated with products. Implementations include MediaImage for Shopify-hosted images, Video for Shopify-hosted videos, ExternalVideo for videos hosted on platforms like YouTube or Vimeo, and Model3d for 3D models.

Each implementation shares fields for alt text, content type, and preview images, while adding type-specific fields like embed URLs for external videos or source files for 3D models.

•OBJECT

An image hosted on Shopify's content delivery network (CDN). Used for product images, brand logos, and other visual content across the storefront.

The image field provides the actual image data with transformation options. Implements the Media interface alongside other media types like Video and Model3d.

•OBJECT

Represents a Shopify hosted 3D model.

•OBJECT

A video hosted on Shopify's servers. Implements the Media interface and provides multiple video sources through the sources field, each with format, dimensions, and URL information for adaptive playback.

For videos hosted on external platforms like YouTube or Vimeo, use ExternalVideo instead.


Was this section helpful?