Skip to main content

Endpoint

instanceId
string
required
The unique identifier for the activity instance. This is a 64-bit integer represented as a string.
GET /pgcr/{instanceId}

Description

Get a raw post game carnage report by instanceId. This is essentially the raw data from the Bungie API, with a few redundant fields trimmed off. It should be a subset of the data returned by the Bungie API. This endpoint is useful if you need to access PGCRs when Bungie’s API is down, or if you need the raw Bungie data format instead of RaidHub’s normalized format.
For a more structured response with RaidHub-specific enhancements, use the /instance/{instanceId} endpoint instead.

Response

The response follows Bungie’s DestinyPostGameCarnageReportData schema with some fields removed.
period
string
required
ISO 8601 timestamp when the activity occurred
startingPhaseIndex
integer
The phase index where the activity started (for activities with checkpoints)
activityWasStartedFromBeginning
boolean
Whether the activity was started from the beginning or from a checkpoint
activityDetails
object
required
Core activity information from Bungie
activityDifficultyTier
integer
The difficulty tier of the activity (if applicable)
selectedSkullHashes
array
Array of modifier hashes that were active during the activity
entries
array
required
Array of player entries with detailed statistics

Example Request

curl -X GET "https://api.raidhub.io/pgcr/13526539362" \
  -H "x-api-key: YOUR_API_KEY"

Example Response

{
  "minted": "2024-03-03T12:00:00.000Z",
  "success": true,
  "response": {
    "period": "2024-03-03T10:30:00.000Z",
    "startingPhaseIndex": 0,
    "activityWasStartedFromBeginning": true,
    "activityDetails": {
      "directorActivityHash": 1485585878,
      "instanceId": "13526539362",
      "mode": 4,
      "modes": [4, 7],
      "membershipType": 3
    },
    "activityDifficultyTier": 0,
    "selectedSkullHashes": [],
    "entries": [
      {
        "player": {
          "destinyUserInfo": {
            "iconPath": "/common/destiny2_content/icons/93844c8b76ea80683a880479e3506980.jpg",
            "crossSaveOverride": 0,
            "applicableMembershipTypes": [3],
            "membershipType": 3,
            "membershipId": "4611686018488107374",
            "displayName": "xx_newo_xx",
            "bungieGlobalDisplayName": "Newo",
            "bungieGlobalDisplayNameCode": 9010
          },
          "characterClass": "Titan",
          "classHash": 3655393761,
          "raceHash": 3887404748,
          "genderHash": 3111576190,
          "characterLevel": 50,
          "lightLevel": 1810,
          "emblemHash": 1230443376
        },
        "characterId": "2305843009504575107",
        "values": {
          "assists": {
            "basic": {
              "value": 156,
              "displayValue": "156"
            }
          },
          "kills": {
            "basic": {
              "value": 342,
              "displayValue": "342"
            }
          },
          "deaths": {
            "basic": {
              "value": 8,
              "displayValue": "8"
            }
          },
          "opponentsDefeated": {
            "basic": {
              "value": 498,
              "displayValue": "498"
            }
          },
          "completionReason": {
            "basic": {
              "value": 0,
              "displayValue": "Objective Completed"
            }
          },
          "startSeconds": {
            "basic": {
              "value": 0,
              "displayValue": "0s"
            }
          },
          "timePlayedSeconds": {
            "basic": {
              "value": 4500,
              "displayValue": "1h 15m 0s"
            }
          },
          "precisionKills": {
            "basic": {
              "value": 198,
              "displayValue": "198"
            }
          },
          "weaponKillsGrenade": {
            "basic": {
              "value": 23,
              "displayValue": "23"
            }
          },
          "weaponKillsMelee": {
            "basic": {
              "value": 12,
              "displayValue": "12"
            }
          },
          "weaponKillsSuper": {
            "basic": {
              "value": 45,
              "displayValue": "45"
            }
          }
        },
        "extended": {
          "weapons": [
            {
              "referenceId": 1541131350,
              "values": {
                "uniqueWeaponKills": {
                  "basic": {
                    "value": 125,
                    "displayValue": "125"
                  }
                },
                "uniqueWeaponPrecisionKills": {
                  "basic": {
                    "value": 89,
                    "displayValue": "89"
                  }
                }
              }
            },
            {
              "referenceId": 2926662317,
              "values": {
                "uniqueWeaponKills": {
                  "basic": {
                    "value": 98,
                    "displayValue": "98"
                  }
                },
                "uniqueWeaponPrecisionKills": {
                  "basic": {
                    "value": 67,
                    "displayValue": "67"
                  }
                }
              }
            }
          ],
          "values": {}
        }
      }
    ]
  }
}

Error Responses

404 - PGCRNotFoundError
object
The specified PGCR was not found in the RaidHub database.

Notes

  • Response is cached for 24 hours (86400 seconds)
  • PGCRs are stored compressed (gzip) in the database and decompressed on request
  • BigInt values (instanceId, characterId, membershipId) are converted from strings to BigInt internally, then serialized back to strings in the response
  • The period field is converted to a JavaScript Date object and serialized as an ISO 8601 string
  • Some fields from the original Bungie API response are trimmed to reduce payload size
  • This endpoint provides access to historical data even when Bungie’s servers are experiencing issues

Build docs developers (and LLMs) love