Interface NewsfeedGetParams

interface NewsfeedGetParams {
    count?: number;
    end_time?: number;
    fields?: BaseUserGroupFields[];
    filters?: NewsfeedNewsfeedItemType[];
    max_photos?: number;
    return_banned?: number | boolean;
    section?: string;
    source_ids?: string;
    start_from?: string;
    start_time?: number;
    [key: string]: any;
}

Indexable

[key: string]: any

Properties

count?: number

Number of news items to return (default 50, maximum 100). For auto feed, you can use the 'new_offset' parameter returned by this method.

end_time?: number

Latest timestamp (in Unix time) of a news item to return. By default, the current time.

max_photos?: number

Maximum number of photos to return. By default, '5'.

return_banned?: number | boolean

'1' - to return news items from banned sources

section?: string
source_ids?: string

Sources to obtain news from, separated by commas. User IDs can be specified in formats '' or 'u' , where '' is the user's friend ID. Community IDs can be specified in formats '-' or 'g' , where '' is the community ID. If the parameter is not set, all of the user's friends and communities are returned, except for banned sources, which can be obtained with the [vk.com/dev/newsfeed.getBanned|newsfeed.getBanned] method.

start_from?: string

identifier required to get the next page of results. Value for this parameter is returned in 'next_from' field in a reply.

start_time?: number

Earliest timestamp (in Unix time) of a news item to return. By default, 24 hours ago.

Generated using TypeDoc