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

    Interface TransportRequest

    interface TransportRequest {
        appNetSessionHeader?: boolean;
        body?: string | Buffer<ArrayBufferLike>;
        bodyWrites?: readonly Buffer<ArrayBufferLike>[];
        clientProfile?: ClientProfile;
        friendlyNameDefault?: boolean;
        graphqlClientLibraryDefault?: boolean;
        gzip?: boolean;
        headers?: Record<string, string>;
        method?: string;
        tigonRetryHeader?: boolean;
        timeoutMs?: number;
        url: string;
    }
    Index

    Properties

    appNetSessionHeader?: boolean

    Emit the transport's x-fb-appnetsession-nid / -sid pair when the client's profile sends it (default true). Set false for requests the app sends without the pair.

    body?: string | Buffer<ArrayBufferLike>
    bodyWrites?: readonly Buffer<ArrayBufferLike>[]

    The body as the app writes it into the connection's stream, one entry per write — a body of unknown size. A client of the Android system HTTP stack sends it with Transfer-Encoding: chunked (okio's 8192-octet chunks); the other paths refuse it.

    clientProfile?: ClientProfile

    Which of the app's network client stacks sends the request. Absent: the main API stack (or the iOS profile's single client). 'mqtt-analytics' and 'urlconnection' are the two HTTP/1.1 clients of the Android system HTTP stack, each a connection and framing of its own; the transport writes the stack's own headers around the caller's list, which is the wire order and spelling as given, and refuses the Tigon options above on them.

    friendlyNameDefault?: boolean

    Inject the transport's URL-derived default x-fb-friendly-name (default true). Set false for requests the app sends without a friendly name.

    graphqlClientLibraryDefault?: boolean

    Inject x-graphql-client-library: pando on the Pando GraphQL URLs (graphql_www, graphql/query) when the request sets no value (default true). Set false for GraphQL calls the app sends without a client library.

    gzip?: boolean
    headers?: Record<string, string>
    method?: string
    tigonRetryHeader?: boolean

    Emit the Rust-owned x-tigon-is-retry header (default true). Set false for requests the app issues without the Tigon retry marker.

    timeoutMs?: number
    url: string