Analytics
Monitor your API usage, track performance, and identify issues with detailed analytics.
📊
Data retention: Free tier keeps 7 days, Pro keeps 30 days, Business keeps 90 days of analytics data.
Dashboard Overview
The main analytics dashboard shows:
Key Metrics
| Metric | Description |
|---|---|
| Total Requests | API calls in selected period |
| Success Rate | Percentage of 2xx responses |
| Failed Requests | 4xx and 5xx responses |
| Blocked Requests | Failed attestation |
| Avg Latency | Mean response time |
| Cache Hit Rate | Percentage served from cache |
Time Ranges
Select your viewing period:
- Last 24 hours
- Last 7 days
- Last 30 days
- Last 90 days
- Custom range
Request Volume Chart
Visual graph showing request volume over time:
- Blue line: Successful requests
- Red area: Failed requests
- Gray area: Blocked requests
Insights
Look for patterns:
- Spikes — Unusual traffic bursts
- Drops — Potential app issues
- Steady growth — Healthy usage
Top Endpoints
See which API endpoints receive the most traffic:
| Column | Description |
|---|---|
| Endpoint | The API service name |
| Requests | Total calls |
| Success Rate | Percentage successful |
| Avg Latency | Mean response time |
Use Cases
- Identify most-used features
- Find slow endpoints for optimization
- Detect endpoints with high error rates
Error Breakdown
Understand why requests fail:
Error Categories
| Category | Description |
|---|---|
| Attestation Failed | Device verification rejected |
| Rate Limited | Too many requests |
| Target Error | Third-party API returned error |
| Timeout | Request took too long |
| Invalid Request | Malformed request from app |
Drilling Down
Click any category to see:
- Specific error codes
- Affected endpoints
- Time distribution
Device Analytics
Understand your user base:
Platform Breakdown
| Metric | Shows |
|---|---|
| iOS vs Android | Platform distribution |
| OS Versions | Which versions are used |
| App Versions | SDK version distribution |
Attestation Stats
| Metric | Description |
|---|---|
| Attestation Success | Verified device requests |
| Attestation Failures | Blocked requests |
| Failure Reasons | Why attestation failed |
Latency Analysis
Monitor response times:
Percentiles
| Percentile | Meaning |
|---|---|
| p50 | Median (50% faster than this) |
| p90 | 90% of requests faster |
| p95 | 95% of requests faster |
| p99 | 99% of requests faster |
By Endpoint
See which endpoints are slowest:
- Target API response time
- ProtectMyAPI overhead
- Total round-trip time
Cost Tracking
If using AI providers, track costs:
| Metric | Description |
|---|---|
| Estimated Cost | Based on token usage |
| By Provider | Cost breakdown per AI |
| By Endpoint | Which features cost most |
💰
Cost estimates are approximate based on public pricing. Actual bills come from providers directly.
Alerts & Anomalies
Automatic Detection
ProtectMyAPI can alert you to:
- Unusual traffic spikes
- High error rates
- Latency degradation
- Blocked request increases
Setting Up Alerts
- Go to Settings → Notifications
- Enable alert types
- Set thresholds
- Add email recipients
Exporting Data
Download Reports
- Go to Analytics
- Select time range
- Click “Export”
- Choose format (CSV or JSON)
Available Exports
| Report | Contents |
|---|---|
| Summary | Key metrics overview |
| Requests | Detailed request log |
| Errors | Error breakdown |
| Devices | Device analytics |
App-Specific Analytics
View analytics for a single app:
- Go to Apps
- Select the app
- See app-specific metrics
Per-App Metrics
- Request volume
- Error rates
- Top endpoints
- Device distribution
Live Console
Real-time request monitoring:
- Go to Apps → Select app → Live Console
- See requests as they happen
- Click any request for details
Request Details
| Field | Shows |
|---|---|
| Timestamp | When it happened |
| Endpoint | Which service was called |
| Status | Response code |
| Latency | Total time |
| Device | Platform and OS |
| Attestation | Pass/fail |
Best Practices
Regular Monitoring
- Daily: Check error rates
- Weekly: Review top endpoints and latency
- Monthly: Analyze trends and costs
Investigating Issues
- Start with the Overview for the big picture
- Use Error Breakdown to identify issues
- Check Latency Analysis for performance
- Use Live Console for real-time debugging
Optimization
- Cache frequently-accessed data
- Set appropriate timeouts
- Monitor and optimize slow endpoints
Troubleshooting
”No data showing”
- Verify the time range includes activity
- Check that you have apps with traffic
- Try refreshing the page
”Data seems delayed”
- Analytics may have 1-2 minute delay
- Use Live Console for real-time data
”Costs not accurate”
- Cost estimates are approximations
- Check your provider’s dashboard for actual bills