Skip to main content
POST
/
api
/
vk
/
users
/
friends
/vk/users/friends
curl --request POST \
  --url https://api.anysite.io/api/vk/users/friends \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "user": "<string>",
  "count": 2,
  "timeout": 300,
  "offset": 0,
  "order": "hints"
}
'
[
  {
    "id": 123,
    "@type": "VkUser",
    "name": "<string>",
    "first_name": "<string>",
    "last_name": "<string>",
    "alias": "<string>",
    "image": "<string>",
    "is_verified": false,
    "is_closed": false,
    "is_online": false,
    "sex": "<string>",
    "status": "<string>",
    "about": "<string>",
    "bdate": "<string>",
    "city": "<string>",
    "country": "<string>",
    "home_town": "<string>",
    "site": "<string>",
    "occupation": "<string>",
    "occupation_type": "<string>",
    "relation": "<string>",
    "interests": "<string>",
    "activities": "<string>",
    "music": "<string>",
    "movies": "<string>",
    "tv": "<string>",
    "books": "<string>",
    "games": "<string>",
    "quotes": "<string>",
    "personal": {
      "@type": "VkUserPersonal",
      "political": "<string>",
      "religion": "<string>",
      "inspired_by": "<string>",
      "life_main": "<string>",
      "people_main": "<string>",
      "smoking": "<string>",
      "alcohol": "<string>",
      "langs": []
    },
    "career": [],
    "universities": [],
    "schools": [],
    "relatives": [],
    "last_seen_at": 123,
    "follower_count": 123,
    "profile_url": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
user
string
required

VK user id, idN, screen name (alias), or profile URL

Minimum string length: 1
Examples:

"durov"

"id1"

"https://vk.com/durov"

count
integer
required

Max number of friends to return

Required range: x >= 1
Example:

100

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

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

Number of friends to skip

Required range: x >= 0
order
enum<string>
default:hints

Friend ordering

Available options:
hints,
random,
name

Response

Successful Response

id
integer
required
@type
string
default:VkUser
name
string | null
first_name
string | null
last_name
string | null
alias
string | null
image
string | null
is_verified
boolean
default:false
is_closed
boolean
default:false
is_online
boolean
default:false
sex
string | null
status
string | null
about
string | null
bdate
string | null
city
string | null
country
string | null
home_town
string | null
site
string | null
occupation
string | null
occupation_type
string | null
relation
string | null
interests
string | null
activities
string | null
music
string | null
movies
string | null
tv
string | null
books
string | null
games
string | null
quotes
string | null
personal
object | null
career
object[]
universities
object[]
schools
object[]
relatives
object[]
last_seen_at
integer | null
follower_count
integer | null
profile_url
string | null