interface IPostModels {
    caption: null | string;
    comment_count: number;
    likes: number;
    links: MediaUrls[];
    media_count: number;
    media_id: string;
    music?: null | ClipsMetadata;
    name: string;
    postType: string;
    shortcode: string;
    taken_at_timestamp: number;
    username: string;
    video_duration: null | number;
}

Properties

caption: null | string

an caption from instagram post

comment_count: number

comment count

likes: number

the number of user who like a instagram post

links: MediaUrls[]

media urls

media_count: number

total media

media_id: string

media id

music?: null | ClipsMetadata

music info will show if post is Reel

name: string

Instagram Full Name

postType: string

Instagram Post type

shortcode: string

post shortcode

taken_at_timestamp: number

a timestamp of posted media

username: string

an Instagram Username

video_duration: null | number

if post is video