Interface IFetchArgs

Options specifying the data that is to be fetched.

interface IFetchArgs {
    activeConversationId?: string;
    conversationId?: string;
    count?: number;
    cursor?: string;
    filter?: ITweetFilter;
    fromTime?: Date;
    granularity?: RawAnalyticsGranularity;
    id?: string;
    ids?: string[];
    isMetatagsQuery?: boolean;
    maxId?: string;
    metrics?: RawAnalyticsMetric[];
    showVerifiedFollowers?: boolean;
    sortBy?: TweetRepliesSortType;
    toTime?: Date;
    withListeners?: boolean;
    withReplays?: boolean;
}

Implemented by

Properties

activeConversationId?: string

The id of the active conversation.

  • Required only for ResourceType.DM_USER_UPDATES.
conversationId?: string

The id of the conversation to fetch.

count?: number

The number of data items to fetch.

cursor?: string

The cursor to the batch of data to fetch.

  • May be used for cursored resources.
  • Has no effect for other resources.
filter?: ITweetFilter

The filter for searching tweets.

Required when searching for tweets using ResourceType.TWEET_SEARCH.

fromTime?: Date

The date to start fetching data from.

  • Only works for EResourceType.USER_ANALYTICS.

The granularity of the data to fetch.

  • Only works for EResourceType.USER_ANALYTICS.
id?: string

The id of the target resource.

ids?: string[]

The IDs of the target resources.

isMetatagsQuery?: boolean

Whether to request metatags for space details.

maxId?: string

The maximum id of the data to fetch.

metrics?: RawAnalyticsMetric[]

The metrics to fetch.

  • Only works for EResourceType.USER_ANALYTICS.
showVerifiedFollowers?: boolean

Show the verified follower count and relationship counts in the response.

  • Only works for EResourceType.USER_ANALYTICS.

The sorting to use for tweet results.

toTime?: Date

The date to end fetching data at.

  • Only works for EResourceType.USER_ANALYTICS.
withListeners?: boolean

Whether to include listeners information when fetching space details.

withReplays?: boolean

Whether to include replay information when fetching space details.