Get User Achievements
Achievements
Get User Achievements
Get all achievements earned by a specific user
GET
Get User Achievements
Overview
Retrieve all achievements that have been earned by a specific user. This endpoint returns both earned achievements and progress toward unearned ones, making it perfect for building user profiles and achievement galleries.Parameters
User identity (ZKS ID or wallet address)
ZKS ID is recommended for better performance and user experience
Filter by achievement category
wallet_age- Wallet longevity achievementstransaction_volume- Volume-based achievementsprotocol_usage- Protocol interaction achievementsgovernance- DAO participation achievementssocial- Social reputation achievementsdefi- DeFi-specific achievementsnft- NFT-related achievementstrading- Trading achievements
Filter by achievement status
earned- Only earned achievementsin_progress- Only achievements in progressall- Both earned and in progress (default)
Filter by rarity level
common- Easy to earnuncommon- Moderate difficultyrare- Challengingepic- Very challenginglegendary- Extremely rare
Number of results to return (default: 50, max: 100)
Number of results to skip for pagination (default: 0)
Response
Indicates if the request was successful
Resolved wallet address
ZKS ID if available, null otherwise
Array of user achievement objects
Array of achievements ready to be claimed
Number of achievements ready to be claimed
Achievement summary statistics
ISO 8601 timestamp of the response
Examples
Response Example
Use Cases
1. User Profile Achievement Gallery
Display a user’s achievement collection:2. Achievement Progress Tracking
Track progress toward specific achievements:3. Claimable Achievements Notification
Show achievements ready to be claimed:4. Achievement Statistics
Show detailed achievement statistics:Best Practices
1. Cache User Achievements
User achievements don’t change frequently:2. Filter by Status
Optimize queries by filtering status:3. Paginate Large Results
Handle users with many achievements:4. Real-time Updates
Subscribe to achievement updates:Related Endpoints
- List Achievements - All available achievements
- Get Achievement Progress - Progress toward specific achievement
- Claim Achievement - Claim an earned achievement
Troubleshooting
”User not found”
Cause: Invalid identity or user doesn’t exist. Solution:- Verify the identity format (ZKS ID or wallet address)
- Check if the user has any activity on the platform
- Try with a different identity
”No achievements found”
Cause: User has no achievements or filters are too restrictive. Solution:- Remove filters to see all achievements
- Check if user has any platform activity
- Verify achievement categories exist
”Invalid status filter”
Cause: Unsupported status value. Solution:- Use supported statuses:
earned,in_progress,all - Check for typos in filter values
Rate Limits
User achievement requests are subject to rate limits:- Free tier: 60 requests per minute
- Starter tier: 300 requests per minute
- Professional tier: 1,000 requests per minute
- Enterprise tier: Custom limits