newsfeed.search
Returns search results by statuses.
Parameters
string
Search query string (e.g., New Year).
checkbox
1 — to return additional information about the user or community that placed the post.
positive
Number of posts to return.
string
Geographical latitude point (in degrees, -90 to 90) within which to search.
string
Geographical longitude point (in degrees, -180 to 180) within which to search.
positive
Earliest timestamp (in Unix time) of a news item to return. By default, 24 hours ago.
positive
Latest timestamp (in Unix time) of a news item to return. By default, the current time.
string
ID of the last obtained post. (Returned in search results to exclude already obtained posts from a new query selection).
positive
Offset needed to select a specific subset of items.
string
string
Additional fields of profiles and communities to return.
Result
Returns the total number of posts and an array of wall objects, as well as the following fields:
- •owner_id — Post owner ID. If the post was left by a community, the parameter is -gid (group ID preceded by a minus sign).
If extended is set to 1, also returns the following:
Error codes
Common errors may occur during execution
Linked versions
Go to API versions page- •
In return objects that describe community , появилось новое поле
is_messages_blocked. - •
В Callback API Added new events:
message_allowandmessage_deny. Методgroups.setCallbackSettingstwo new parameters, and the methodgroups.getCallbackSettingsreturns two new fields, respectively.
If no end date is specified in the method call parameters, return objects that describe community They no longer have a field.. finish_data . Previously, this field was present in the response and contained the default, equal to start_date + 2 hours.
- •
In the object that describes community The type of fields has changed.
start_dateandfinish_dateFrom string to numeric. - •
Methods that work with news, when the filter is installed
friendReturn the fielduser_idinstead ofuid. - •
In the method
fave.getLinksImages are returned in the fieldsphoto_50andphoto_100instead ofimage_srcandimage_middle.
- •
In method
newsfeed.searchadded parameterextended, which returns the full results with all the necessary community and user data. - •
In the method
friends.areFriendsAltered field generation algorithmsign. Now he takes into accountidthe user. - •
Objects in the array
noteswhich returns methodsnewsfeed.getandnewsfeed.getRecommeded, now contain fieldsidandcomments.
- •
In the object describing the user , поля
photoandphoto_medium_recrenamed tophoto_50andphoto_100. - •
Returns the result as an object containing information users and communities , необходимых для отображения найденных записей.