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

    Variable TypeaheadResultSchemaConst

    TypeaheadResultSchema: Union<
        readonly [
            Struct<
                {
                    __typename: Literal<"XDTTypeaheadSearchKeyword">;
                    keyword_lazified: Struct<
                        {
                            id: String;
                            name: String;
                            user: optional<
                                NullOr<
                                    Struct<
                                        {
                                            full_name: optional<(...)>;
                                            id: String;
                                            is_private: optional<(...)>;
                                            is_verified: optional<(...)>;
                                            latest_reel_media: optional<(...)>;
                                            profile_pic_url: optional<(...)>;
                                            search_serp_type: optional<(...)>;
                                            username: String;
                                        },
                                    >,
                                >,
                            >;
                        },
                    >;
                },
            >,
            Struct<
                {
                    __typename: Literal<"XDTTypeaheadSearchUser">;
                    rank_token: optional<String>;
                    user: Struct<
                        {
                            full_name: optional<String>;
                            id: String;
                            is_private: optional<Boolean>;
                            is_verified: optional<Boolean>;
                            latest_reel_media: optional<NullOr<Number>>;
                            profile_pic_url: optional<String>;
                            search_serp_type: optional<NullOr<Number>>;
                            username: String;
                        },
                    >;
                },
            >,
            Struct<
                {
                    __typename: Literal<"XDTTypeaheadSearchHashtag">;
                    hashtag: Struct<
                        { id: String; media_count: optional<Number>; name: String },
                    >;
                },
            >,
            Struct<
                {
                    __typename: Literal<"XDTTypeaheadSearchOverfetchedKeywords">;
                    keywords: $Array<
                        Struct<
                            {
                                id: String;
                                name: String;
                                user: optional<
                                    NullOr<
                                        Struct<
                                            {
                                                full_name: ...;
                                                id: ...;
                                                is_private: ...;
                                                is_verified: ...;
                                                latest_reel_media: ...;
                                                profile_pic_url: ...;
                                                search_serp_type: ...;
                                                username: ...;
                                            },
                                        >,
                                    >,
                                >;
                            },
                        >,
                    >;
                    num_keywords_to_show: optional<Number>;
                    query_text: String;
                },
            >,
            UnknownTaggedItemCodec,
        ],
    > = ...

    The typeahead result union: what the app shows as the user types. It is open (a result class the server adds is the last member, TypeaheadUnknownItem); a known class whose body does not decode still fails.