Get detailed usage analytics for your API key showing request counts grouped by endpoint path. This endpoint provides insight into your API consumption patterns with configurable time periods.
Request
Your API key for authentication
Query Parameters
Time period for usage statistics Valid Values:
24h - Last 24 hours
7d - Last 7 days
30d - Last 30 days (default)
90d - Last 90 days
all - All time usage
Response
Array of usage statistics by endpoint path API endpoint path (e.g., “/api/search”, “/api/product”)
Total number of API calls made to this endpoint
Echo back the requested time period
curl -X GET "https://api.getcatalog.ai/api/usage?period=7d" \
-H "x-api-key: YOUR_API_KEY"
{
"usage" : [
{
"path" : "/api/search" ,
"total_calls" : 1247
},
{
"path" : "/api/product" ,
"total_calls" : 856
},
{
"path" : "/api/products" ,
"total_calls" : 234
},
{
"path" : "/v1/affiliate" ,
"total_calls" : 89
},
{
"path" : "/api/feed" ,
"total_calls" : 45
}
],
"period" : "7d"
}