Overview
The RaidHub API provides comprehensive player data endpoints that allow you to search for Destiny 2 players and retrieve detailed information about their raid activities, statistics, and history.Understanding Player Identifiers
Membership ID
Every player in RaidHub is identified by a unique membership ID (a 64-bit integer). This is the Bungie.net membership ID that uniquely identifies a player’s Destiny 2 account.Membership Type
The membership type indicates the platform where the player’s account was originally created:1- Xbox2- PlayStation (PSN)3- Steam4- Blizzard (deprecated)5- Stadia (deprecated)6- Epic Games-1- All platforms (search only)
The membership type is determined by the platform where the account was first created, not the current platform.
Searching for Players
Basic Player Search
Use the/player/search endpoint to find players by their Bungie name or platform display name.
Search Parameters
The search term (1-40 characters). Can be a Bungie name or platform display name.
Number of results to return (1-50).
Filter by platform membership type. Use
-1 for all platforms.Search by Bungie name (true) or platform display name (false).
Example Response
Players who have never completed a raid may not appear in search results. Results are ordered by raid completions and recent activity.
Getting Player Information
Basic Player Info
Retrieve basic player information using the/player/{membershipId}/basic endpoint. This is an extremely low-cost API call.
Full Player Profile
Get comprehensive player statistics using the/player/{membershipId}/profile endpoint. This includes:
- Global statistics (total clears, sherpas, time played)
- Per-activity statistics and fastest completions
- World first rankings and contest completions
Profile Data Structure
The profile response includes:Basic player information (same as
/basic endpoint)Global statistics across all raids:
clears- Total completions with rank and percentilefreshClears- Fresh completions with rank and percentilesherpas- Sherpa count with rank and percentiletotalTimePlayed- Total time in raids (seconds)sumOfBest- Sum of fastest times across all raidscontest- World first race score
Per-activity statistics indexed by activity ID, including fastest instance details
World first rankings by activity ID (top 500 only)
Player Activity History
Fetching Activity History
Retrieve a player’s complete raid history using the/player/{membershipId}/history endpoint with cursor-based pagination.
History Parameters
Number of activities to return (10-5000)
ISO 8601 date cursor from the previous response’s
nextCursor field. Omit for the first request.Understanding the History Response
Each activity in the history includes:instanceId- Unique identifier for the activityhash- Activity version hashactivityId/versionId- Activity and version identifierscompleted- Whether the activity was completedfresh- Whether it was a fresh clearflawless- Whether it was flawlessdateStarted/dateCompleted- Timestampsduration- Time taken in secondsplayerCount- Number of playersscore- Activity score (for scored activities)
The first request may return fewer activities than requested for performance optimization. Subsequent requests will return the full count.
Common Use Cases
Finding a Player’s Stats
Building a Raid History Timeline
Checking Recent Activity
Error Handling
Common Errors
The specified membership ID does not exist in the RaidHub database
The player’s profile is private and requires authentication to access
Example Error Response
Best Practices
Use Basic Endpoint
Use
/basic instead of /profile when you only need player information, not statsImplement Caching
Cache player data appropriately - basic info changes infrequently
Handle Pagination
Always implement cursor pagination properly for activity history
Check Privacy
Handle private profile errors gracefully in your application
Related Endpoints
Instance Data
Get detailed information about specific raid instances
Leaderboards
Access global and raid-specific leaderboards