Skip to main content
POST
/
api
/
vk
/
groups
/
posts
/vk/groups/posts
curl --request POST \
  --url https://api.anysite.io/api/vk/groups/posts \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "group": "<string>",
  "count": 2,
  "timeout": 300,
  "offset": 0,
  "filter": "all"
}
'
[
  {
    "id": 123,
    "@type": "VkPost",
    "owner_id": 123,
    "from_id": 123,
    "author": {
      "id": 123,
      "@type": "VkAuthor",
      "name": "<string>",
      "alias": "<string>",
      "image": "<string>",
      "is_group": false,
      "is_verified": false
    },
    "created_at": 123,
    "edited_at": 123,
    "text": "<string>",
    "comment_count": 123,
    "like_count": 123,
    "reaction_count": 123,
    "repost_count": 123,
    "view_count": 123,
    "is_pinned": false,
    "is_ad": false,
    "signer_id": 123,
    "post_url": "<string>",
    "images": [],
    "attachments": [],
    "poll": {
      "@type": "VkPoll",
      "id": 123,
      "question": "<string>",
      "vote_count": 123,
      "is_anonymous": false,
      "is_multiple": false,
      "end_at": 123,
      "answers": []
    },
    "reposted": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
group
string
required

VK group/community id, clubN, screen name (alias), or community URL

Minimum string length: 1
Examples:

"team"

"vk"

"https://vk.com/team"

count
integer
required

Max number of posts to return

Required range: x >= 1
Example:

20

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
offset
integer
default:0

Number of posts to skip from the top of the wall

Required range: x >= 0
filter
enum<string>
default:all

Which posts to return: owner-only, others-only, or all

Available options:
owner,
others,
all

Response

Successful Response

id
integer
required
@type
string
default:VkPost
owner_id
integer | null
from_id
integer | null
author
object | null
created_at
integer | null
edited_at
integer | null
text
string | null
comment_count
integer | null
like_count
integer | null
reaction_count
integer | null
repost_count
integer | null
view_count
integer | null
is_pinned
boolean
default:false
is_ad
boolean
default:false
signer_id
integer | null
post_url
string | null
images
string[]
attachments
object[]
poll
object | null
reposted
array