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

    Function reelsViewerFactsOf

    • Internal

      The facts the input carries: the chaining session it resolves to and the position of the reel it opens on — the tapped reel's index in a list, 0 for a single reel or the bottom bar's stream (which starts at its first reel).

      Parameters

      • input:
            | {
                chaining?: {
                    chainingSessionId?: string;
                    mediaPctWatched?: string
                    | number;
                    rankingSessionId?: string;
                };
                index: number;
                reels: readonly {
                    code: string;
                    id: string;
                    media_type: number;
                    organic_tracking_token?: string;
                    pk: string;
                    taken_at?: number;
                    user?: { id?: string; pk?: string };
                    video_duration?: number;
                }[];
            }
            | {
                chainingPosition?: string
                | number;
                chainingSeedMediaId?: string;
                chainingSessionId?: string;
                clientPosition?: string | number;
                friendsLane?: false;
                media?: {
                    code: string;
                    id: string;
                    media_type: number;
                    organic_tracking_token?: string;
                    pk: string;
                    taken_at?: number;
                    user?: { id?: string; pk?: string };
                    video_duration?: number;
                };
                mediaPctWatched?: string
                | number;
                rankingSessionId?: string;
                storyRankingToken?: string;
            }
        • {
              chaining?: {
                  chainingSessionId?: string;
                  mediaPctWatched?: string | number;
                  rankingSessionId?: string;
              };
              index: number;
              reels: readonly {
                  code: string;
                  id: string;
                  media_type: number;
                  organic_tracking_token?: string;
                  pk: string;
                  taken_at?: number;
                  user?: { id?: string; pk?: string };
                  video_duration?: number;
              }[];
          }
        • {
              chainingPosition?: string | number;
              chainingSeedMediaId?: string;
              chainingSessionId?: string;
              clientPosition?: string | number;
              friendsLane?: false;
              media?: {
                  code: string;
                  id: string;
                  media_type: number;
                  organic_tracking_token?: string;
                  pk: string;
                  taken_at?: number;
                  user?: { id?: string; pk?: string };
                  video_duration?: number;
              };
              mediaPctWatched?: string
              | number;
              rankingSessionId?: string;
              storyRankingToken?: string;
          }
          • 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 ReadonlyfriendsLane?: false

            The tab entry's friends-lane prefetch (clips/discover/social/) is the bottom bar tap's; the landing after a published reel opens the same tab without it (run-reel-plain-20261026-2056), so it declares false. Absent: the entry sends it.

          • Optional Readonlymedia?: {
                code: string;
                id: string;
                media_type: number;
                organic_tracking_token?: string;
                pk: string;
                taken_at?: number;
                user?: { id?: string; pk?: string };
                video_duration?: number;
            }
            • Readonlycode: string

              The media's shortcode, the item's identity key.

            • Readonlyid: string

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

            • Readonlymedia_type: number
            • Optional Readonlyorganic_tracking_token?: string
            • Readonlypk: string

              The media's numeric pk.

            • Optional Readonlytaken_at?: number
            • Optional Readonlyuser?: { id?: string; pk?: string }
            • Optional Readonlyvideo_duration?: number

              The clip's length in seconds, when the answer carries it.

          • Optional ReadonlymediaPctWatched?: string | number

            Percentage of the clip watched before the like (0–100), the app's measurement.

          • Optional ReadonlyrankingSessionId?: string

            Ranking session id.

          • Optional ReadonlystoryRankingToken?: string

            The reel's story ranking token.

      Returns ReelsViewerFacts