Retrieve a detailed breakdown of a user’s ZKScore across all 8 scoring categories. This endpoint provides granular insights into how the total score is calculated, including individual category scores, weights, and historical comparisons.
The breakdown helps users understand which areas contribute most to their score and where they can improve.
async function getHistoricalTrends(identity, periods = 6) { const trends = []; for (let i = 0; i < periods; i++) { const data = await getScoreBreakdown(identity, true); trends.push({ date: new Date(), totalScore: data.breakdown.totalScore, categories: data.breakdown.categories }); // Wait before next request await new Promise(resolve => setTimeout(resolve, 1000)); } return trends;}