Skip to main content

XblAchievementsGetAchievementsForTitleIdAsync

Gets the first page of achievements for a player of the specified title.

Syntax

Parameters

xboxLiveContext   _In_
Type: XblContextHandle
An xbox live context handle created with XblContextCreateHandle. xboxUserId   _In_
Type: uint64_t
The XBOX User ID of the player. titleId   _In_
Type: uint32_t
The title ID. type   _In_
Type: XblAchievementType
The achievement type to retrieve. unlockedOnly   _In_
Type: bool
Indicates whether to return unlocked achievements only. orderBy   _In_
Type: XblAchievementOrderBy
Controls how the list of achievements is ordered. skipItems   _In_
Type: uint32_t
The number of achievements to skip. maxItems   _In_
Type: uint32_t
The maximum number of achievements the result can contain. Pass 0 to attempt to retrieve all items. async   _In_
Type: XAsyncBlock*
Caller allocated AsyncBlock.

Return value

Type: HRESULT HRESULT return code for this API operation.

Remarks

To get the result, call XblAchievementsGetAchievementsForTitleIdResult inside the AsyncBlock callback or after the AsyncBlock is complete.

REST Call

V2 GET /users/xuid()/achievements

Requirements

Header: achievements_c.h Library: Microsoft.Xbox.Services.14x.GDK.C.lib

See also

achievements_c
Last modified on August 20, 2026