<!--
{
  "availability" : [
    "iOS: 4.1.0 - 14.5.0",
    "iPadOS: 4.1.0 - 14.5.0",
    "macCatalyst: 13.1.0 - 14.5.0",
    "macOS: 10.8.0 - 11.3.0",
    "tvOS: 9.0.0 - 14.5.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 3.0.0 - 7.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKPlayer/loadPlayers(forIdentifiers:withCompletionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKPlayer(cm)loadPlayersForIdentifiers:withCompletionHandler:"
  },
  "title" : "loadPlayers(forIdentifiers:withCompletionHandler:)"
}
-->

# loadPlayers(forIdentifiers:withCompletionHandler:)

Loads information about a list of players from Game Center.

```
class func loadPlayers(forIdentifiers identifiers: [String], withCompletionHandler completionHandler: (([GKPlayer]?, (any Error)?) -> Void)? = nil)
```

## Parameters

`identifiers`

The identifiers for the players to load.

`completionHandler`

The block that GameKit calls when it completes the request.

    The block receives the following parameters:

- *players*: The players that GameKit successfully loads. If an error occurs, this array may contain just the player data that GameKit is able to load.
- *error*: Describes an error if it occurs, or `nil` if the operation completes.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)