Interface SearchParams

interface SearchParams {
    accountId?: null | string;
    excludeUnreviewed?: null | boolean;
    following?: null | boolean;
    limit?: null | number;
    maxId?: null | string;
    minId?: null | string;
    q: string;
    resolve?: null | boolean;
    sinceId?: null | string;
    type?: null | mastodon.rest.v2.SearchType;
}

Hierarchy (view full)

Properties

accountId?: null | string

If provided, statuses returned will be authored only by this account

excludeUnreviewed?: null | boolean

Filter out unreviewed tags? Defaults to false. Use true when trying to find trending tags.

following?: null | boolean

Only include accounts that the user is following. Defaults to false.

limit?: null | number

Maximum number of results to return per page. Defaults to 40. NOTE: Pagination is done with the Link header from the response.

maxId?: null | string

Return results older than this ID.

minId?: null | string

Get a list of items with ID greater than this value excluding this ID

q: string

Attempt WebFinger lookup. Defaults to false.

resolve?: null | boolean

Attempt WebFinger look-up

sinceId?: null | string

Return results newer than this ID.

type?: null | mastodon.rest.v2.SearchType

Enum(accounts, hashtags, statuses)