Source
This page was generated with Wiki Builder. Do not change the format!
Info
Gets historical stats for indicated character.
- URI: /Destiny2/{membershipType}/Account/{destinyMembershipId}/Character/{characterId}/Stats/
- Basepath: https://www.bungie.net/Platform
- Method: GET
- Service: Destiny2
- Permissions: None
- Officially Supported: Yes
Parameters
Path Parameters
Name | Schema | Required | Description |
---|---|---|---|
characterId | integer:int64 | Yes | The id of the character to retrieve. You can omit this character ID or set it to 0 to get aggregate stats across all characters. |
destinyMembershipId | integer:int64 | Yes | The Destiny membershipId of the user to retrieve. |
membershipType | BungieMembershipType:Enum | Yes | A valid non-BungieNet membership type. |
Query String Parameters
Name | Schema | Required | Description |
---|---|---|---|
dayend | string:date-time | No | Last day to return when daily stats are requested. Use the format YYYY-MM-DD. |
daystart | string:date-time | No | First day to return when daily stats are requested. Use the format YYYY-MM-DD |
groups | DestinyStatsGroupType:Enum[] | No | Group of stats to include, otherwise only general stats are returned. Comma separated list is allowed. Values: General, Weapons, Medals |
modes | DestinyActivityModeType:Enum[] | No | Game modes to return. See the documentation for DestinyActivityModeType for valid values, and pass in string representation, comma delimited. |
periodType | PeriodType:Enum | No | Indicates a specific period type to return. Optional. May be: Daily, AllTime, or Activity |
Example
Request
Response
PlatformErrorCode: 200
{
// Type: Dictionary<string,DestinyHistoricalStatsByPeriod>
"Response": {
"{string}": {
// Type: Dictionary<string,DestinyHistoricalStatsValue>
"allTime": {
"{string}": {
// Type: string
"statId": "",
// Type: DestinyHistoricalStatsValuePair
"basic": {},
// Type: DestinyHistoricalStatsValuePair
"pga": {},
// Type: DestinyHistoricalStatsValuePair
"weighted": {},
// Type: integer:int64:nullable
"activityId": 0
}
},
// Type: Dictionary<string,DestinyHistoricalStatsValue>
"allTimeTier1": {
"{string}": {
// Type: string
"statId": "",
// Type: DestinyHistoricalStatsValuePair
"basic": {},
// Type: DestinyHistoricalStatsValuePair
"pga": {},
// Type: DestinyHistoricalStatsValuePair
"weighted": {},
// Type: integer:int64:nullable
"activityId": 0
}
},
// Type: Dictionary<string,DestinyHistoricalStatsValue>
"allTimeTier2": {
"{string}": {
// Type: string
"statId": "",
// Type: DestinyHistoricalStatsValuePair
"basic": {},
// Type: DestinyHistoricalStatsValuePair
"pga": {},
// Type: DestinyHistoricalStatsValuePair
"weighted": {},
// Type: integer:int64:nullable
"activityId": 0
}
},
// Type: Dictionary<string,DestinyHistoricalStatsValue>
"allTimeTier3": {
"{string}": {
// Type: string
"statId": "",
// Type: DestinyHistoricalStatsValuePair
"basic": {},
// Type: DestinyHistoricalStatsValuePair
"pga": {},
// Type: DestinyHistoricalStatsValuePair
"weighted": {},
// Type: integer:int64:nullable
"activityId": 0
}
},
// Type: DestinyHistoricalStatsPeriodGroup[]
"daily": [
// Type: DestinyHistoricalStatsPeriodGroup
{
// Type: string:date-time
"period": "",
// Type: DestinyHistoricalStatsActivity
"activityDetails": {},
// Type: Dictionary<string,DestinyHistoricalStatsValue>
"values": {
"{string}": {
// Type: string
"statId": "",
// Type: DestinyHistoricalStatsValuePair
"basic": {},
// Type: DestinyHistoricalStatsValuePair
"pga": {},
// Type: DestinyHistoricalStatsValuePair
"weighted": {},
// Type: integer:int64:nullable
"activityId": 0
}
}
}
],
// Type: DestinyHistoricalStatsPeriodGroup[]
"monthly": [
// Type: DestinyHistoricalStatsPeriodGroup
{
// Type: string:date-time
"period": "",
// Type: DestinyHistoricalStatsActivity
"activityDetails": {},
// Type: Dictionary<string,DestinyHistoricalStatsValue>
"values": {
"{string}": {
// Type: string
"statId": "",
// Type: DestinyHistoricalStatsValuePair
"basic": {},
// Type: DestinyHistoricalStatsValuePair
"pga": {},
// Type: DestinyHistoricalStatsValuePair
"weighted": {},
// Type: integer:int64:nullable
"activityId": 0
}
}
}
]
}
},
// Type: PlatformErrorCodes:Enum
"ErrorCode": 0,
// Type: integer:int32
"ThrottleSeconds": 0,
// Type: string
"ErrorStatus": "",
// Type: string
"Message": "",
// Type: Dictionary<string,string>
"MessageData": {
"{string}": ""
},
// Type: object
}