Loading...
Loading...
Publish posts to your VK (ВКонтакте) profile or community wall and read your own recent posts, via the official VK API (wall.post / wall.get). Use when the user wants to post to VK, cross-post an article for a Russian-speaking audience, or list their own recent VK wall posts with engagement. Auth uses a VK access token (community access key recommended).
npx skill4agent add acedatacloud/skills vkcurl + jq$VK_ACCESS_TOKENAuthorization: Bearervv=5.199https://api.vk.com/method/<method>{"response": ...}{"error":{"error_code":<n>,"error_msg":"<detail>"}}.errorerror_msg5214wallwall15203owner_idfrom_group=1curl -sS "https://api.vk.com/method/groups.getById?v=5.199" \
-H "Authorization: Bearer $VK_ACCESS_TOKEN" \
| jq '.response, .error'id123456owner_id-123456owner_idusers.getfrom_groupOWNER_ID="-123456" # negative = community; from_group=1 posts as the community
MSG="Пример поста через VK API. #ai"
curl -sS -G "https://api.vk.com/method/wall.post" \
-H "Authorization: Bearer $VK_ACCESS_TOKEN" \
--data-urlencode "v=5.199" \
--data-urlencode "owner_id=$OWNER_ID" \
--data-urlencode "from_group=1" \
--data-urlencode "message=$MSG" \
| jq '.response, .error'{"response":{"post_id":<id>}}https://vk.com/wall<OWNER_ID>_<post_id>https://vk.com/wall-123456_17#tagmessageattachments{type}{owner_id}_{media_id}photo-123456_789publish_datemessage--data-urlencodeOWNER_ID="-123456"
curl -sS -G "https://api.vk.com/method/wall.get" \
-H "Authorization: Bearer $VK_ACCESS_TOKEN" \
--data-urlencode "v=5.199" \
--data-urlencode "owner_id=$OWNER_ID" \
--data-urlencode "count=20" \
| jq '.error, (.response.items[]? | {id,
text,
likes: .likes.count,
reposts: .reposts.count,
comments: .comments.count,
views: .views.count,
date})'countowner_ididhttps://vk.com/wall<owner_id>_<id>OWNER_ID="-123456"; POST_ID="17"
curl -sS -G "https://api.vk.com/method/wall.delete" \
-H "Authorization: Bearer $VK_ACCESS_TOKEN" \
--data-urlencode "v=5.199" \
--data-urlencode "owner_id=$OWNER_ID" \
--data-urlencode "post_id=$POST_ID" \
| jq '.response, .error'vwallowner_idfrom_group=1214219