# VK User Profile API Documentation

Retrieve the public profile of a VK user: name, screen name, photo, verification status and privacy state. A valid profile is a successful response.

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

## 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 |
| --- | --- | --- | --- |
| `user_id` | string | Yes | VK user ID or screen name. Example: durov. |
| `fields` | string | No | Comma-separated field list. Default: photo_200,screen_name,verified. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/vk/profile?user_id=durov"
```

## Example response

```json
{
    "success": true,
    "data": {
        "id": 1,
        "first_name": "Pavel",
        "last_name": "Durov",
        "screen_name": "durov",
        "photo_200": "https://sun9-81.userapi.com/...",
        "verified": true,
        "is_closed": false
    },
    "meta": {
        "endpoint_family": "profile"
    }
}
```

## Errors

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