Get hourly metrics
const url = 'https://dashboard.quantcdn.io/v2/organizations/example/projects/example/metrics/hourly?timestamp_format=iso8601';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://dashboard.quantcdn.io/v2/organizations/example/projects/example/metrics/hourly?timestamp_format=iso8601'Returns the last hour of minute-by-minute metrics data
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization identifier
Project identifier
Query Parameters
Section titled “Query Parameters”Filter by domain ID or domain name
Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
Timestamp format in response
Responses
Section titled “Responses”Hourly metrics data
object
object
The period type for this data
The granularity of data points
Start time of the data range (ISO8601 or Unix timestamp based on timestamp_format parameter)
End time of the data range (ISO8601 or Unix timestamp based on timestamp_format parameter)
List of metrics included in the response
Domain filter applied (if any)
Metrics data keyed by metric name
object
object
Total value for the period
All-time total value
Average value per time unit in the period
Example
{ "meta": { "period": "hourly", "granularity": "minute", "start_time": "2026-01-29T12:00:00+00:00", "end_time": "2026-01-29T13:00:00+00:00", "metrics": [ "hits", "bytes" ], "domain": null }, "data": { "hits": { "series": [ { "timestamp": "2026-01-29T12:00:00+00:00", "value": 150 }, { "timestamp": "2026-01-29T12:01:00+00:00", "value": 142 } ], "period_total": 8523, "all_time_total": 1284567, "period_average": 142.05 }, "bytes": { "series": [ { "timestamp": "2026-01-29T12:00:00+00:00", "value": 1520576 }, { "timestamp": "2026-01-29T12:01:00+00:00", "value": 1423456 } ], "period_total": 91234567, "all_time_total": 12845670000, "period_average": 1520576.12 } }}Invalid metric requested
No domains found or domain not found
