Interface ITweetFilter

The filter to be used for searching tweets.

interface ITweetFilter {
    endDate?: Date;
    excludeWords?: string[];
    fromUsers?: string[];
    hashtags?: string[];
    includePhrase?: string;
    includeWords?: string[];
    language?: string;
    links?: boolean;
    list?: string;
    maxId?: string;
    mentions?: string[];
    minLikes?: number;
    minReplies?: number;
    minRetweets?: number;
    optionalWords?: string[];
    quoted?: string;
    replies?: boolean;
    sinceId?: string;
    startDate?: Date;
    top?: boolean;
    toUsers?: string[];
}

Implemented by

Properties

endDate?: Date

The date upto which tweets are to be searched.

excludeWords?: string[]

The list of words to exclude from search.

fromUsers?: string[]

The list of usernames whose tweets are to be searched.

'@' must be excluded from the username!

hashtags?: string[]

The list of hashtags to search.

'#' must be excluded from the hashtag!

includePhrase?: string

The exact phrase to search.

includeWords?: string[]

The list of words to search.

language?: string

The language of the tweets to search.

links?: boolean

Whether to fetch tweets that are links or not.

list?: string

The list from which tweets are to be searched.

maxId?: string

The id of the tweet, before which the tweets are to be searched.

mentions?: string[]

The list of username mentioned in the tweets to search.

'@' must be excluded from the username!

minLikes?: number

The minimun number of likes to search by.

minReplies?: number

The minimum number of replies to search by.

minRetweets?: number

The minimum number of retweets to search by.

optionalWords?: string[]

The optional words to search.

quoted?: string

The id of the tweet which is quoted in the tweets to search.

replies?: boolean

Whether to fetch tweets that are replies or not.

sinceId?: string

The id of the tweet, after which the tweets are to be searched.

startDate?: Date

The date starting from which tweets are to be searched.

top?: boolean

Whether to fetch top tweets or not.

toUsers?: string[]

The list of username to whom the tweets to be searched, are adressed.

'@' must be excluded from the username!