igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Interface MediaRepostInput

    interface MediaRepostInput {
        audience?: number;
        carouselIndex?: number;
        deliveryClass?: string;
        feedPosition?: number;
        inventorySource?: string;
        like?: boolean;
        mediaId: string;
        rankingInfoToken?: string;
        tapSource?: string;
        text?: string;
    }
    Index

    Properties

    audience?: number

    Note audience; defaults to the repost default.

    carouselIndex?: number

    Zero-based carousel child index the repost targets; defaults to 0.

    deliveryClass?: string

    Like delivery_class (the app sends organic); omitted from the like when unset.

    feedPosition?: number

    Feed position of the acted-on item in its page: the like sends it as feed_position and the note as media_client_position, which the app sends equal (the like's feed_position 0 = the note's 0 in 450; 2 = 2 in 451). The note's position defaults to 0 when the caller is outside a feed and passes none; there is no second input for it.

    inventorySource?: string

    Feed inventory source; the like carries it as given, and the note sends it with the feed context.

    like?: boolean

    Also like the media first; defaults to false (the caller opts in).

    mediaId: string

    Container media id (<pk>_<authorPk>).

    rankingInfoToken?: string

    Feed logging token for the acted-on item (the feed item's ranking_info_token / logging_info_token). Sent as logging_info_token on the like and ranking_info_token on the note; omitted on the like, and the note carries neither it nor its inventory source, when the caller has no feed context.

    tapSource?: string

    Like tap_source (the app sends button); omitted from the like when unset.

    text?: string

    Optional repost text (max 80 chars). How it reaches the note is the build's fact: a 'note-with-text' build sends it in the note, an 'editor' build sets it with a final GraphQL step. An absent or empty text leaves the note blank and skips that step; a longer value fails with MediaRepostTextTooLongError before any request is sent.