Media
Requires access scope.
A common set of fields for media content associated with
products.
Implementations include
for Shopify-hosted images,
Video for
Shopify-hosted videos,
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.
Anchor to FieldsFields
- alt (String)
- id (ID!)
- mediaContentType (MediaContentType!)
- presentation (MediaPresentation)
- previewImage (Image)
- •String
A word or phrase to share the nature or contents of a media.
- •ID!non-null
A globally-unique ID.
- Anchor to mediaContentTypemedia•Media
Content Type Content Type! non-null The media content type.
- Anchor to presentationpresentation•Media
Presentation The presentation for a media.
- Anchor to previewImagepreview•Image
Image The preview image for the media.
Anchor to Types implemented inTypes implemented in
- ExternalVideo (ExternalVideo)
- MediaImage (MediaImage)
- Model3d (Model3d)
- Video (Video)
- •OBJECT
Represents a video hosted outside of Shopify.
- •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.