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

MetricDescription
Total RequestsAPI calls in selected period
Success RatePercentage of 2xx responses
Failed Requests4xx and 5xx responses
Blocked RequestsFailed attestation
Avg LatencyMean response time
Cache Hit RatePercentage 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:

ColumnDescription
EndpointThe API service name
RequestsTotal calls
Success RatePercentage successful
Avg LatencyMean 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

CategoryDescription
Attestation FailedDevice verification rejected
Rate LimitedToo many requests
Target ErrorThird-party API returned error
TimeoutRequest took too long
Invalid RequestMalformed 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

MetricShows
iOS vs AndroidPlatform distribution
OS VersionsWhich versions are used
App VersionsSDK version distribution

Attestation Stats

MetricDescription
Attestation SuccessVerified device requests
Attestation FailuresBlocked requests
Failure ReasonsWhy attestation failed

Latency Analysis

Monitor response times:

Percentiles

PercentileMeaning
p50Median (50% faster than this)
p9090% of requests faster
p9595% of requests faster
p9999% 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:

MetricDescription
Estimated CostBased on token usage
By ProviderCost breakdown per AI
By EndpointWhich 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

  1. Go to SettingsNotifications
  2. Enable alert types
  3. Set thresholds
  4. Add email recipients

Exporting Data

Download Reports

  1. Go to Analytics
  2. Select time range
  3. Click “Export”
  4. Choose format (CSV or JSON)

Available Exports

ReportContents
SummaryKey metrics overview
RequestsDetailed request log
ErrorsError breakdown
DevicesDevice analytics

App-Specific Analytics

View analytics for a single app:

  1. Go to Apps
  2. Select the app
  3. See app-specific metrics

Per-App Metrics

  • Request volume
  • Error rates
  • Top endpoints
  • Device distribution

Live Console

Real-time request monitoring:

  1. Go to Apps → Select app → Live Console
  2. See requests as they happen
  3. Click any request for details

Request Details

FieldShows
TimestampWhen it happened
EndpointWhich service was called
StatusResponse code
LatencyTotal time
DevicePlatform and OS
AttestationPass/fail

Best Practices

Regular Monitoring

  • Daily: Check error rates
  • Weekly: Review top endpoints and latency
  • Monthly: Analyze trends and costs

Investigating Issues

  1. Start with the Overview for the big picture
  2. Use Error Breakdown to identify issues
  3. Check Latency Analysis for performance
  4. 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

Next Steps