Query Histogram
Get histogram distribution for a metric.
Metrics: lcp, fcp, cls, inp, ttfb, tbt, dns_lookup, tcp_connection, etc.
Buckets: Define boundaries as array, e.g., [0, 500, 1000, 2500, 4000] creates buckets: <0, 0-500, 500-1000, 1000-2500, 2500-4000, 4000+
Example for LCP histogram:
{ "time_range": {"from": "2024-01-01", "to": "2024-01-08"}, "metric": "lcp", "buckets": [0, 500, 1000, 2500, 4000]}Authorization
bearerAuth API token generated from the fastmon dashboard (Account → API Token). Send as Authorization: Bearer fm_... or paste the full token (including the fm_ prefix) into the Authorize dialog.
In: header
Path Parameters
uuidRequest Body
application/json
Request schema for histogram queries.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/analytics/histogram" \ -H "Content-Type: application/json" \ -d '{ "time_range": { "from": "2019-08-24T14:15:22Z", "to": "2019-08-24T14:15:22Z" }, "metric": "string", "buckets": [ 0, 0 ] }'{ "buckets": [ { "bucket": "string", "min_value": 0, "max_value": 0, "count": 0, "percentage": 0 } ], "meta": { "total_samples": 0, "execution_time_ms": 0, "metric": "string", "time_range": {}, "applied_filters": {} }}{ "error": { "code": "string", "message": "string", "request_id": "string", "doc_url": "string", "details": {} }}{ "error": { "code": "string", "message": "string", "request_id": "string", "doc_url": "string", "details": {} }}{ "error": { "code": "string", "message": "string", "request_id": "string", "doc_url": "string", "details": {} }}{ "error": { "code": "string", "message": "string", "request_id": "string", "doc_url": "string", "details": {} }}{ "error": { "code": "string", "message": "string", "request_id": "string", "doc_url": "string", "details": {} }}