API Usage Analytics
Location: Dashboard > API Analytics
The API Analytics dashboard provides detailed insights into your API usage patterns, request performance, and error rates. Use these tools to monitor integration health and optimize your verification workflows.
Table of Contents
- Overview
- Analytics Dashboard
- Request Logs
- Key Metrics
- Filtering & Search
- Dashboard data endpoints
- Best Practices
Overview
API Analytics helps you understand:
- Usage Patterns - When and how your integrations make requests
- Performance - Response times and processing speed
- Error Rates - Failed requests and their causes
- Product Distribution - Which verification products are used most
Access: Dashboard > API Analytics
Analytics Dashboard
Summary Cards
The dashboard displays key metrics at a glance:
| Metric | Description |
|---|---|
| Total Requests | API calls in selected period |
| Success Rate | Percentage of successful requests |
| Avg Response Time | Mean response time in milliseconds |
| Error Rate | Percentage of failed requests |
Charts
Request Volume Chart
- Daily/weekly/monthly request counts
- Comparison with previous period
- Trend line for pattern identification
Response Time Distribution
- Histogram of response times
- P50, P95, P99 percentiles
- Outlier identification
Error Breakdown
- Pie chart of error types
- Click to drill down into specific errors
- Timeline of error occurrences
Product Usage
- Bar chart by verification product
- Credit consumption per product
- Success rate per product
Request Logs
Detailed logs of individual API requests with full context.
Log Entry Fields
| Field | Description |
|---|---|
| Timestamp | When the request was made |
| Endpoint | API endpoint called |
| Method | HTTP method (POST, GET, etc.) |
| Status Code | HTTP response status |
| Response Time | Time to process (ms) |
| API Key | Key used (masked) |
| IP Address | Origin IP (masked for privacy) |
| User Agent | Client identifier |
| Error Message | Details if request failed |
Log Entry Example
2025-12-31 10:30:15 UTC
POST /api/verify
Status: 200 OK
Response Time: 1,250ms
API Key: vhk_live_****abcd
IP: 203.0.113.*
User Agent: Mozilla/5.0 (Python/requests)
Failed Request Details
For failed requests, additional context is provided:
2025-12-31 10:35:22 UTC
POST /api/verify
Status: 400 Bad Request
Response Time: 45ms
Error: No face detected in image
API Key: vhk_live_****efgh
Verification ID: ver_xyz789
Key Metrics
Performance Metrics
| Metric | Healthy | Warning | Critical |
|---|---|---|---|
| Avg Response Time | < 2s | 2-5s | > 5s |
| P95 Response Time | < 3s | 3-8s | > 8s |
| Success Rate | > 95% | 90-95% | < 90% |
| Error Rate | < 5% | 5-10% | > 10% |
Error Categories
| Category | Description | Common Causes |
|---|---|---|
| Client Errors (4xx) | Invalid request | Bad API key, missing params |
| Server Errors (5xx) | Processing failed | Provider issues, timeout |
| Validation Errors | Invalid input | Bad image format, too large |
| Rate Limit | Too many requests | Throttling triggered |
Credit Efficiency
| Metric | Calculation |
|---|---|
| Credits per Success | Total credits / Successful verifications |
| Waste Rate | Failed credits / Total credits |
| Product Mix Cost | Weighted average by product credit cost |
Filtering & Search
Time Range Filters
- Last 24 hours
- Last 7 days
- Last 30 days
- Custom range (up to 90 days)
Status Filters
- All - Every request
- Success - 2xx responses
- Client Error - 4xx responses
- Server Error - 5xx responses
Endpoint Filters
/api/verify(VerifyHuman)/api/v1/verify-age/*(VerifyAge)/api/identity/v1/*(VerifyIdentity)/api/kyc/v1/*(VerifyTrust)
API Key Filters
Select specific API keys to analyze their individual performance.
Search
Search logs by:
- Verification ID
- Error message text
- IP address (partial)
Dashboard data endpoints
The API Analytics page loads its data from two endpoints of the dashboard. They are authenticated by your dashboard sign-in session, not by an API key, and their response format follows the dashboard and may change. For programmatic reporting, use the Reporting API.
| Endpoint | Parameters |
|---|---|
GET /dashboard/api/analytics/summary |
days — number of days to summarise (default 30) |
GET /dashboard/api/analytics/logs |
page, per_page (default 50), endpoint, status, from, to |
Best Practices
Monitoring
- Set up alerts for error rate spikes
- Check daily for unusual patterns
- Monitor response times for degradation
- Review failed requests regularly
Optimization
- Identify slow endpoints and optimize image sizes
- Reduce error rate by improving image capture
- Balance load across multiple API keys
- Cache results where appropriate
Troubleshooting
- Filter by error type to find patterns
- Check timestamps for incident correlation
- Review specific verification IDs for deep debugging
- Compare periods to identify regressions
Security
- Watch for unusual IPs making requests
- Monitor for rate limit hits (possible abuse)
- Check for 401 errors (invalid key usage)
- Review API key usage patterns
See Also
- Reporting API - Verification analytics
- Troubleshooting - Error resolution
- Dashboard Guide - Navigation help