Query Element Targets
Rank the attributed elements (CSS selector paths) for lcp / cls / inp.
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 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
curl -X POST "https://example.com/v1/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" }'{ "metric": "string", "groups": [ { "key": "string", "pageviews_with_target": 0, "targets": [ { "target": "string", "count": 0, "share_pct": 0, "avg_value": 0 } ] } ], "execution_time_ms": 0}{ "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": {} }}