Skip to main content
This guide shows you how to make PlayFab service API calls using the unified SDK. You’ll learn how to call various PlayFab services to manage player data, retrieve files, and interact with other PlayFab features.

Prerequisites

Before you begin, ensure you have:
This guide assumes you’ve already initialized the PlayFab SDK and authenticated a player following the core quickstart guide. If you haven’t done so, please complete that guide first.

What you’ll accomplish

By the end of this quickstart, you’ll have:
  • Retrieved the entity key for an authenticated player
  • Made your first PlayFab service API call
  • Processed the response from a PlayFab service

Making your first service API call

After successful authentication, you can make PlayFab API calls using the PFEntityHandle obtained during login. This example shows how to retrieve files stored for the current player.

Step 1: Get the Entity Key

First, retrieve the entity key from your authenticated entity handle:

Step 2: Call the GetFiles API

Now make your first PlayFab service call to get files associated with the player:
🎉 Congratulations! You’ve successfully made your first PlayFab service API call using the Unified SDK.

Understanding the API call pattern

All PlayFab service API calls follow a similar pattern:
  1. Prepare the request - Create and populate a request structure
  2. Initiate the async call - Call the *Async function
  3. Wait for completion - Use XAsyncGetStatus to wait for the operation
  4. Get result size - Call *GetResultSize to determine buffer needs
  5. Retrieve the result - Call *GetResult to get the actual data
This pattern applies to all PlayFab service APIs, making it easy to work with different services once you understand the basics.

Next steps

Now that you’ve successfully called a PlayFab service, explore these additional features:

Common service APIs

  • Player Data Management - Store and retrieve custom player data
  • Player Statistics - Track player stats and achievements
  • Title Data - Access game configuration data
  • Cloud Script - Execute server-side logic

Advanced features

  • Leaderboards - Implement competitive features with rankings
  • Economy and Monetization - Add virtual currencies and items
  • Multiplayer - Integrate matchmaking and lobby services
  • Analytics - Track player behavior and game metrics

Best practices

Troubleshooting

Common issues and solutions: For more detailed error information, enable tracing and diagnostics in your application.

Reference documentation

Last modified on August 10, 2026