fastmon Docs
Analytics

Query Failed Resources

Report an issue

Resources that failed to load, grouped by host and path.

Reads the same errors Nested column the error list reads, restricted to ResourceLoadError. That type carries exactly one frame, whose host and path are the failing resource itself, so the group-by keys come straight off frame_hosts[1] / frame_paths[1] with no extra column.

The HOST is always there; the path is not. Stack frames are opt-in per site (collect_error_frames, off by default) and without them the privacy strip keeps a path only when the frame host is EXACTLY the page host. The bucket asks the registrable domain instead, so a resource on the shop's own CDN subdomain lands in first_party and still arrives host-only. That gap is a privacy classification (docs/data_collection.md §3.9) and not something this endpoint decides.

pageviews counts distinct pvid, which is duplicate-invariant and so survives both the ARRAY JOIN row explosion and a pageview that sent several beacons. count does NOT: this reads beacons rather than beacons FINAL, so inside the un-merged window a pageview that sent three beacons counts its errors three times. Deliberate and consistent with the error-types panel next to it, which reads the same way; the MCP tool reads FINAL and so reports a smaller total for the same period. See aggregates.error_totals, which documents the identical divergence.

Authorization

bearerAuth
AuthorizationBearer <token>

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.

In: header

Path Parameters

org_id*Org Id
Formatuuid

Request Body

application/json

Request for the failed-resources breakdown.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

POST
/organizations/{org_id}/analytics/failed-resources
curl -X POST "https://example.com/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/analytics/failed-resources" \  -H "Content-Type: application/json" \  -d '{    "time_range": {      "from": "2019-08-24T14:15:22Z",      "to": "2019-08-24T14:15:22Z"    }  }'
{  "data": [    {      "bucket": "first_party",      "host": "string",      "path": "",      "fingerprint": "",      "count": 0,      "pageviews": 0    }  ],  "total_failed": 0,  "by_bucket": {    "property1": 0,    "property2": 0  },  "execution_time_ms": 0}