fastmon Docs
Analytics

Rank the elements behind LCP, CLS and INP

Report an issue

Rank the attributed elements (CSS selector paths) for lcp / cls / inp.

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 element-targets breakdown (migration-053 selector paths).

Generic over the three attributed vitals: which ELEMENT is the LCP / the largest layout shift / the reported INP interaction target. The selector columns are deliberately not query-builder dimensions (high-cardinality GROUP BY hazard); this endpoint ranks them via a bounded-state topK instead.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

POST
/organizations/{org_id}/analytics/element-targets
curl -X POST "https://example.com/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/analytics/element-targets" \  -H "Content-Type: application/json" \  -d '{    "time_range": {      "from": "2019-08-24T14:15:22Z",      "to": "2019-08-24T14:15:22Z"    },    "metric": "lcp"  }'
{  "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"      ]    }  },  "request": {    "time_range": {      "from": "2019-08-24T14:15:22Z",      "to": "2019-08-24T14:15:22Z"    },    "comparison_time_range": {      "from": "2019-08-24T14:15:22Z",      "to": "2019-08-24T14:15:22Z"    },    "granularity": "minute",    "identity": "stitch",    "window_seconds": 0,    "filters": {}  },  "metric": "string",  "groups": [    {      "key": "string",      "pageviews_with_target": 0,      "targets": [        {          "target": "string",          "count": 0,          "share": 0,          "avg_value": 0        }      ]    }  ]}