Actions29
- Posts Actions
- Messages Actions
- Groups Actions
- Users Actions
- Photos Actions
Posts → Get Posts
AI-generatedOverview
The node interacts with the VKontakte (VK) social network API, specifically focusing on managing posts when the "Posts" resource and "Get Posts" operation are selected. It retrieves a list of posts from a specified owner (user or group). This is useful for scenarios such as monitoring a user's or group's recent activity, aggregating content for analysis, or automating content workflows.
For example, you can use this node to fetch the latest 20 posts from a public group by specifying the group's ID (as a negative number) or from a user by their user ID. This enables automation tasks like archiving posts, triggering notifications on new posts, or integrating VK posts into other systems.
Properties
| Name | Meaning |
|---|---|
| Owner ID | The identifier of the post owner. Use a negative number to specify a group ID instead of a user ID. |
| Count | Number of posts to return in the response. |
| Offset | Pagination offset to skip a number of posts before starting to return results. |
Output
The output is an array of JSON objects representing VK posts retrieved according to the input parameters. Each item corresponds to one post or a batch of posts returned by the VK API. The exact structure matches VK's post data format, typically including fields like post ID, text content, date, attachments, likes, comments, and reposts.
No binary data output is produced by this operation.
Dependencies
- Requires an API authentication token credential configured in n8n to access the VKontakte API.
- The node uses the VK API base URL
https://api.vk.com/method. - Proper permissions/scopes must be granted to the API token to read posts from users or groups.
Troubleshooting
Common issues:
- Invalid or missing Owner ID: Ensure the Owner ID is correctly set; use negative values for groups.
- Insufficient API permissions: The API token must have rights to access posts.
- Rate limiting by VK API: If many requests are made rapidly, VK may throttle responses.
- Pagination errors: Using incorrect offset/count values may result in empty or partial results.
Error messages:
"Unknown operation: getPosts": Indicates a misconfiguration of the operation parameter; verify it is set to "Get Posts".- API errors returned from VK (e.g., authorization errors, invalid parameters) will be passed through; check the error message for details.
To resolve errors, verify credentials, input parameters, and VK API documentation for required scopes and limits.