Returns wall posts by their IDs.

This method can be called without an access token.

Parameters

posts
string

Comma-separated list of post IDs. For example, 1,453,24302. For compatibility with VK API, the owner_post format is also accepted, but owner IDs are ignored.

extended
boolean

Whether to return user and group objects related to the posts.

By default false.

fields
string

Comma-separated list of user and group profile fields to be returned. Only has effect if extended is true.

repost_history_depth
integer (0..10)

Determines the size of the repost_history array. For example, if a post is a repost of another repost, with repost_history_depth = 1, only the first repost will be returned.

By default 2.

Result

If extended is false, an array of wall posts.

If extended is true, an object with items containing an array of wall posts, and profiles and groups with arrays of user and group objects respectively.

Errors

Global errors may occur when calling this method.