Overview
The Analytics API provides comprehensive insights into your Supermemory usage:- Usage Statistics: Track API calls by type, hourly trends, and per-API key breakdown
- Error Monitoring: Identify top error types and patterns
- Detailed Logs: Access complete request/response logs for debugging
- Performance Metrics: Monitor average response times and processing duration
Analytics data is available for your entire organization and can be filtered by time period.
Usage Statistics
Get comprehensive usage statistics including hourly breakdowns and per-key metrics.Endpoint
GET /v3/analytics/usage
Parameters
Parameter | Type | Description |
---|---|---|
from | string (ISO 8601) | Start date/time for the period |
to | string (ISO 8601) | End date/time for the period |
period | string | Alternative to from : 1h , 24h , 7d , 30d |
page | integer | Page number for pagination (default: 1) |
limit | integer | Items per page (default: 20, max: 100) |
Example Request
Response Schema
Error Monitoring
Track and analyze errors to identify issues and improve reliability.Endpoint
GET /v3/analytics/errors
Parameters
Same as usage endpoint - supportsfrom
, to
, period
, page
, and limit
.
Example Request
Response Schema
Detailed Logs
Access complete request/response logs for debugging and auditing.Endpoint
GET /v3/analytics/logs
Parameters
Same as usage endpoint, plus optional filters:type
: Filter by request type (add, search, update, delete)statusCode
: Filter by HTTP status codekeyId
: Filter by specific API key
Example Request
Response Schema
Rate Limits
Analytics endpoints have the following rate limits:- 100 requests per minute per organization
- Maximum time range: 90 days
- Maximum page size: 100 items
Analytics data is retained for 90 days. For longer retention, export and store the data in your own systems.
Related Resources
- API Authentication - Set up API keys
- Error Handling - Understanding error codes
- Rate Limits - API usage limits