Member Junction
    Preparing search index...

    The Twitter/X v2 API envelope: the payload sits under data, with paging and result counts under meta and any partial failures under errors.

    interface TwitterApiResponse<T> {
        data: T;
        errors?: { detail?: string; title?: string; type?: string }[];
        includes?: { users?: TwitterUser[] };
        meta?: {
            newest_id?: string;
            next_token?: string;
            oldest_id?: string;
            result_count?: number;
        };
    }

    Type Parameters

    • T
    Index

    Properties

    data: T
    errors?: { detail?: string; title?: string; type?: string }[]
    includes?: { users?: TwitterUser[] }
    meta?: {
        newest_id?: string;
        next_token?: string;
        oldest_id?: string;
        result_count?: number;
    }