wall

wall.search

The translation was generated automatically and may contain mistakes

Allows you to search for records on the wall in accordance with the specified criteria.

To call this method, you can use:

Parameters

owner_id

integer

User or community ID.

Note the community ID in the parameter owner_id It is necessary to indicate the sign "-" - for example, owner_id = -1 corresponds to the community identifier VKontakte API (club1).

domain

string

Short address of the user or community.

query

string

Search query. For an accurate result, the request must be passed in double quotes.

Max. length = 9000

owners_only

checkbox

1 Return only records on behalf of the owner of the wall.

count

positive

Number of records to be returned. A positive number, by default — 20 The maximum value 100 .

offset

positive

Displacement is necessary to obtain a certain subset of results.

extended

checkbox

1 Additional fields will be returned.. profiles and groups containing information about users and communities. By default: 0 .

fields

string

Список дополнительных полей для профилей и групп, которые необходимо вернуть. См. description of user object fields and description of object fields group . Note that this parameter is only taken into account when extended = 1 .

Result

After successful execution, it returns an object containing the number of results in the field count and array of objects records on the wall in the field items .

If a parameter has been set extended = 1 returns the number of results in the field count Separate array of objects records on the wall in the field items , users in the field profiles and community Communities in the field groups .

Error codes

210
Access to wall's post denied

Common errors may occur during execution

Linked versions

Go to API versions page

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.