Developers » Realtime events
Realtime events

VK API allows you to work with user or community events in real time. It is required to display a new message, to reply instantly to a new comment in a community, to create a chat bot or to analyze text data.
òóò íàäî áû ññûëêó íà https://vk.com/dev/bots, íî ïåðåâîäà åùå íåò
For communities
We offer two different ways to deal with community events:
  • Callback API — in this case, we would send a notification to your server on every new event.
  • Bots Long Poll API — an event queue is stored on the VK side that you can get using Long Polling requests.

Callback API and Bots Long Poll API support events related to group messages, user activity on the wall and other sections of your group or public page. You may find the full list of community events on this page.
For users
User Long Poll API is required to work with user events in your app. Event queue is stored on the VK side and you can get it using Long Polling requests.

User Long Poll API supports all the events related to private messages (getting, editing, deleting), changing online status or menu counters.
For analytics
Streaming API allows you to get text posts from VK by predefined keywords without any extra search query.

Streaming API supplies data via WebSocket technology. With this tool, you may analyze the frequency, tone and context of the your brand mentions at VK, carry out a sociological study, and much more.