# VK Community API Documentation

Retrieve a public VK community: name, screen name, description, member count, privacy state and photo. A valid community is a successful response.

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

## 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 |
| --- | --- | --- | --- |
| `group_id` | string | Yes | VK group ID or screen name. Example: 22822305. |
| `fields` | string | No | Comma-separated field list. Default: description,members_count,screen_name. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/vk/community?group_id=22822305"
```

## Example response

```json
{
    "success": true,
    "data": {
        "id": 22822305,
        "name": "\u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435",
        "screen_name": "vk",
        "description": "\u042d\u0442\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e \u041a\u043e\u043c\u0430\u043d\u0434\u044b \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435...",
        "members_count": 14149896,
        "is_closed": false,
        "photo_200": "https://sun1-20.userapi.com/..."
    },
    "meta": {
        "endpoint_family": "community"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The group_id parameter is missing or invalid. This response is not billable. |
| 404 | Community Not Found | The requested VK community 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)
