Actions37
- 👥 Сбор аудитории Actions
- 📝 Постинг контента Actions
- ❤️ Взаимодействия Actions
- 💬 Сообщения Actions
- 🔧 Утилиты Actions
🔧 Утилиты → Получить комментарии
AI-generatedSummary
Retrieve comments from a specific VK wall post given the owner ID and post ID, with optional pagination to automatically fetch multiple pages of comments.
Inputs
- ownerId (required) — Numeric ID of the owner of the post (user or community, negative for communities).
- postId (required) — Numeric ID of the wall post to fetch comments from.
- count — Number of comments to retrieve per request (between 1 and 100, default 100).
- autoPagination — If enabled, automatically paginate through comments to retrieve all pages up to maxItems.
- pageSize — Number of comments to request per page when auto-pagination is enabled (between 1 and 1000, default 100).
- maxItems — Maximum total number of comments to retrieve when auto-pagination is enabled.
Output shape
A list of comment items from the specified VK wall post, each output item representing a single comment in JSON format.
Supports pagination via 'autoPagination', 'pageSize', and 'maxItems' parameters. Without auto-pagination, returns up to 'count' comments. If errors occur during the request, they will be returned as error messages if node is set to continue on failure.
Examples
Example 1: Retrieve up to 100 most recent comments from a VK post with owner ID 123 and post ID 456.
Set ownerId=123, postId=456, count=100, autoPagination=false.
Example 2: Fetch all comments from a VK post, with automatic pagination up to 500 comments, fetching 100 per page.
Set ownerId and postId accordingly, autoPagination=true, pageSize=100, maxItems=500.