List the key owner's friends
Lists the API key owner’s accepted friends, online first. Lifetime stats come from the same rollup as the MCP friend tool. currentLobbyId and currentGameId are only returned when the friend is in a public lobby or public game.
GET
/players/me/friendsAuthorization
x-api-keyAPI key · headerrequiredA user (dp_) or organization (dp_org_) API key with read scopes.
Query parameters
afterstringOpaque cursor from the previous page's paging.nextCursor.
limitintegerNumber of items to return per page.
min 1 · max 50 · default: 20
Responses
200
A page of friends.
itemsFriend[]requiredShow propertiesHide properties
Array of
FriendidstringrequirednamestringrequireddisplayNamestring | nullrequiredimagestring | nullrequiredonlinebooleanrequiredstatusstringrequiredAllowed:
onlineofflinein_gamecurrentLobbyIdstring | nullrequiredcurrentGameIdstring | nullrequiredgamesPlayedintegerrequiredmin 0 · max 9007199254740991
winsintegerrequiredmin 0 · max 9007199254740991
winRatePctnumber | nullrequiredtotal180sintegerrequiredmin 0 · max 9007199254740991
lastPlayedAtstring | nullrequiredlastSeenAtstring | nullrequiredpagingPagingrequiredShow propertiesHide properties
nextCursorstring | nullrequired400
Invalid request.
messagestringrequired401
Missing or invalid API key.
messagestringrequired403
The API key is missing a required scope or is the wrong type for this endpoint.
messagestringrequired404
Entity not found.
messagestringrequired429
Rate limit exceeded. See the Retry-After header.
messagestringrequired500
Internal server error.
messagestringrequired