Summarize a metric page in a few sentences
The sentences of a metric page's summary box, and the numbers they rest on.
The text is plain and already in the requested language. A part with a
section names the page section that shows its evidence. facts carries
the numbers, so the tiles above the box read the same values. Every
statement is served from the analytics result cache, the rendering is not
cached.
compare_to takes a mode, a {from, to} window or a {release_id},
resolved as on /analytics/query, and picks the window of
facts.comparison. Set in any form, the sentences say what changed
against that window instead of how the metric stands. Unset, the window is
previous_period and the sentences are the plain ones.
Requires: analytics:read, held by every role.
AuthentifizierungBearer <fm_… / fmo_…>API token generated from the fastmon dashboard (Account → API Token) or at organization level (fmo_…, one that outlives its creator). Send as Authorization: Bearer fm_... or paste the full token (including its prefix) into the Authorize dialog.
org_id*Org IdAn ID, a UUID in lowercase with hyphens.
uuidapplication/json- body
The metric page, its scope and the language to write in.
metric*SummaryMetricThe metric page to summarize
"lcp""ttfb""inp""cls""fcp""tbt""page_load_time""dns_lookup""tcp_connection"time_range*The window, as /analytics/query takes it
filters?Optional filters, as /analytics/query takes them
aggregation?AggregationTypeThe percentile the page shows: p50, p75, p90 or p95
"p75""count""avg""sum""min""max""p50""p75""p90""p95""p99""good_share""needs_improvement_share""poor_share"compare_to?|||The window facts.comparison is read over: a mode, a {from, to} window or a {release_id}, resolved as on /analytics/query. Set in any form, the sentences say what changed against it instead of how the metric stands. Unset, it is previous_period for the facts only
language?LanguageThe language of the sentences. A tag such as de-AT counts by its first two letters, and a language the summary does not speak falls back to en
length <= 16"en"Successful Response
application/json- response
The sentences of a metric page's summary box and the facts behind them.
meta*Facts about the result
request*The request as the server resolved it
language*LanguageThe language the sentences are in
"en""de"sentences*array<>In reading order, empty without data
facts*The numbers the sentences rest on
curl -X POST 'https://api.fastmon.eu/organizations/019d8b65-a109-76c7-9f4a-bda57a7ab21d/analytics/metric-summary' \ -H 'Content-Type: application/json' \ -d '{ "metric": "lcp", "time_range": { "from": "2026-04-14T09:50:01Z", "to": "2026-04-14T09:50:01Z" }}'{ "meta": { "execution_time_ms": 0, "total": 0, "limit": 0, "offset": 0, "has_more": true, "next_cursor": "string", "sampling": { "sampling_rate": 0, "is_sampled": true, "estimated_metrics": [ "string" ] }, "is_identity_mixed": true, "complete_until": "2026-04-14T09:50:01Z" }, "request": { "time_range": { "from": "2026-04-14T09:50:01Z", "to": "2026-04-14T09:50:01Z" }, "comparison_time_range": { "from": "2026-04-14T09:50:01Z", "to": "2026-04-14T09:50:01Z" }, "granularity": "minute", "identity": "stitch", "window_seconds": 0, "filters": {}, "url_param_key": "string" }, "language": "en", "sentences": [ { "sentence_type": "string", "severity": "string", "parts": [ { "text": "string", "section": "string" } ] } ], "facts": { "value": 0, "unit": "ms", "comparison": { "value": 0 }, "direction": "worse", "rating": "good", "good_share": 0, "poor_share": 0, "lead_phase": "string", "coverage": 0 }}