Media
Requires access scope,
access scope,
access scope,
access scope,
access scope or
access scope.
Represents a media interface.
Anchor to FieldsFields
- •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 mediaErrorsmedia•[Media
Errors Error!]! non-null Any errors which have occurred on the media.
- Anchor to mediaWarningsmedia•[Media
Warnings Warning!]! non-null The warnings attached to the media.
- Anchor to previewpreview•Media
Preview Image The preview image for the media.
- Anchor to statusstatus•Media
Status! non-null Current status of the media.
Anchor to Types implemented inTypes implemented in
- •OBJECT
Represents a video hosted outside of Shopify.
- •String
A word or phrase to describe the contents or the function of a file.
- Anchor to createdAtcreated•Date
At Time! non-null The date and time (ISO 8601 format) when the file was created.
- Anchor to embedUrlembed•URL!
Url non-null The embed URL of the video for the respective host.
- Anchor to fileErrorsfile•[File
Errors Error!]! non-null Any errors that have occurred on the file.
- Anchor to fileStatusfile•File
Status Status! non-null The status of the file.
- Anchor to hosthost•Media
Host! non-null The host of the external video.
- •ID!non-null
A globally-unique ID.
- Anchor to mediaContentTypemedia•Media
Content Type Content Type! non-null The media content type.
- Anchor to mediaErrorsmedia•[Media
Errors Error!]! non-null Any errors which have occurred on the media.
- Anchor to mediaWarningsmedia•[Media
Warnings Warning!]! non-null The warnings attached to the media.
- Anchor to originUrlorigin•URL!
Url non-null The origin URL of the video on the respective host.
- Anchor to previewpreview•Media
Preview Image The preview image for the media.
- Anchor to statusstatus•Media
Status! non-null Current status of the media.
- Anchor to updatedAtupdated•Date
At Time! non-null The date and time (ISO 8601 format) when the file was last updated.
- Anchor to embeddedUrlembedded•URL!
Url non-nullDeprecated
- •OBJECT
The
object represents an image hosted on Shopify's content delivery network (CDN). Shopify CDN is a content system that serves as the primary way to store, manage, and deliver visual content for products, variants, and other resources across the Shopify platform.
The
object provides information to:
- Store and display product and variant images across online stores, admin interfaces, and mobile apps.
- Retrieve visual branding elements, including logos, banners, favicons, and background images in checkout flows.
- Retrieve signed URLs for secure, time-limited access to original image files.
Each
object provides both the processed image data (with automatic optimization and CDN delivery) and access to the original source file. The image processing is handled asynchronously, so images might not be immediately available after upload. The
status
field indicates when processing is complete and the image is ready for use.The
object implements the
Media
interface alongside other media types, like videos and 3D models.Learn about managing media for products, product variants, and asynchronous media management.
- •String
A word or phrase to share the nature or contents of a media.
- Anchor to createdAtcreated•Date
At Time! non-null The date and time (ISO 8601 format) when the file was created.
- Anchor to fileErrorsfile•[File
Errors Error!]! non-null Any errors that have occurred on the file.
- Anchor to fileStatusfile•File
Status Status! non-null The status of the file.
- •ID!non-null
A globally-unique ID.
- Anchor to imageimage•Image
The image for the media. Returns
null
untilstatus
is.
- Anchor to mediaContentTypemedia•Media
Content Type Content Type! non-null The media content type.
- Anchor to mediaErrorsmedia•[Media
Errors Error!]! non-null Any errors which have occurred on the media.
- Anchor to mediaWarningsmedia•[Media
Warnings Warning!]! non-null The warnings attached to the media.
- Anchor to mimeTypemime•String
Type The MIME type of the image.
- Anchor to originalSourceoriginal•Media
Source Image Original Source The original source of the image.
- Anchor to previewpreview•Media
Preview Image The preview image for the media.
- Anchor to statusstatus•Media
Status! non-null Current status of the media.
- Anchor to updatedAtupdated•Date
At Time! non-null The date and time (ISO 8601 format) when the file was last updated.
- Anchor to metafieldmetafield•MetafieldDeprecated
- Anchor to metafieldsmetafields•Metafield
Connection! non-nullDeprecated
- •OBJECT
Represents a Shopify hosted 3D model.
- •String
A word or phrase to describe the contents or the function of a file.
- Anchor to boundingBoxbounding•Model3d
Box Bounding Box The 3d model's bounding box information.
- Anchor to createdAtcreated•Date
At Time! non-null The date and time (ISO 8601 format) when the file was created.
- Anchor to fileErrorsfile•[File
Errors Error!]! non-null Any errors that have occurred on the file.
- Anchor to filenamefilename•String!non-null
The 3d model's filename.
- Anchor to fileStatusfile•File
Status Status! non-null The status of the file.
- •ID!non-null
A globally-unique ID.
- Anchor to mediaContentTypemedia•Media
Content Type Content Type! non-null The media content type.
- Anchor to mediaErrorsmedia•[Media
Errors Error!]! non-null Any errors which have occurred on the media.
- Anchor to mediaWarningsmedia•[Media
Warnings Warning!]! non-null The warnings attached to the media.
- Anchor to originalSourceoriginal•Model3d
Source Source The 3d model's original source.
- Anchor to previewpreview•Media
Preview Image The preview image for the media.
- Anchor to sourcessources•[Model3d
Source!]! non-null The 3d model's sources.
- Anchor to statusstatus•Media
Status! non-null Current status of the media.
- Anchor to updatedAtupdated•Date
At Time! non-null The date and time (ISO 8601 format) when the file was last updated.
- •OBJECT
Represents a Shopify hosted video.
- •String
A word or phrase to share the nature or contents of a media.
- Anchor to createdAtcreated•Date
At Time! non-null The date and time (ISO 8601 format) when the file was created.
- Anchor to durationduration•Int
The video's duration in milliseconds. This value is
null
unless the video's status field is READY.- Anchor to fileErrorsfile•[File
Errors Error!]! non-null Any errors that have occurred on the file.
- Anchor to filenamefilename•String!non-null
The video's filename.
- Anchor to fileStatusfile•File
Status Status! non-null The status of the file.
- •ID!non-null
A globally-unique ID.
- Anchor to mediaContentTypemedia•Media
Content Type Content Type! non-null The media content type.
- Anchor to mediaErrorsmedia•[Media
Errors Error!]! non-null Any errors which have occurred on the media.
- Anchor to mediaWarningsmedia•[Media
Warnings Warning!]! non-null The warnings attached to the media.
- Anchor to originalSourceoriginal•Video
Source Source The video's original source. This value is
null
unless the video's status field is READY.- Anchor to previewpreview•Media
Preview Image The preview image for the media.
- Anchor to sourcessources•[Video
Source!]! non-null The video's sources. This value is empty unless the video's status field is READY.
- Anchor to statusstatus•Media
Status! non-null Current status of the media.
- Anchor to updatedAtupdated•Date
At Time! non-null The date and time (ISO 8601 format) when the file was last updated.