VK icon

VK

Работа с API ВКонтакте (личная страница)

📝 Постинг контента → Получить записи со стены

AI-generated

Summary

Retrieve posts from a user's or group's VKontakte wall using specified parameters for owner ID, count, filter, offset, and optional auto-pagination.

Inputs

  • dataSource — Select whether to get the owner ID from the previous node's input data or enter manually.
  • ownerIdField — Field name in the input data to use for the owner ID when dataSource is 'input'. Defaults to 'id'.
  • ownerId (required) — Numeric ID of the wall owner (negative for communities, e.g. -123456) when entered manually.
  • count — Number of posts to retrieve per request (1 to 100). Defaults to 10.
  • filter — Filter for posts: all, owner (own posts), others (posts by others), postponed (scheduled posts), suggests (suggested posts). Defaults to 'all'.
  • offset — Number of posts to skip for pagination when auto-pagination is disabled. Defaults to 0.
  • autoPagination — Enable to automatically retrieve all posts in multiple requests.
  • pageSize — Number of posts per request when auto-pagination is enabled (1 to 1000). Defaults to 100.
  • maxItems — Maximum total number of posts to retrieve when auto-pagination is enabled. Defaults to 1000.

Output shape

a list of post objects from the VK wall, each as a separate item.

If auto-pagination is off, the node returns up to 'count' items with offset support. If auto-pagination is enabled, it gathers posts in pages up to 'maxItems' total. Errors from the VK API are thrown unless 'Continue On Fail' is enabled, in which case errors appear in the output items as messages.

Examples

Example 1: Fetch the 10 most recent posts from a community wall (ownerId negative) entered manually, without auto-pagination.

dataSource=manual, ownerId=-123456, count=10, filter='all', offset=0, autoPagination=false

Example 2: Retrieve all posts from a user wall using owner ID from input data field 'userId', with auto-pagination fetching up to 200 results.

dataSource=input, ownerIdField='userId', count=100, filter='owner', autoPagination=true, pageSize=100, maxItems=200

Links

Discussion