Developers » API methods » Wall » wall.getById
Wallwall.getById
Returns a list of posts from user or community walls by their IDs.
This method can be called by a service token. Only public data is returned.
This method can be called with a user token.
Parameters
postsUser or community IDs and post IDs, separated by underscores. Use a negative value to designate a community ID. Example:
93388_21539,93388_20904,2943_4276,-1_1

list of comma-separated words, required parameter
extended1 — to return user and community objects needed to display posts
0 — no additional fields are returned (default)
flag, either 1 or 0
copy_history_depthSets the number of parent elements to include in the array copy_history that is returned if the post is a repost from another wall.
int (number), default 2
fields
list of comma-separated words
Result
Returns a list of post objects.

If extended is set to 1, returns the following:
  • wall — Contains post objects.
  • profiles — Contains user objects with additional fields sex, photo, photo_medium_rec, and online.
  • groups — Contains community objects.

If the post is a copy of another post, returns an additional array copy_history with information about original posts.

Errors
Global errors can occur while running. See their descriptions on this page.
Version historyShow all
5.60
account.getInfo method returns an additional 2fa_required field for accounts with 2FA. Restriction for the feed parameter has been added in photos.get method.

button field has a new structure for attachments with link type.
5.53
can_message, ban_info, can_post, can_upload_doc, can_upload_video, can_see_all_posts, can_create_topic, is_favorite, is_hidden_from_feed fields in a community object are returned for the requests including access_token only.
5.52
Returns new objects with market and market_album type in message and wall attachments.
5.41
notifications.get method returns notifications about new market comment replies. newsfeed.getComments method returns new comments for market items. wall.get, wall.search, wall.getById methods return market_album in attachments.
5.40
Support fields parameter for user profiles
5.39
Returns new fields for attachments with link type: caption, is_external, product, application, rating and button.
5.37
Returns photo object for attachments with link type instead image_src и image_big fields.
5.20
Wiki page in post is returned as page object.
A new need_source parameter was added for method pages.get, source field isnt returned by default now.
5.19
Group fields start_date and finish_date became numbers (were strings).
If friend filter is enabled, field user_id is returned instead of uid.
Method fave.getLinks returns images with names photo_50 and photo_100 instead of image_src and image_middle.
5.7
New format of posts:
to_id instead of owner_id
reply_post_id instead of reply_to in copy_history field
5.6
Field post_type returns post instead of copy for reposts.
5.4
In all methods that return people objects, photo, photo_medium_rec fields were renamed to photo_50, photo_100.
In wall attachment from and copy_owner fields return as user or community object, not array.
5.1
Fix photos_list attachment. (photo_list before). Some other fixes that was not implemented in api 5.0
4.104
Photos_list attach new format.
4.102
New reposting format. Can contain nested reposts.
Affects methods wall.get, wall.getById
4.101
No album link in post text when album is attached.