Profile information for users
GET/users.get
- Takes: Username
- Passive: the target is not contacted
- Plan: User, community or service access key
Returns detailed information on users. With no user_ids it returns the user the access key belongs to. Which fields come back depends on the key and on privacy settings.
Query parameters
vAPI version
user_idsComma-separated user IDs or screen names. Up to 1000
fieldsComma-separated profile fields to return, such as nickname, screen_name, sex, bdate
name_caseCase for declension of the name: nom (default), gen, dat, acc, ins, abl
from_group_idCommunity ID the request is made on behalf of
Response fields · 4ShowHide
id
User ID
first_name
First name
last_name
Last name
bdate
Birth date, when requested and visible
curl 'https://api.vk.ru/method/users.get?v=5.199' \
-H 'Authorization: Bearer YOUR_API_KEY'{
"response": [
{
"id": 1000001,
"first_name": "Alex",
"last_name": "Example",
"bdate": "1.1.2000"
}
]
}