Developers » API methods » Account » account.getCounters
Accountaccount.getCounters
Returns non-null values of user counters.
This method can be called with a user token.
Parameters
filterCounters to be returned:
  • friends Ś new friend requests;
  • friends_suggestions Ś friends suggestions;
  • messages Ś new messages;
  • photos Ś new photo tags;
  • videos Ś new video tags;
  • gifts Ś gifts;
  • events Ś events;
  • groups Ś communities;
  • sdk Ś requests in mobile games;
  • app_requests Ś apps requests.
list of comma-separated words
user_id
positive number
Result
Returns an object that may include friends, messages, photos, videos, notes, gifts, events, groups, sdk fields (integer) with a counter value.
Errors
Global errors can occur while running. See their descriptions on this page.
Version historyShow all
5.61
Community object contains new cover field. account.getCounters method takes a new value friends_suggestions in the filter parameter. pages.get checks whether the user has administrator rights for using the need_source parameter.