get_contacts Overview

The get_contacts endpoint is used to retrieve a list of the user’s contacts, as well as those contact’s user data.

The get_contacts call uses the apiKey and identifier to return a list of all the contacts related to the user. The data returned and type of relationship differ between identity providers.

Most identity providers return only friends (the exceptions are noted below). These identity providers support this call:

Twitter and get_contacts

You can use get_contacts to retrieve an array of a user’s followers or who the user is following.

Examples

A request for followers looks like this:

A request for following looks like this:

A request for friends looks like this:

Note: A request for friends is not supported for Twitter.

VK and get_contacts

You can use get_contacts to retrieve an array of a user’s friends, followers, or who the user is following.

Example

A request for followers looks like this:

A request for following looks like this:

A request for friends looks like this:

Note: A request for friendships is not supported for VK.

Response

The following code sample shows the response to the request for followers. The responses to the other requests have a similar format.