skillfed

vk-api

Python модуль для создания скриптов для социальной сети Вконтакте (vk.ru API wrapper)

vk-api v11.10.1 90.7K downloads/30d#13,566 on PyPI1,363
Permissive license Apache-2.0 Active released

What it is and what it does

vk_api is a Python client library that wraps the VKontakte (VK) social network API, allowing developers to interact with VK programmatically. It handles authentication, session management, and provides a Python interface to VK's REST API methods. The package is designed for creating automation scripts, bots, and tools that need to read or write data to VK accounts or communities.

The library depends only on requests for HTTP communication, making it lightweight to install. It supports Python 3.6 through 3.14 and has been maintained since 2014, with active development continuing as of July 2026. Typical usage involves authenticating with VK credentials, obtaining an API session object, and then calling VK API methods through a fluent interface.

Use it for:

  • Automate posting content to VK walls or communities on a schedule.
  • Build bots that respond to VK messages or wall comments.
  • Scrape or export user data, wall posts, or community information from VK.
  • Manage VK account settings or community moderation programmatically.
  • Integrate VK social features into a larger Python application or workflow.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Python wrapper for the VKontakte (VK) social network API, enabling programmatic access to VK features like posting to walls, retrieving user data, and automating VK interactions.

Yes, if you need to automate VK interactions. The package is actively maintained, has low install friction, carries a permissive license, and has no known security vulnerabilities. It is suitable for scripts and bots targeting the VK platform. However, verify that it supports your intended authentication method and covers the specific VK API endpoints you need.

Install

vk-api on PyPI

pip

pip install vk-api

uv

uv add vk-api

poetry

poetry add vk-api

Installing vk-api

Before you install

Low friction installation with a single lightweight runtime dependency (requests). Active maintenance with a recent release and ongoing commits; repository has 1363 stars and is not archived.

License in practice

Apache-2.0 permissive license allows use in most commercial and open-source projects with minimal restrictions.

Quickstart

pip install vk_api

import vk_api

vk_session = vk_api.VkApi('+71234567890', 'mypassword')
vk_session.auth()
vk = vk_session.get_api()
print(vk.wall.post(message='Hello world!'))

Requires valid VKontakte account credentials and network access to VK servers.

Verify before relying

  • Whether the package handles modern VK API authentication changes (e.g., token-based auth vs. password auth).
  • Current status of VK API endpoint coverage relative to the latest VK API documentation.
  • Whether the package supports async/await patterns for concurrent requests.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies 1 — requests
Maintenance actively maintained — 28 days since the last release
Last repo commit
First released
Downloads 90,724/month — #13,566 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: vk_api-11.10.1-py3-none-any.whl

Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

vk api python wrappervkontakte social network automationvk.ru api clientpost to vk wall programmaticallyvk user data retrievalvkontakte bot developmentvk social media api
social-media-apivkontakteautomation

More Internet packages