fastmon Docs
Synthetic

Get Synthetic Lighthouse

Fehler melden

Curated Lighthouse report (latest run unless a run id is given): category scores, metrics, opportunities, and native LH audit objects for waterfall / third-party / resource-summary / filmstrip / main-thread).

Authentifizierung

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

Pfad-Parameter

page_id*Page Id
Formatuuid
site_id*Site Id
Formatuuid

Query-Parameter

device_type?|

The device class to answer for. Defaults to desktop.

commerce_score_analysis_id?|

Target a specific run; default latest

Response-Body

Successful Response

application/json
  1. response

Curated Lighthouse report: category scores, metrics (ms), opportunities, and a whitelist of native Lighthouse audit objects (waterfall / third-party / resource-summary / filmstrip / main-thread) for the frontend to render.

page_id*Page Id
Formatuuid
device_type*SyntheticDeviceType

The class of device commerce-score measures a page on (§28).

Two values, not the three of DeviceType: commerce-score runs Lighthouse on a desktop and a mobile profile only, so a shared enum would promise a tablet run no route can answer.

Value in"desktop""mobile"
lighthouse_version?Lighthouse Version
fetched_url?Fetched Url
categories*
values_by_metric*

One measurement per Lighthouse metric id, in the metric's own unit.

opportunities*array<>
audits*
GET
/sites/{site_id}/synthetic/pages/{page_id}/lighthouse
curl -X GET 'https://api.fastmon.eu/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/synthetic/pages/497f6eca-6276-4993-bfeb-53cbbbba6f08/lighthouse'
{  "page_id": "ef107761-0142-48fe-9dcd-5140d1ae58db",  "device_type": "desktop",  "lighthouse_version": "string",  "fetched_url": "string",  "categories": {    "property1": 0,    "property2": 0  },  "values_by_metric": {    "property1": 0,    "property2": 0  },  "opportunities": [    {      "id": "string",      "title": "string",      "score": 0,      "savings_ms": 0    }  ],  "audits": {}}