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

    Interface ReelsViewerReelState

    What acting on one reel needs: the media, where it sits in the viewer, its clip's length and the viewer's chaining context its like and comments echo (the host's state). Public because the item handle's declaration names it; it is the item's state, not an entry point — a caller reaches a reel's actions through the handle, never this type.

    interface ReelsViewerReelState {
        authorPk: string | undefined;
        chaining: {
            chainingPosition?: string | number;
            chainingSeedMediaId?: string;
            chainingSessionId?: string;
            clientPosition?: string | number;
            mediaPctWatched?: string | number;
            rankingSessionId?: string;
            storyRankingToken?: string;
        };
        delivery: "tail"
        | "head";
        followStatus: "following" | "not_following" | undefined;
        fromStream: boolean;
        inventorySource: string | undefined;
        loggingInfoToken: string | undefined;
        mediaId: string;
        mediaPk: string;
        mediaType: number;
        position: number;
        startPosition: number;
        takenAt: number | undefined;
        trackingToken: string | undefined;
        videoDuration: number | undefined;
    }
    Index

    Properties

    authorPk: string | undefined

    The media's author pk, as the telemetry names it; undefined for a media whose answer and id name none.

    chaining: {
        chainingPosition?: string | number;
        chainingSeedMediaId?: string;
        chainingSessionId?: string;
        clientPosition?: string | number;
        mediaPctWatched?: string | number;
        rankingSessionId?: string;
        storyRankingToken?: string;
    }

    Type Declaration

    • Optional ReadonlychainingPosition?: string | number

      Zero-based position in the chaining session.

    • Optional ReadonlychainingSeedMediaId?: string

      Seed media id of the chaining session (chaining_seed_media_id), in the form the caller holds it.

    • Optional ReadonlychainingSessionId?: string

      Opaque chaining-session id.

    • Optional ReadonlyclientPosition?: string | number

      Client position in the viewer.

    • Optional ReadonlymediaPctWatched?: string | number

      The watched fraction as the caller measured it, sent as written (recordings show fractions above 1).

    • Optional ReadonlyrankingSessionId?: string

      Ranking session id.

    • Optional ReadonlystoryRankingToken?: string

      The reel's story ranking token.

    delivery: "tail" | "head"

    Whether the viewer's first page delivered the reel or a later one did.

    followStatus: "following" | "not_following" | undefined

    The viewer's relationship to the author, from the answer's friendship_status; undefined when the answer names none (the reel's like logs nothing then).

    fromStream: boolean

    Whether the viewer's stream request delivered the reel (a page the app's flash cache holds), or the viewer was handed it: the profile's Reels tab list, the reel an edge named.

    inventorySource: string | undefined

    The media answer's inventory_source: the repost note's inventory_source, when the answer names one.

    loggingInfoToken: string | undefined

    The media answer's logging_info_token: the repost note's ranking_info_token, when the answer carries one.

    mediaId: string
    mediaPk: string
    mediaType: number
    position: number

    The reel's position in the viewer (its index in the tab's list, or in the page it came from).

    startPosition: number

    The position of the viewer's first reel: the chaining session begins there, at position 0.

    takenAt: number | undefined

    The media answer's taken_at, when the answer carries one.

    trackingToken: string | undefined

    The media answer's organic_tracking_token: the repost note's tracking_token, when the answer carries one.

    videoDuration: number | undefined

    The clip's length in seconds, when the answer named it — what the watched percentage divides by.