--- title: Media - Storefront API description: Represents a media interface. api_version: unstable api_name: storefront source_url: html: 'https://shopify.dev/docs/api/storefront/unstable/interfaces/Media' md: 'https://shopify.dev/docs/api/storefront/unstable/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/unstable/scalars/String) A word or phrase to share the nature or contents of a media. * id [ID!](https://shopify.dev/docs/api/storefront/unstable/scalars/ID) non-null A globally-unique ID. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/storefront/unstable/enums/MediaContentType) non-null The media content type. * presentation [Media​Presentation](https://shopify.dev/docs/api/storefront/unstable/objects/MediaPresentation) The presentation for a media. * preview​Image [Image](https://shopify.dev/docs/api/storefront/unstable/objects/Image) The preview image for the media. *** ## Types implemented in * [External​Video](https://shopify.dev/docs/api/storefront/unstable/objects/ExternalVideo) OBJECT Represents a video hosted outside of Shopify. * alt [String](https://shopify.dev/docs/api/storefront/unstable/scalars/String) A word or phrase to share the nature or contents of a media. * embed​Url [URL!](https://shopify.dev/docs/api/storefront/unstable/scalars/URL) non-null The embed URL of the video for the respective host. * host [Media​Host!](https://shopify.dev/docs/api/storefront/unstable/enums/MediaHost) non-null The host of the external video. * id [ID!](https://shopify.dev/docs/api/storefront/unstable/scalars/ID) non-null A globally-unique ID. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/storefront/unstable/enums/MediaContentType) non-null The media content type. * origin​Url [URL!](https://shopify.dev/docs/api/storefront/unstable/scalars/URL) non-null The origin URL of the video on the respective host. * presentation [Media​Presentation](https://shopify.dev/docs/api/storefront/unstable/objects/MediaPresentation) The presentation for a media. * preview​Image [Image](https://shopify.dev/docs/api/storefront/unstable/objects/Image) The preview image for the media. * embedded​Url [URL!](https://shopify.dev/docs/api/storefront/unstable/scalars/URL) non-nullDeprecated * [Media​Image](https://shopify.dev/docs/api/storefront/unstable/objects/MediaImage) OBJECT Represents a Shopify hosted image. * alt [String](https://shopify.dev/docs/api/storefront/unstable/scalars/String) A word or phrase to share the nature or contents of a media. * id [ID!](https://shopify.dev/docs/api/storefront/unstable/scalars/ID) non-null A globally-unique ID. * image [Image](https://shopify.dev/docs/api/storefront/unstable/objects/Image) The image for the media. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/storefront/unstable/enums/MediaContentType) non-null The media content type. * presentation [Media​Presentation](https://shopify.dev/docs/api/storefront/unstable/objects/MediaPresentation) The presentation for a media. * preview​Image [Image](https://shopify.dev/docs/api/storefront/unstable/objects/Image) The preview image for the media. * [Model3d](https://shopify.dev/docs/api/storefront/unstable/objects/Model3d) OBJECT Represents a Shopify hosted 3D model. * alt [String](https://shopify.dev/docs/api/storefront/unstable/scalars/String) A word or phrase to share the nature or contents of a media. * id [ID!](https://shopify.dev/docs/api/storefront/unstable/scalars/ID) non-null A globally-unique ID. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/storefront/unstable/enums/MediaContentType) non-null The media content type. * presentation [Media​Presentation](https://shopify.dev/docs/api/storefront/unstable/objects/MediaPresentation) The presentation for a media. * preview​Image [Image](https://shopify.dev/docs/api/storefront/unstable/objects/Image) The preview image for the media. * sources [\[Model3d​Source!\]!](https://shopify.dev/docs/api/storefront/unstable/objects/Model3dSource) non-null The sources for a 3d model. * [Video](https://shopify.dev/docs/api/storefront/unstable/objects/Video) OBJECT Represents a Shopify hosted video. * alt [String](https://shopify.dev/docs/api/storefront/unstable/scalars/String) A word or phrase to share the nature or contents of a media. * id [ID!](https://shopify.dev/docs/api/storefront/unstable/scalars/ID) non-null A globally-unique ID. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/storefront/unstable/enums/MediaContentType) non-null The media content type. * presentation [Media​Presentation](https://shopify.dev/docs/api/storefront/unstable/objects/MediaPresentation) The presentation for a media. * preview​Image [Image](https://shopify.dev/docs/api/storefront/unstable/objects/Image) The preview image for the media. * sources [\[Video​Source!\]!](https://shopify.dev/docs/api/storefront/unstable/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 } ```