Skip to Content
fastmon Docs
Error tracking

Break errors down by signature

Fehler melden

Get breakdown of error signatures from collected pageviews.

Reads the structured errors Nested column. Each pageview row stores up to 5 (type, count, sample_message, frame_hosts, frame_lines, frame_cols, fingerprint, is_first_party) entries; we ARRAY JOIN and aggregate by fingerprint, the canonical server-computed signature key.

Display projections such as error_type are aggregated via any(), since the fingerprint hashes those exact inputs. The frames are the exception, see the query.

compare_to takes a mode, a {from, to} window or a {release_id}, and adds each row's count over that window as comparison.

Requires: analytics:read, held by every role.

Authentifizierung

headerAuthentifizierungBearer <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.

Pfad-Parameter

org_id*Org Id

An ID, a UUID in lowercase with hyphens.

Formatuuid

Request-Body

application/json
  1. body

Request for error types breakdown.

time_range*

Time range for the query

filters?

Optional filters

timezone?|

IANA time zone the local hours of filters.hour_of_day are read in, such as Europe/Berlin. The filter requires it. This route buckets nothing, so the zone changes nothing else

sparse_buckets?|

The sparse threshold of the page, the number POST /analytics/sparse-hours derives. With exclude the rows of the thin hours are left out. Without it the route only echoes the number in meta.sparse_buckets

error_type?array<string>|

Restrict to specific error types (e.g. ['ResourceLoadError']).

exclude_error_type?array<string>|

Drop these error types from the breakdown (e.g. ['ResourceLoadError'] to stop third-party resource-load noise from counting). Negative of error_type.

exclude_hosts?array<string>|

Exclude error signatures whose stack frames touch any of these hosts (e.g. ['bat.bing.com'] to drop a noisy 3rd-party).

ownership?array<>|

Restrict to these ownerships of the error signature. Matches per-signature errors.is_first_party (filter-then-rank: the Top-N reflects the chosen group). Default: both, mixed is rejected. Signature-accurate, unlike the page-level filters.error_origin, which says whether the PAGEVIEW carried an own error.

group_variants?Group Variants

Merge the fingerprints of one fault into one row: the engines report the same throw site a few columns apart, and a second caller is a second stack. A row then counts all of them and lists them as variants. Off by default, because a client that compares rows across periods has to match them by their variants rather than by fingerprint.

Defaultfalse
status?|

Keep only the open or only the acknowledged rows. Absent keeps both. Applied after the query and before limit, over four times limit fingerprints at most 200, so a side can return fewer rows than limit when the other side filled that fetch.

limit?Limit

Max error types to return

Range1 <= value <= 50
Default10
compare_to?|||

Also count each returned signature over a second window, as comparison on its row. A mode, a {from, to} window or a {release_id}, resolved as on /analytics/query. The counts are raw, so a window of another length needs no correction here but does in the reader.

Response-Body

Successful Response

application/json
  1. response

Response for error types breakdown.

meta*

Facts about the result

request*

The request as the server resolved it

data*array<>

Error types with counts

error_count*Error Count

Total JavaScript error count. Failed resource loads are a separate signal, see /analytics/failed-resources.

blocked_count*Blocked Count

Ad-blocked tracker requests in the same filter scope - surface as 'N excluded as ad-blocked', not as a failure. A subset of the blocked bucket on /analytics/failed-resources.

Default0
own_subdomain_hosts*array<string>

Hosts on the site's own registrable domain, other than the page host, that served scripts or slow resources in this scope. Filled only when a ScriptError row is present: a masked error cannot be attributed, but the fix (crossorigin="anonymous" plus CORS on the host) needs a host name, and these are the ones the site owner controls. A hint, not a verdict: the beacon carries no exhaustive script-host list.

POST
/organizations/{org_id}/analytics/error-types
Example Request
curl -X POST 'https://api.fastmon.eu/organizations/019d8b65-a109-76c7-9f4a-bda57a7ab21d/analytics/error-types' \  -H 'Content-Type: application/json' \  -d '{  "time_range": {    "from": "2026-04-14T09:50:01Z",    "to": "2026-04-14T09:50:01Z"  }}'
Example Response
{  "meta": {    "execution_time_ms": 0,    "total": 0,    "limit": 0,    "offset": 0,    "has_more": true,    "next_cursor": "string",    "sampling": {      "rate": 0,      "is_sampled": true,      "estimated_metrics": [        "string"      ]    },    "is_identity_mixed": true,    "complete_until": "2026-04-14T09:50:01Z",    "sparse_buckets": {      "min_pageviews": 0,      "excluded_hour_count": 0    }  },  "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"  },  "data": [    {      "status": "open",      "acknowledged_at": "2026-04-14T09:50:01Z",      "note": "string",      "acknowledgement": {        "id": "019d8b65-a109-76c7-9f4a-bda57a7ab21d",        "message_shape": {          "kind": "",          "identifier": "",          "sample": "string"        }      },      "fingerprint": "string",      "error_type": "string",      "count": 0,      "share": 0,      "message_shape": {        "kind": "",        "identifier": "",        "sample": "string"      },      "ownership": "first_party",      "frames": [        {          "host": "string",          "path": "",          "line": 0,          "column": 0        }      ],      "last_seen_at": "2026-04-14T09:50:01Z",      "variants": [        {          "fingerprint": "string",          "count": 0,          "frames": [            {              "host": "string",              "path": "",              "line": 0,              "column": 0            }          ]        }      ],      "comparison": {        "count": 0      }    }  ],  "error_count": 0,  "blocked_count": 0,  "own_subdomain_hosts": [    "string"  ]}