--- title: Media - Storefront API description: Represents a media interface. api_version: 2025-10 api_name: storefront type: interface api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/interfaces/Media md: https://shopify.dev/docs/api/storefront/latest/interfaces/Media.md --- # Media interface Requires `unauthenticated_read_product_listings` access scope. Represents a media interface. ## Fields * alt [String](https://shopify.dev/docs/api/storefront/latest/scalars/String) A word or phrase to share the nature or contents of a media. * id [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID) non-null A globally-unique ID. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/storefront/latest/enums/MediaContentType) non-null The media content type. * presentation [Media​Presentation](https://shopify.dev/docs/api/storefront/latest/objects/MediaPresentation) The presentation for a media. * preview​Image [Image](https://shopify.dev/docs/api/storefront/latest/objects/Image) The preview image for the media. *** ## Types implemented in * [External​Video](https://shopify.dev/docs/api/storefront/latest/objects/ExternalVideo) OBJECT Represents a video hosted outside of Shopify. * alt [String](https://shopify.dev/docs/api/storefront/latest/scalars/String) A word or phrase to share the nature or contents of a media. * embed​Url [URL!](https://shopify.dev/docs/api/storefront/latest/scalars/URL) non-null The embed URL of the video for the respective host. * host [Media​Host!](https://shopify.dev/docs/api/storefront/latest/enums/MediaHost) non-null The host of the external video. * id [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID) non-null A globally-unique ID. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/storefront/latest/enums/MediaContentType) non-null The media content type. * origin​Url [URL!](https://shopify.dev/docs/api/storefront/latest/scalars/URL) non-null The origin URL of the video on the respective host. * presentation [Media​Presentation](https://shopify.dev/docs/api/storefront/latest/objects/MediaPresentation) The presentation for a media. * preview​Image [Image](https://shopify.dev/docs/api/storefront/latest/objects/Image) The preview image for the media. * embedded​Url [URL!](https://shopify.dev/docs/api/storefront/latest/scalars/URL) non-nullDeprecated * [Media​Image](https://shopify.dev/docs/api/storefront/latest/objects/MediaImage) OBJECT Represents a Shopify hosted image. * alt [String](https://shopify.dev/docs/api/storefront/latest/scalars/String) A word or phrase to share the nature or contents of a media. * id [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID) non-null A globally-unique ID. * image [Image](https://shopify.dev/docs/api/storefront/latest/objects/Image) The image for the media. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/storefront/latest/enums/MediaContentType) non-null The media content type. * presentation [Media​Presentation](https://shopify.dev/docs/api/storefront/latest/objects/MediaPresentation) The presentation for a media. * preview​Image [Image](https://shopify.dev/docs/api/storefront/latest/objects/Image) The preview image for the media. * [Model3d](https://shopify.dev/docs/api/storefront/latest/objects/Model3d) OBJECT Represents a Shopify hosted 3D model. * alt [String](https://shopify.dev/docs/api/storefront/latest/scalars/String) A word or phrase to share the nature or contents of a media. * id [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID) non-null A globally-unique ID. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/storefront/latest/enums/MediaContentType) non-null The media content type. * presentation [Media​Presentation](https://shopify.dev/docs/api/storefront/latest/objects/MediaPresentation) The presentation for a media. * preview​Image [Image](https://shopify.dev/docs/api/storefront/latest/objects/Image) The preview image for the media. * sources [\[Model3d​Source!\]!](https://shopify.dev/docs/api/storefront/latest/objects/Model3dSource) non-null The sources for a 3d model. * [Video](https://shopify.dev/docs/api/storefront/latest/objects/Video) OBJECT Represents a Shopify hosted video. * alt [String](https://shopify.dev/docs/api/storefront/latest/scalars/String) A word or phrase to share the nature or contents of a media. * id [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID) non-null A globally-unique ID. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/storefront/latest/enums/MediaContentType) non-null The media content type. * presentation [Media​Presentation](https://shopify.dev/docs/api/storefront/latest/objects/MediaPresentation) The presentation for a media. * preview​Image [Image](https://shopify.dev/docs/api/storefront/latest/objects/Image) The preview image for the media. * sources [\[Video​Source!\]!](https://shopify.dev/docs/api/storefront/latest/objects/VideoSource) non-null The sources for a video. *** ##### Variables ```json { "alt": "", "id": "", "mediaContentType": "", "presentation": "", "previewImage": "" } ``` ##### Schema ```graphql interface Media { alt: String id: ID! mediaContentType: MediaContentType! presentation: MediaPresentation previewImage: Image } ```