Analytics API
Monitor your API usage with comprehensive analytics endpoints
GET
Dashboard Overview
Usage Analytics
Get detailed insights into your API usage, credit consumption, and performance metrics. All analytics endpoints are free and don’t consume credits.100% Free: All analytics endpoints consume zero credits and have no rate limits. Use them to build dashboards, monitoring systems, and usage alerts.
Quick Reference
| Endpoint | Method | Description | Best For |
|---|---|---|---|
/v1/analytics/dashboard | GET | Real-time account status | Live dashboards, health checks |
/v1/analytics/usage | GET | Daily usage summary | Weekly/monthly reports |
/v1/analytics/products | GET | Per-product breakdown | Cost optimization |
/v1/analytics/credits | GET | Credit consumption history | Spend tracking |
/v1/analytics/summary | GET | All-time statistics | Account overview |
/v1/analytics/daily | GET | Daily performance metrics | SLA monitoring |
/v1/analytics/day/:date | GET | Single day breakdown | Debugging, audits |
Dashboard
Get a real-time snapshot of your account status including credits, rate limits, and usage statistics.Response
Response Fields
Your account information
Current credit balance
Real-time rate limit status
Concurrent request tracking
Usage statistics for today, this week, and this month
Usage Summary
Get aggregated usage metrics over a time period with daily breakdown.Number of days to include (1-90)
Response
Products Breakdown
Get per-product usage with requests, credits, and success rates. Essential for cost optimization.Number of days to include (1-90)
Response
Credit History
Get credit consumption history with daily breakdown. Perfect for spend tracking and budgeting.Number of days to include (1-90)
Response
All-Time Summary
Get lifetime statistics for your account, or specify a custom date range.Start date (YYYY-MM-DD format). Optional.
End date (YYYY-MM-DD format). Optional.
Response
Daily Metrics
Get detailed daily metrics including latency percentiles and error rates. Essential for SLA monitoring.Number of days to include (1-90)
Response
Latency Percentiles
| Metric | Description |
|---|---|
p50_latency_ms | Median response time (50th percentile) |
p95_latency_ms | 95% of requests faster than this |
p99_latency_ms | 99% of requests faster than this |
Day Breakdown
Get per-product breakdown for a specific day. Perfect for debugging and audits.Response
Practical Examples
- Monitoring Dashboard
- Alerting
- Cost Optimization
- SLA Monitoring
Best Practices
Cache dashboard responses
Cache dashboard responses
Analytics endpoints are free, but caching improves your dashboard performance:
Use response headers instead
Use response headers instead
Every API response includes
X-Credits-Remaining — use this instead of polling the dashboard:Batch analytics calls
Batch analytics calls
Fetch multiple analytics endpoints in parallel:
Set up regular reporting
Set up regular reporting
Schedule weekly reports using cron or serverless functions:
Related
Check Credits
Simple endpoint to check your current balance.
Rate Limits
Learn about rate limiting and how to stay within limits.
Dashboard Overview