User Information & Friends
You can personalize content in your game by accessing some basic user information about the current player. This information can be accessed using both the server and the client. Below is a list of methods for retrieving information about users and their friends:
Client methods:
- Services.GetUsername - Retrieves the player's Kongregate username.
- Services.GetUserId - Retrieves the player's Kongregate user ID. Note that this is not secure - if you need to securely verify a user, please see the Authentication API documentation.
- Services.IsGuest - Determines whether or not the player is a guest (i.e. not signed in to Kongregate)
- Services.GetGameAuthToken - Retrieves the game-specific authentication code for the player. This is used in conjunction with the Authentication API.
Server methods:
- User Information - HTTP endpoint used for retrieving information about Kongregate users and their friends.
- Kongpanions - HTTP endpoints for obtaining information about Kongpanions and Kongpanion ownership.
Important note You may not use any user data you collect for purposes other than running or improving your game on Kongregate. Use of personal user data - including storing it outside of Kongregate - subjects you to privacy and data regulations. See our guidance on privacy and data.
Reminder: Developers are responsible for ensuring that their games, content, monetization practices, and data processing activities comply with all applicable laws and regulations. If you have questions about how these requirements apply to your game or business, we recommend consulting with a qualified professional advisor.
Updated 14 days ago
