Get Score History
Scores
Get Score History
Get historical ZKScore data over time
GET
Get Score History
Overview
Retrieve historical ZKScore data to track score changes over time. This endpoint provides time-series data showing how a user’s score has evolved, enabling trend analysis and progress tracking.Parameters
ZKS ID (e.g.,
alice.zks) or wallet address (e.g., 0x742d35Cc...)Time period to retrieve (default:
30d)7d- Last 7 days30d- Last 30 days90d- Last 90 days1y- Last yearall- All available history
Data point interval (default:
day)hour- Hourly data pointsday- Daily data pointsweek- Weekly data pointsmonth- Monthly data points
Specific chain ID to get history for (optional, defaults to aggregated)
Response
Indicates if the request was successful
The ZKS ID (without .zks suffix), or null if not set
The primary wallet address
Array of historical score data points
Summary statistics for the period
Examples
Response Example
Use Cases
1. Score Chart Visualization
Display score history in a line chart:2. Progress Tracking
Track user progress over time:3. Trend Analysis
Analyze scoring trends:4. Milestone Detection
Detect when user reaches milestones:Best Practices
1. Choose Appropriate Intervals
Match interval to timeframe:2. Cache Historical Data
History doesn’t change frequently:3. Handle Missing Data
Some periods may have no data:4. Compare Multiple Users
Compare score histories:Visualization Examples
Line Chart
Area Chart with Trend
Related Endpoints
- Get Score - Get current ZKScore
- Get Score Breakdown - Detailed breakdown
- Get Leaderboard - Top scores
Troubleshooting
”Insufficient history”
Cause: User doesn’t have enough historical data. Solution:- Historical data requires at least 7 days of activity
- Try a shorter timeframe
- Check back after more time has passed
”Invalid timeframe”
Cause: Unsupported timeframe value. Solution:- Use supported values:
7d,30d,90d,1y,all - Check for typos
”Too many data points”
Cause: Requested interval too granular for timeframe. Solution:- Use larger intervals for longer timeframes
hourfor 7d maxdayfor 90d maxweekfor 1y max
Performance Tips
- Use Appropriate Intervals: Don’t request hourly data for a year
- Cache Results: History doesn’t change frequently
- Limit Data Points: Request only what you need to display
- Batch Requests: When comparing multiple users, use Promise.all()
Rate Limits
Score history requests are subject to rate limits:- Free tier: 30 requests per minute
- Starter tier: 150 requests per minute
- Professional tier: 600 requests per minute
- Enterprise tier: Custom limits