Developers » API methods » stories.getViewers
API methodsstories.getViewers
Returns a list of story viewers.
This method can be called:
Access rights required: stories.
This method can be called with a community token. Access rights required: stories.
owner_idStory owner ID.
int (number), current user id is used by default, required parameter
story_idStory ID.
positive number, required parameter
countMaximum number of results.
positive number, default 100
offsetOffset needed to return a specific subset of results.
positive number, default 0
extended1 to return additional fields.
flag, either 1 or 0, default 0
Returns total results number in count (integer) field in users IDs in items (array) field. If extended = 1, items (array) field contains an array of objects describing users.
1600Story has already expired
Global errors can occur while running. See their descriptions on this page.
Version historyShow all
The response of stories.getViewers method was changed. Now items returns an array of objects which contain the the following fields: is_liked (bool) and user_id (int).
Affects methods stories.getViewers