groups.search
Returns a list of communities matching the search criteria.
Parameters
string
Search query string.
Required parameter
string
Community type. Possible values: group, page, event.
positive
Country ID.
positive
City ID. If this parameter is transmitted, country_id is ignored.
checkbox
1 — to return only upcoming events. Works with the type = event only.
checkbox
1 — to return communities with enabled market only.
integer
Sort order. Possible values:
- •0 — default sorting (similar the full version of the site);
- •1 — by growth speed;
- •2— by the "day attendance/members number" ratio;
- •3 — by the "Likes number/members number" ratio;
- •4 — by the "comments number/members number" ratio;
- •5 — by the "boards entries number/members number" ratio.
positive
Offset needed to return a specific subset of results.
positive
Number of communities to return.
Note that you can not receive more than first thousand of results, regardless of count and offset values.
Result
Returns the total results number in count field and an array of objects describing communities in items field.
Error codes
Common errors may occur during execution
Linked versions
Go to API versions pageIf 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.
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.
- •
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.