video.getComments
The translation was generated automatically and may contain mistakes
Returns the list of comments to the video.
Parameters
integer
The identity of the user or community that owns the video.
Note the community ID in the parameter
owner_idIt is necessary to indicate the sign "-" - for example,owner_id=-1corresponds to the community identifier VKontakte API (club1).
positive
Video ID.
Required parameter
checkbox
1 An additional field will be returned. likes . Default field likes doesn't come back.
integer
The comment ID, starting with which you need to return the list (see details below).
integer
The offset required to select a specific subset of comments. By default: 0 .
positive
Number of comments that need to be returned.
string
Order of comments. Possible values:
- •
ascFrom old to new; - •
descFrom new to old.
checkbox
1 Additional fields will be returned.. profiles and groups containing information about users and communities. By default: 0 .
string
An optional parameter. Additional Field Information profiles and groups . Considered if a parameter is passed extended with meaning 1 .
integer
positive
If a parameter has been passed start_comment_id , the comment position in the list (or the one closest to it earlier) will be found.. From this position will be returned.. count comments. Displacement offset in this case, it will be counted from this position (it can be negative).
Result
After successful execution, it returns an object containing the number of results in the field count and an array of comment objects in the field items . Each object describing a comment contains the following fields:
- •
id— ID of the comment; - •
from_id— ID of the author of the comment; - •
dateDate of addition of the comment in the formatunixtime; - •
textthe text of the comment; - •
likesInformation about the marks Like it. current comment (if a parameter has been setneed_likes), an object with fields:- •
countthe number of users who liked the comment, - •
user_likesAvailability of Mark Like it. from the current user (1- there is,0- No,, - •
can_like— information about whether the current user can put a mark Like it. (1- maybe,0- can't).
- •
If a parameter has been set extended = 1 returns the number of results in the field count , a separate array of comment objects in the field items , users in the field profiles and community Communities in the field groups .
If a parameter has been passed start_comment_id The field will also be returned. real_offset - the final offset of this subset of comments (it can be negative if it was indicated negative offset ).
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.
A parameter has been added to the methods that return comments start_comment_id , which indicates the initial comment for a return.