Skip to main content
interface

Requires read_products access scope, read_files access scope, read_themes access scope, read_orders access scope, read_draft_orders access scope or read_images access scope.

A file interface.

•String

A word or phrase to describe the contents or the function of a file.

•DateTime!
non-null

The date and time (ISO 8601 format) when the file was created.

•[FileError!]!
non-null

Any errors that have occurred on the file.

•FileStatus!
non-null

The status of the file.

•ID!
non-null

A globally-unique ID.

•MediaPreviewImage

The preview image for the media.

•DateTime!
non-null

The date and time (ISO 8601 format) when the file was last updated.


Was this section helpful?

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.

•DateTime!
non-null

The date and time (ISO 8601 format) when the file was created.

•URL!
non-null

The embed URL of the video for the respective host.

•[FileError!]!
non-null

Any errors that have occurred on the file.

•FileStatus!
non-null

The status of the file.

•MediaHost!
non-null

The host of the external video.

•ID!
non-null

A globally-unique ID.

•MediaContentType!
non-null

The media content type.

•[MediaError!]!
non-null

Any errors which have occurred on the media.

•[MediaWarning!]!
non-null

The warnings attached to the media.

•URL!
non-null

The origin URL of the video on the respective host.

•MediaPreviewImage

The preview image for the media.

•MediaStatus!
non-null

Current status of the media.

•DateTime!
non-null

The date and time (ISO 8601 format) when the file was last updated.

•URL!
non-nullDeprecated
•OBJECT

Represents any file other than HTML.

•String

A word or phrase to describe the contents or the function of a file.

•DateTime!
non-null

The date and time (ISO 8601 format) when the file was created.

•[FileError!]!
non-null

Any errors that have occurred on the file.

•FileStatus!
non-null

The status of the file.

•ID!
non-null

A globally-unique ID.

•String

The generic file's MIME type.

•Int

The generic file's size in bytes.

•MediaPreviewImage

The preview image for the media.

•DateTime!
non-null

The date and time (ISO 8601 format) when the file was last updated.

•URL

The generic file's URL.

•OBJECT

The MediaImage 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 MediaImage 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 MediaImage 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 MediaImage 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.

•DateTime!
non-null

The date and time (ISO 8601 format) when the file was created.

•[FileError!]!
non-null

Any errors that have occurred on the file.

•FileStatus!
non-null

The status of the file.

•ID!
non-null

A globally-unique ID.

•Image

The image for the media. Returns null until status is READY.

•MediaContentType!
non-null

The media content type.

•[MediaError!]!
non-null

Any errors which have occurred on the media.

•[MediaWarning!]!
non-null

The warnings attached to the media.

•String

The MIME type of the image.

•MediaImageOriginalSource

The original source of the image.

•MediaPreviewImage

The preview image for the media.

•MediaStatus!
non-null

Current status of the media.

•DateTime!
non-null

The date and time (ISO 8601 format) when the file was last updated.

•Metafield
Deprecated
•MetafieldConnection!
non-nullDeprecated
•OBJECT

Represents a Shopify hosted 3D model.

•String

A word or phrase to describe the contents or the function of a file.

•Model3dBoundingBox

The 3d model's bounding box information.

•DateTime!
non-null

The date and time (ISO 8601 format) when the file was created.

•[FileError!]!
non-null

Any errors that have occurred on the file.

•String!
non-null

The 3d model's filename.

•FileStatus!
non-null

The status of the file.

•ID!
non-null

A globally-unique ID.

•MediaContentType!
non-null

The media content type.

•[MediaError!]!
non-null

Any errors which have occurred on the media.

•[MediaWarning!]!
non-null

The warnings attached to the media.

•Model3dSource

The 3d model's original source.

•MediaPreviewImage

The preview image for the media.

•[Model3dSource!]!
non-null

The 3d model's sources.

•MediaStatus!
non-null

Current status of the media.

•DateTime!
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.

•DateTime!
non-null

The date and time (ISO 8601 format) when the file was created.

•Int

The video's duration in milliseconds. This value is null unless the video's status field is READY.

•[FileError!]!
non-null

Any errors that have occurred on the file.

•String!
non-null

The video's filename.

•FileStatus!
non-null

The status of the file.

•ID!
non-null

A globally-unique ID.

•MediaContentType!
non-null

The media content type.

•[MediaError!]!
non-null

Any errors which have occurred on the media.

•[MediaWarning!]!
non-null

The warnings attached to the media.

•VideoSource

The video's original source. This value is null unless the video's status field is READY.

•MediaPreviewImage

The preview image for the media.

•[VideoSource!]!
non-null

The video's sources. This value is empty unless the video's status field is READY.

•MediaStatus!
non-null

Current status of the media.

•DateTime!
non-null

The date and time (ISO 8601 format) when the file was last updated.


Was this section helpful?