Media Content Type
The possible content types for a media object.
Anchor to Valid valuesValid values
- EXTERNAL_VIDEO
- IMAGE
- MODEL_3D
- VIDEO
- Anchor to EXTERNAL_VIDEOEXTERNAL_
VIDEO An externally hosted video.
- Anchor to IMAGEIMAGE
A Shopify hosted image.
- Anchor to MODEL_3DMODEL_
3D A 3d model.
- Anchor to VIDEOVIDEO
A Shopify hosted video.
Anchor to FieldsFields
- •OBJECT
Represents a video hosted outside of Shopify.
- •INTERFACE
A common set of fields for media content associated with products. Implementations include
for Shopify-hosted images,Videofor Shopify-hosted videos,for videos hosted on platforms like YouTube or Vimeo, andModel3dfor 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
imagefield provides the actual image data with transformation options. Implements theMediainterface alongside other media types likeVideoandModel3d.- •OBJECT
Represents a Shopify hosted 3D model.
- •OBJECT
A video hosted on Shopify's servers. Implements the
Mediainterface and provides multiple video sources through thesourcesfield, each with format, dimensions, and URL information for adaptive playback.For videos hosted on external platforms like YouTube or Vimeo, use
instead.