Represents the media object for a shortcode in Instagram. This interface contains all metadata and related information about a media item, such as videos, photos, or reels.

interface XdtShortcodeMedia {
    __isXDTGraphMediaInterface: string;
    __typename: string;
    accessibility_caption: string;
    can_see_insights_as_brand: boolean;
    caption_is_edited: boolean;
    clips_music_attribution_info: ClipsMusicAttributionInfo;
    coauthor_producers: CoauthorProducer[];
    commenting_disabled_for_viewer: boolean;
    comments_disabled: boolean;
    dash_info: DashInfo;
    dimensions: Dimensions;
    display_resources: DisplayResource[];
    display_url: string;
    edge_media_preview_comment: EdgeMediaPreview;
    edge_media_preview_like: EdgeMediaPreview;
    edge_media_to_caption: EdgeMediaToCaptionClass;
    edge_media_to_hoisted_comment: EdgeMediaToCaptionClass;
    edge_media_to_parent_comment: EdgeMediaToParentComment;
    edge_media_to_sponsor_user: EdgeMediaToCaptionClass;
    edge_media_to_tagged_user: EdgeMediaToCaptionClass;
    edge_web_media_to_related_media: EdgeMediaToCaptionClass;
    encoding_status: string;
    fact_check_information: string;
    fact_check_overall_rating: string;
    gating_info: any;
    has_audio: boolean;
    has_ranked_comments: boolean;
    id: string;
    is_ad: boolean;
    is_affiliate: boolean;
    is_paid_partnership: boolean;
    is_published: boolean;
    is_video: boolean;
    like_and_view_counts_disabled: boolean;
    location: any;
    media_overlay_info: any;
    media_preview: string;
    nft_asset_info: any;
    owner: Owner;
    pinned_for_users: any[];
    product_type: string;
    sensitivity_friction_info: any;
    sharing_friction_info: SharingFrictionInfo;
    shortcode: string;
    taken_at_timestamp: number;
    thumbnail_src: string;
    title: string;
    tracking_token: string;
    upcoming_event: any;
    video_duration: number;
    video_play_count: number;
    video_url: string;
    video_view_count: number;
    viewer_can_reshare: boolean;
    viewer_has_liked: boolean;
    viewer_has_saved: boolean;
    viewer_has_saved_to_collection: boolean;
    viewer_in_photo_of_you: boolean;
}

Properties

__isXDTGraphMediaInterface: string

The interface type of the media object. Used for distinguishing media subtypes.

__typename: string

The typename of the media object. Typically indicates the type of media (e.g., "GraphImage", "GraphVideo").

accessibility_caption: string

Accessibility caption for the media, if provided, to improve screen reader compatibility.

can_see_insights_as_brand: boolean

Indicates whether the viewer can see insights as a brand account.

caption_is_edited: boolean

Indicates whether the caption has been edited.

clips_music_attribution_info: ClipsMusicAttributionInfo

Music attribution information for clips or reels.

coauthor_producers: CoauthorProducer[]

Coauthors or collaborators for the media.

commenting_disabled_for_viewer: boolean

Indicates whether commenting is disabled for the viewer.

comments_disabled: boolean

Indicates whether comments are disabled for the media.

dash_info: DashInfo

Dash information for video playback, if the media is a video.

dimensions: Dimensions

The dimensions of the media item, including width and height.

display_resources: DisplayResource[]

Array of display resources, which are different versions of the media for varying resolutions.

display_url: string

The URL of the media's main display image or video.

edge_media_preview_comment: EdgeMediaPreview

Preview comments for the media.

edge_media_preview_like: EdgeMediaPreview

Preview likes on the media.

edge_media_to_caption: EdgeMediaToCaptionClass

Caption information for the media.

edge_media_to_hoisted_comment: EdgeMediaToCaptionClass

Hoisted comments (pinned or featured comments).

edge_media_to_parent_comment: EdgeMediaToParentComment

Parent comments associated with the media.

edge_media_to_sponsor_user: EdgeMediaToCaptionClass

Sponsored users tagged in the media.

edge_media_to_tagged_user: EdgeMediaToCaptionClass

Tagged users in the media.

edge_web_media_to_related_media: EdgeMediaToCaptionClass

Related media shown on the web interface.

encoding_status: string

Encoding status of the media, if applicable.

fact_check_information: string

Additional fact-checking information, if any.

fact_check_overall_rating: string

Overall rating from fact-checking processes, if applicable.

gating_info: any

Gating information for the media, if any. Represents restrictions or controls applied to the media.

has_audio: boolean

Indicates whether the media contains audio.

has_ranked_comments: boolean

Indicates whether the media has ranked comments.

id: string

The unique identifier of the media.

is_ad: boolean

Indicates whether the media is an advertisement.

is_affiliate: boolean

Indicates whether the media is an affiliate post.

is_paid_partnership: boolean

Indicates whether the media is a paid partnership.

is_published: boolean

Indicates whether the media is published.

is_video: boolean

Indicates whether the media is a video.

like_and_view_counts_disabled: boolean

Indicates whether like and view counts are disabled.

location: any

Location information, if associated with the media.

media_overlay_info: any

Media overlay information, such as filters or stickers applied to the media.

media_preview: string

The media preview string (usually a base64-encoded preview).

nft_asset_info: any

NFT asset information, if the media is an NFT.

owner: Owner

The owner of the media item.

pinned_for_users: any[]

Users pinned for the media (e.g., pinned comments or mentions).

product_type: string

The product type of the media (e.g., "feed", "story", "reels").

sensitivity_friction_info: any

Sensitivity friction information, if the media has sensitive content.

sharing_friction_info: SharingFrictionInfo

Sharing friction information, which restricts or controls how the media can be shared.

shortcode: string

The shortcode of the media, which is a unique alphanumeric code used in URLs.

taken_at_timestamp: number

The timestamp (in seconds) when the media was created.

thumbnail_src: string

The URL of the thumbnail image for the media.

title: string

The title of the media, if provided.

tracking_token: string

The tracking token for analytics purposes.

upcoming_event: any

Upcoming event information, if associated with the media.

video_duration: number

The duration of the video in seconds, if the media is a video.

video_play_count: number

The play count for the video.

video_url: string

The URL of the video file, if the media is a video.

video_view_count: number

The view count for the video.

viewer_can_reshare: boolean

Indicates whether the viewer can reshare the media.

viewer_has_liked: boolean

Indicates whether the viewer has liked the media.

viewer_has_saved: boolean

Indicates whether the viewer has saved the media.

viewer_has_saved_to_collection: boolean

Indicates whether the viewer has saved the media to a collection.

viewer_in_photo_of_you: boolean

Indicates whether the viewer is tagged in the media.