vk-api
Python модуль для создания скриптов для социальной сети Вконтакте (vk.ru API wrapper)
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-apiuv
uv add vk-apipoetry
poetry add vk-apiInstalling 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
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
vkbottle-typesProvides type definitions and API method…
permissive · top 15,000 on PyPI
python-telegram-botProvides a pure Python asynchronous interface…
copyleft · top 1,000 on PyPI
pyTelegramBotAPIA Python library that wraps the Telegram Bot…
copyleft · top 5,000 on PyPI
snscrapeScrapes user profiles, posts, hashtags, and…
copyleft · top 15,000 on PyPI
discord.py-selfAn async Python wrapper for Discord's user…
permissive · top 15,000 on PyPI
twikitTwikit is a Twitter scraper library that lets…
permissive · top 15,000 on PyPI
late-sdkOfficial Python SDK for publishing social media…
permissive · top 15,000 on PyPI
tweepyTweepy is a Python library that provides access…
permissive · top 5,000 on PyPI
KurigramKurigram is an asynchronous Python framework…
copyleft · top 15,000 on PyPI
kagglesdkKagglesdk provides Python bindings to Kaggle's…
permissive · top 5,000 on PyPI