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

    Function organicTimeSpent

    • instagram_organic_time_spent -- time spent viewing a feed item.

      The item and the context carry the answer's facts (media, author, tokens, feed request); the options carry the visit's facts, which only the screen that showed the item knows: the chain it was shown under, how long it stayed in front, the relationship it reported and the fraction of the media it saw. A visit that knows none of a field's facts says so with null, and the field is left out instead of filled with a constant; undefined keeps the preset's own default.

      Parameters

      • item: FeedVideoItem
      • ctx: FeedContext
      • Optionalopts: {
            followStatus?: "not_following" | "following" | null;
            navChain?: string;
            timespentMs?: number;
            viewPercent?: number | null;
        }
        • OptionalfollowStatus?: "not_following" | "following" | null

          The visit's relationship to the item's author. null — the visit knows none (the profile named no relationship) — omits follow_status.

        • OptionalnavChain?: string

          The chain the visit was shown under; the feed's own when absent.

        • OptionaltimespentMs?: number

          The visit's duration in ms; a made-up duration when absent.

        • OptionalviewPercent?: number | null

          The fraction of the media the visit saw, 0..1. null — the media's duration is unknown — omits maxViewPercent/avgViewPercent.

      Returns Effect<PigeonEvent, never, MobileDevice | MobileSession | MobileNetworkWire>