# VK Wall Posts API Documentation

Retrieve public wall posts from a VK user or community with pagination. Each post carries the post ID, text, date, like count, repost count, comment count and view count. A valid empty wall is a successful response.

- **Documentation:** [https://scrappa.co/docs/vk-api/vk_wall](https://scrappa.co/docs/vk-api/vk_wall)
- **API group:** VK API
- **Endpoint:** `GET https://scrappa.co/api/vk/wall`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `domain` | string | Yes | VK screen name of user or group. Example: vk. |
| `offset` | integer | No | Zero-based offset. Default: 0. |
| `count` | integer | No | Posts per page, 1-100. Default: 20. |
| `extended` | integer | No | Include profiles and groups. Default: 1. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/vk/wall?domain=vk&count=5"
```

## Example response

```json
{
    "success": true,
    "data": {
        "count": 1139,
        "items": [
            {
                "position": 1,
                "id": 1729592,
                "from_id": -22822305,
                "owner_id": -22822305,
                "date": 1699999999,
                "text": "Post text...",
                "likes": {
                    "count": 87
                },
                "reposts": {
                    "count": 9
                },
                "comments": {
                    "count": 60
                },
                "views": {
                    "count": 10901
                }
            }
        ],
        "has_more": true
    },
    "meta": {
        "endpoint_family": "wall_posts"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. This response is not billable. |
| 404 | Wall Not Found | The requested VK wall was not found or is private. This response is not billable. |
| 503 | Upstream Unavailable | The VK API is temporarily unavailable. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
