Xsolla-logo

Get social account friends

get/users/me/social_friends

Gets a list of user’s friends from a social provider.

Request
Security:
query Parameters
platform
string

Name of the chosen social provider which you can enable in your Publisher Account > your Login project > Social connections. If you do not specify it, the call gets friends from all social providers.

Enum: "steam" "xbox" "twitter" "facebook" "vk"
offset
integer >= 0
Default: 0

Number of the elements from which the list is generated.

limit
integer [ 1 .. 500 ]
Default: 500

Maximum number of friends that are returned at a time.

with_xl_uid
boolean
Default: false

Shows whether the social friends are from your game.

Responses
200

OK

401

Unauthorized

429

Too Many Requests

Request samples
curl -i -X GET \
  'https://login.xsolla.com/api/users/me/social_friends?platform=steam&offset=0&limit=500&with_xl_uid=false' \
  -H 'Authorization: YOUR_API_KEY_HERE'
Response samples
application/json
{
  • "data": [
    ],
  • "limit": 0,
  • "offset": 0,
  • "platform": "string",
  • "total_count": 0,
  • "with_xl_uid": true
}