turbometrics · OpenAPI 3.1.0
API reference
Every endpoint of the turbometrics REST API v1 with parameters, responses and error codes. Generated from the OpenAPI file, which you can also load straight into Postman, Insomnia or a code generator.
Access and operation
Every request needs a bearer token in the header Authorization: Bearer {token}. You create tokens under Account → API & apps. The API always responds with JSON; without a valid token it answers 401. GET /api/v1, the OpenAPI file and this page need no token.
| Plan | Requests per day |
|---|---|
| Starter | 1,000 |
| Pro | 5,000 |
| Agency | Unlimited |
Above the limit the API answers 429; the counter resets at midnight. POST /changes and POST /inventory do not count toward the daily limit but are limited to 120 requests per hour for each website and 60 per minute for each account. Reads from the official WordPress plugin have their own limit of 300 requests per hour for each website.
Error codes
| Code | Meaning |
|---|---|
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
404 | Resource not found or not yours. |
422 | Validation error, e.g. an invalid URL. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
500 | Internal error. |
Account
Your account, plan and API usage.
GET
/me
Account and API usage
Returns account information and the current API usage. api_daily_limit and limit_today are 0 for plans without a daily limit.
Bearer token · Counts toward the daily request limit of your plan.
Responses
| Code | Meaning |
|---|---|
200 | Account with plan, usage today and live data quota. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": {
"id": 42,
"name": "Jane Doe",
"email": "[email protected]",
"plan": {
"key": "starter",
"label": "Starter",
"api_enabled": true,
"api_daily_limit": 1000
},
"api_usage": {
"used_today": 12,
"limit_today": 1000,
"reset_at": "2026-04-01T23:59:59+02:00"
},
"rum": {
"enabled": true,
"pageviews_this_month": 988,
"monthly_limit": 1000000,
"sites_count": 2
}
}
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/me"
GET
/token-info
Check a token
Tells whether a bearer token is still valid. The MCP server asks this before each request; it works without a paid plan check.
Bearer token · Does not count toward the daily request limit. Limited to 120 requests per minute for each user.
Responses
| Code | Meaning |
|---|---|
200 | The token is valid. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"valid": true,
"user_id": 42
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/token-info"
Scans
Start scans, read results, share and keep them.
GET
/scans
List scans
Returns a paginated list of your scans.
Bearer token · Counts toward the daily request limit of your plan.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit |
query | integer | Results per page, max. 50 (default: 20). |
page |
query | integer | Page number. |
domain |
query | string | Filters by URL content. |
status |
query | string | queued, running, finished, failed.
|
Responses
| Code | Meaning |
|---|---|
200 | List of scans with page information. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": [
{
"public_id": "01KN3X...",
"report_url": "https://turbometrics.io/scan/01KN3X...",
"status": "finished",
"submitted_url": "https://example.com/",
"region": "de-fsn1",
"auth_type": null,
"requested_at": "2026-03-31T00:29:00+02:00",
"finished_at": "2026-03-31T00:29:45+02:00",
"result": {
"scores": {
"overall": 87,
"speed": 100,
"images": 93,
"caching": 89,
"wordpress": 100,
"technical": 70
}
}
}
],
"meta": {
"current_page": 1,
"per_page": 10,
"total": 143,
"last_page": 15
}
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/scans"
POST
/scans
Start a scan
Starts a new scan. The scan is processed asynchronously; call GET /scans/{id} to check the status.
Without force: true, an existing result for the same URL is returned if it is less than 24 hours old. The response then contains "cached": true and HTTP 200 instead of 202.
Scans with auth require the Pro plan, are always private, and credentials are never returned (auth_type only indicates the kind).
Bearer token · Counts toward the daily request limit of your plan.
Request body (JSON)
| Field | Type | Description |
|---|---|---|
url required |
string | The URL to scan. |
region |
string | Scan location (e.g. de-fsn1, de-nbg1), from the locations of your plan.
|
public |
boolean | Publicly visible (default: false). |
force |
boolean | Force a fresh scan even if a recent result exists (default: false). |
keep |
boolean | Keep the scan permanently: it is not deleted when your history period ends, and shared links stay valid. Counts against your plan's quota (default: false). |
auth |
object | Authentication for protected pages (Pro plan and above). |
auth.type required |
string | basic or header.
|
auth.username |
string | User name (only with type: basic).
|
auth.password |
string | Password (only with type: basic).
|
auth.header_name |
string | Name of the HTTP header (only with type: header).
|
auth.header_value |
string | Value of the HTTP header (only with type: header).
|
Responses
| Code | Meaning |
|---|---|
200 | Existing result from the last 24 hours (cached: true).
|
202 | New scan queued. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
422 | Validation error, e.g. an invalid URL. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": {
"id": "01KN3X...",
"status": "finished",
"url": "https://example.com/",
"cached": true,
"auth_type": null,
"keep_forever": false
}
}
Example with curl
curl -X POST \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","force":true}' \
"https://turbometrics.io/api/v1/scans"
GET
/scans/{id}
Get a scan
Returns the details of a single scan.
report_url points to the report in the web interface; for private scans it only works for the signed-in owner. To pass a report on, use share_url.
While a scan is queued or running, progress shows its stage (queued, preflight, html, runtime_desktop, runtime_mobile, assets or null). It is null once the scan has finished or failed. Poll every few seconds and do not rely on a fixed order of the stages.
result.google_fonts.status is direct, embed_only, none or unknown; it is null for scans created before the field existed. result.preflight.page_cache_status is hit or miss (scans before 18 Nov 2026 do not have the field).
Bearer token · Counts toward the daily request limit of your plan.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required |
path | string | The scan's public_id (e.g. 01KN3X...).
|
locale |
query | string | Language of texts in the response (de or en), otherwise your account's language setting.
|
Responses
| Code | Meaning |
|---|---|
200 | The scan, with result once it has finished.
|
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
404 | Resource not found or not yours. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": {
"public_id": "01KN3X...",
"report_url": "https://turbometrics.io/scan/01KN3X...",
"status": "finished",
"is_public": false,
"submitted_url": "https://example.com/",
"region": "de-fsn1",
"auth_type": null,
"progress": null,
"share_enabled": false,
"share_url": null,
"requested_at": "2026-03-31T00:29:00+02:00",
"finished_at": "2026-03-31T00:29:45+02:00",
"result": {
"final_url": "https://example.com/",
"final_host": "example.com",
"http_status": 200,
"scores": {
"overall": 87,
"speed": 100,
"images": 93,
"caching": 89,
"wordpress": 100,
"technical": 70
},
"summary_short": "The page loads quickly, but has room for improvement in technical metrics.",
"metrics": {
"ttfb_ms": 182,
"desktop": {
"fcp_ms": 412,
"lcp_ms": 830,
"cls": 0.02,
"tbt_ms": 0,
"request_count": 34,
"total_bytes": 512000
},
"mobile": {
"fcp_ms": 980,
"lcp_ms": 2100,
"cls": 0.04,
"tbt_ms": 120,
"request_count": 34,
"total_bytes": 512000
}
},
"findings": [
{
"category": "images",
"code": "unoptimized_images",
"severity": "warning",
"title": "Images not optimised",
"message": "3 images could be smaller.",
"recommendation": "Use WebP and compress images before upload."
}
],
"google_fonts": {
"status": "none",
"fonts": []
}
}
}
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/scans/{id}"
POST
/scans/{id}/keep/enable
Keep a scan permanently
Marks a scan as kept permanently: it is no longer deleted when your plan's history period ends, and an enabled share link stays valid. Quota by plan: Free 0, Starter 3, Pro 10, Agency 50. If the quota is used up, the API answers 403 with an explanation. Enabling a scan that is already marked returns 200 (idempotent).
Bearer token · Counts toward the daily request limit of your plan.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required |
path | string | The scan's public_id (e.g. 01KN3X...).
|
locale |
query | string | Language of texts in the response (de or en), otherwise your account's language setting.
|
Responses
| Code | Meaning |
|---|---|
200 | Scan is kept permanently. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
404 | Resource not found or not yours. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": {
"keep_forever": true
}
}
Example with curl
curl -X POST \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/scans/{id}/keep/enable"
POST
/scans/{id}/keep/disable
Stop keeping a scan
Removes the mark. The scan is subject to your plan's history period again, and its slot in the quota is freed.
Bearer token · Counts toward the daily request limit of your plan.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required |
path | string | The scan's public_id (e.g. 01KN3X...).
|
Responses
| Code | Meaning |
|---|---|
200 | Mark removed. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
404 | Resource not found or not yours. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": {
"keep_forever": false
}
}
Example with curl
curl -X POST \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/scans/{id}/keep/disable"
Domains
Monitored scan targets and their score history.
GET
/domains
List monitored domains
Returns a paginated list of your monitored scan targets.
Bearer token · Counts toward the daily request limit of your plan.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
page |
query | integer | Page number. |
Responses
| Code | Meaning |
|---|---|
200 | List of scan targets with page information. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": [
{
"id": 7,
"host": "example.com",
"url": "https://example.com/",
"schedule": "daily",
"is_active": true,
"last_dispatched_at": "2026-03-31T08:00:00+02:00"
}
],
"meta": {
"current_page": 1,
"per_page": 20,
"total": 5,
"last_page": 1
}
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/domains"
GET
/domains/{id}/history
Score history of a domain
Returns the last 30 finished scans for a scan target.
Bearer token · Counts toward the daily request limit of your plan.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required |
path | integer | Numeric ID from GET /domains.
|
Responses
| Code | Meaning |
|---|---|
200 | Score, time and location of the last 30 finished scans. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
404 | Resource not found or not yours. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": [
{
"score": 87,
"created_at": "2026-03-31T08:01:23+02:00",
"region": "de-fsn1"
},
{
"score": 84,
"created_at": "2026-03-30T08:00:55+02:00",
"region": "de-fsn1"
}
]
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/domains/{id}/history"
Alerts
Alerts from monitoring.
GET
/alerts
List alerts
Returns a paginated list of your alerts.
diagnosis is null, or {sentence, confidence, attribution_id} when the decline behind the alert can be linked to a change (details via GET /attributions).
Bearer token · Counts toward the daily request limit of your plan.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
status |
query | string | open (open, not dismissed), resolved, unread.
|
severity |
query | string | critical, warning.
|
limit |
query | integer | Results per page, max. 50 (default: 20). |
page |
query | integer | Page number. |
locale |
query | string | Language of texts in the response (de or en), otherwise your account's language setting.
|
Responses
| Code | Meaning |
|---|---|
200 | List of alerts with page information. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": [
{
"id": 123,
"type": "score_below_threshold",
"severity": "critical",
"title": "Score below threshold",
"message": "Score 34 below the critical threshold of 60.",
"is_read": false,
"is_dismissed": false,
"url": "https://example.com/",
"host": "example.com",
"scan_id": "01KN3X...",
"diagnosis": null,
"created_at": "2026-03-31T08:01:23+02:00",
"resolved_at": null
}
],
"locale": "en",
"meta": {
"current_page": 1,
"per_page": 20,
"total": 3,
"last_page": 1
}
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/alerts"
GET
/alerts/{id}
Get an alert
Returns a single alert, with the same structure as an element from GET /alerts.
Bearer token · Counts toward the daily request limit of your plan.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required |
path | integer | Alert ID. |
locale |
query | string | Language of texts in the response (de or en), otherwise your account's language setting.
|
Responses
| Code | Meaning |
|---|---|
200 | The alert. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
404 | Resource not found or not yours. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": {
"id": 123,
"type": "score_below_threshold",
"severity": "critical",
"title": "Score below threshold",
"message": "Score 34 below the critical threshold of 60.",
"is_read": false,
"is_dismissed": false,
"url": "https://example.com/",
"host": "example.com",
"scan_id": "01KN3X...",
"diagnosis": null,
"created_at": "2026-03-31T08:01:23+02:00",
"resolved_at": null
}
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/alerts/{id}"
POST
/alerts/mark-read
Mark alerts as read
Marks alerts as read. Without ids, all unread alerts are marked.
Bearer token · Counts toward the daily request limit of your plan.
Request body (JSON)
| Field | Type | Description |
|---|---|---|
ids |
array<integer> | Alert IDs; missing → all. |
Responses
| Code | Meaning |
|---|---|
200 | Number of alerts marked as read. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
422 | Validation error, e.g. an invalid URL. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": {
"marked_read": 5
}
}
Example with curl
curl -X POST \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"ids":[123,124]}' \
"https://turbometrics.io/api/v1/alerts/mark-read"
Live data (RUM)
Real user monitoring of your websites. Starter plan and above.
GET
/rum/sites
List live data websites
Returns a paginated list of your live data websites. Starter plan and above only.
Bearer token · Counts toward the daily request limit. Reads from the official WordPress plugin (header x-turbometrics-client: wordpress-plugin/<version>) do not count; they have their own limit of 300 requests per hour for each website and 3,000 per hour for each account.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit |
query | integer | Results per page, max. 50 (default: 20). |
page |
query | integer | Page number. |
Responses
| Code | Meaning |
|---|---|
200 | List of live data websites with page information. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": [
{
"id": 1,
"domain": "turbometrics.io",
"active": true,
"embed_snippet": "<script src=\"https://turbometrics.io/tm.min.js\" data-site-id=\"...\" async></script>",
"pageviews_this_month": 988,
"monthly_limit": 1000000,
"created_at": "2026-04-01T00:00:00+02:00"
}
],
"meta": {
"current_page": 1,
"per_page": 20,
"total": 2,
"last_page": 1
}
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/rum/sites"
GET
/rum/sites/{id}
Get a live data website
Returns the details of a single live data website.
Bearer token · Counts toward the daily request limit of your plan.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required |
path | integer | ID of the live data website from GET /rum/sites.
|
Responses
| Code | Meaning |
|---|---|
200 | The live data website. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
404 | Resource not found or not yours. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": {
"id": 1,
"domain": "turbometrics.io",
"active": true,
"embed_snippet": "<script src=\"https://turbometrics.io/tm.min.js\" data-site-id=\"...\" async></script>",
"pageviews_this_month": 988,
"monthly_limit": 1000000,
"created_at": "2026-04-01T00:00:00+02:00"
}
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/rum/sites/{id}"
GET
/rum/sites/{id}/summary
Core Web Vitals summary
Returns p75 values and the Core Web Vitals status for a website. cwv_pass is true when LCP, CLS and INP are within the target range and each has at least 20 measurements. With too little data, cwv_pass is null and cwv_insufficient_data is true.
Bearer token · Counts toward the daily request limit. Reads from the official WordPress plugin (header x-turbometrics-client: wordpress-plugin/<version>) do not count; they have their own limit of 300 requests per hour for each website and 3,000 per hour for each account.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required |
path | integer | ID of the live data website from GET /rum/sites.
|
period |
query | string | 24h, 7d, 30d (default: 24h).
|
device |
query | string | all, desktop, mobile, tablet (default: all).
|
path |
query | string | Only measurements of this exact path, e.g. /pricing/ (must start with /, at most 2048 characters, otherwise 422).
|
Responses
| Code | Meaning |
|---|---|
200 | p75 values per metric and the Core Web Vitals status. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
404 | Resource not found or not yours. |
422 | Validation error, e.g. an invalid URL. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": {
"domain": "turbometrics.io",
"period": "24h",
"device": "all",
"path": null,
"cwv_pass": true,
"cwv_insufficient_data": false,
"metrics": {
"LCP": {
"p75": 226,
"rating": "good",
"samples": 127
},
"CLS": {
"p75": 0.0,
"rating": "good",
"samples": 12
},
"INP": {
"p75": 112,
"rating": "good",
"samples": 16
},
"FCP": {
"p75": 201,
"rating": "good",
"samples": 26
},
"TTFB": {
"p75": 143,
"rating": "good",
"samples": 27
}
}
}
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/rum/sites/{id}/summary"
GET
/rum/sites/{id}/history
Metric history
Returns daily p75/p50 values for one metric as a time series.
Bearer token · Counts toward the daily request limit. Reads from the official WordPress plugin (header x-turbometrics-client: wordpress-plugin/<version>) do not count; they have their own limit of 300 requests per hour for each website and 3,000 per hour for each account.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required |
path | integer | ID of the live data website from GET /rum/sites.
|
metric required |
query | string | LCP, CLS, INP, FCP, TTFB.
|
days |
query | integer | 7, 30, 90 (default: 30).
|
device |
query | string | all, desktop, mobile, tablet (default: all).
|
Responses
| Code | Meaning |
|---|---|
200 | Daily values, newest first. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
404 | Resource not found or not yours. |
422 | Validation error, e.g. an invalid URL. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": [
{
"date": "2026-04-04",
"p75": 226,
"p50": 180,
"samples": 127
},
{
"date": "2026-04-03",
"p75": 240,
"p50": 195,
"samples": 98
}
],
"meta": {
"metric": "LCP",
"days": 30,
"device": "all"
}
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/rum/sites/{id}/history?metric=LCP"
GET
/rum/sites/{id}/pages
Slowest pages
Returns the slowest pages by p75 for one metric.
Bearer token · Counts toward the daily request limit. Reads from the official WordPress plugin (header x-turbometrics-client: wordpress-plugin/<version>) do not count; they have their own limit of 300 requests per hour for each website and 3,000 per hour for each account.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required |
path | integer | ID of the live data website from GET /rum/sites.
|
metric |
query | string | LCP, INP, FCP, TTFB (default: LCP).
|
period |
query | string | 24h, 7d (default: 24h).
|
limit |
query | integer | 1–100 (default: 25). |
Responses
| Code | Meaning |
|---|---|
200 | Pages sorted by p75. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
404 | Resource not found or not yours. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": [
{
"path": "/",
"p75": 1437,
"samples": 3
},
{
"path": "/pricing",
"p75": 98,
"samples": 12
}
],
"meta": {
"metric": "LCP",
"period": "24h"
}
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/rum/sites/{id}/pages"
GET
/rum/sites/{id}/breakdown
Breakdown by origin
Returns what slows down interactions (INP) and which JS errors occur, grouped by origin: plugin, theme, third party, WordPress core or your own site. ready is false while less than 80 % of the window was measured with the current snippet; origins is empty then. Values are cached for 5 minutes.
Bearer token · Counts toward the daily request limit. Reads from the official WordPress plugin (header x-turbometrics-client: wordpress-plugin/<version>) do not count; they have their own limit of 300 requests per hour for each website and 3,000 per hour for each account.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required |
path | integer | ID of the live data website from GET /rum/sites.
|
days |
query | integer | 7, 28 (default: 7).
|
Responses
| Code | Meaning |
|---|---|
200 | Origins with their share of slow interactions and JS errors. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
404 | Resource not found or not yours. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": {
"ready": true,
"days": 7,
"origins": [
{
"type": "plugin",
"key": "elementor",
"label": "Elementor",
"inp_share": 42.0,
"inp_count": 12,
"js_error_share": 3.1,
"js_error_pages": 17,
"js_error_message": "Uncaught TypeError: Cannot read properties of null"
}
]
}
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/rum/sites/{id}/breakdown"
GET
/rum/sites/{id}/alerts
Live data alerts
Returns the configured alerts for a live data website. status is active (configured, never triggered), triggered or resolved.
diagnosis is only filled while triggered, otherwise null.
Bearer token · Counts toward the daily request limit. Reads from the official WordPress plugin (header x-turbometrics-client: wordpress-plugin/<version>) do not count; they have their own limit of 300 requests per hour for each website and 3,000 per hour for each account.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required |
path | integer | ID of the live data website from GET /rum/sites.
|
Responses
| Code | Meaning |
|---|---|
200 | Configured alerts. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
404 | Resource not found or not yours. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": [
{
"id": 209,
"title": "turbometrics.io – Auto Alert",
"mode": "auto",
"metric": null,
"threshold": null,
"window_minutes": 60,
"min_samples": 20,
"consecutive_threshold": 2,
"status": "active",
"emailed_at": null,
"resolved_at": null,
"diagnosis": null,
"created_at": "2026-04-05T10:00:00+02:00"
}
]
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/rum/sites/{id}/alerts"
Changes
Detected and reported changes, diagnoses and the WordPress inventory.
GET
/changes
List changes
Returns the detected and reported changes of one website (plugins, theme, WordPress and PHP versions, third-party scripts, CDN, server, deploys), newest first. All times are ISO 8601 in UTC. precision is exact, day or between_scans (window_start then marks the start of the window).
A switch that the very next scan reverses within 72 hours is usually a detection artifact; both entries are left out unless you set include_flaps=1.
Bearer token · Counts toward the daily request limit of your plan.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
host required |
query | string | The website's host, e.g. example.com (https:// and www. are ignored).
|
since |
query | string (date-time) | Only changes from this time on, ISO 8601; without an offset, UTC is assumed (default: the last 30 days; never earlier than your plan's history period). |
kind |
query | string | Only one kind of change, e.g. deploy or plugin_updated.
|
limit |
query | integer | 1 to 200 (default: 100). |
include_flaps |
query | boolean | 1 or true also returns switches that the next scan reversed again (default: hidden).
|
Responses
| Code | Meaning |
|---|---|
200 | Changes, newest first. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
404 | Resource not found or not yours. |
422 | Validation error, e.g. an invalid URL. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": [
{
"id": 4711,
"host": "example.com",
"kind": "deploy",
"component": null,
"from": null,
"to": null,
"occurred_at": "2026-11-12T09:30:00+00:00",
"window_start": null,
"precision": "exact",
"sources": [
"api"
],
"label": "Release 2.4.0",
"external_ref": "a1b2c3d"
}
]
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/changes?host=example.com"
POST
/changes
Report changes
Reports changes yourself, for example a deploy. Reported changes trigger a free scan of up to 5 monitored URLs of the domain (the homepage if there are none), at the earliest 5 minutes after the last reported change, at most 6 rounds per domain and day. If a change was already detected by a scan, it is merged with your report. Control characters are removed from texts, and longer texts are shortened to the lengths given (except external_ref, which is rejected with 422 above 100 characters).
Bearer token · Does not count toward the daily request limit. Limited to 120 requests per hour for each user and website and 60 per minute for each account.
Request body (JSON)
| Field | Type | Description |
|---|---|---|
host required |
string | The website's host. It must belong to your account (a scan, a live data website or a domain), otherwise 422.
|
source |
string | api (default), wp_plugin or turbopress_cockpit.
|
changes required |
array<object> | 1 to 50 entries. |
changes[].kind required |
string | Kind of change. |
changes[].component |
string | Affected component, e.g. a plugin slug (up to 100 characters). |
changes[].from |
string | Version or value before (up to 100 characters). |
changes[].to |
string | Version or value after (up to 100 characters). |
changes[].occurred_at |
string (date-time) | ISO 8601; without an offset, UTC is assumed. Default: now. At most 5 minutes in the future and at most 30 days back. |
changes[].label |
string | Short description, e.g. a release name (up to 200 characters). |
changes[].external_ref |
string | Your own reference, e.g. a commit hash (up to 100 characters, longer is rejected with 422).
|
changes[].meta |
object | Further details, at most 2 KB as JSON. |
Responses
| Code | Meaning |
|---|---|
201 | The stored changes in the same format as GET /changes.
|
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
422 | Validation error, e.g. an invalid URL. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 201
{
"data": [
{
"id": 4711,
"host": "example.com",
"kind": "deploy",
"component": null,
"from": null,
"to": null,
"occurred_at": "2026-11-12T09:30:00+00:00",
"window_start": null,
"precision": "exact",
"sources": [
"api"
],
"label": "Release 2.4.0",
"external_ref": "a1b2c3d"
}
]
}
Example with curl
curl -X POST \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"host":"example.com","changes":[{"kind":"deploy","label":"Release 2.4.0","external_ref":"a1b2c3d","occurred_at":"2026-11-12T09:30:00Z","meta":{"url":"https://git.example.com/acme/shop/commit/a1b2c3d"}}]}' \
"https://turbometrics.io/api/v1/changes"
POST
/inventory
Report WordPress inventory
Reports the current state of a WordPress site (versions, theme, plugins). turbometrics compares it with the last reported state and records the differences as changes; the first report only stores the state. Facts you leave out are not compared and stay unchanged.
Bearer token · Does not count toward the daily request limit. Limited to 120 requests per hour for each user and website and 60 per minute for each account.
Request body (JSON)
| Field | Type | Description |
|---|---|---|
host required |
string | The website's host (must belong to your account, otherwise 422).
|
source required |
string | wp_plugin or turbopress_inventory.
|
reported_at |
string (date-time) | ISO 8601; without an offset, UTC is assumed. Default: now. At most 5 minutes in the future, at most 30 days back. |
facts required |
object | The reported state. |
facts.wordpress |
string | WordPress version. |
facts.php |
string | PHP version. |
facts.theme |
string | Slug of the active theme. |
facts.page_cache |
boolean | Whether a page cache is active. |
facts.plugins |
array<object> | Up to 500 entries. |
facts.plugins[].slug required |
string | |
facts.plugins[].version |
string | |
facts.plugins[].active |
boolean | |
facts.themes |
array<object> | Up to 100 entries. |
facts.themes[].slug required |
string | |
facts.themes[].version |
string | |
facts.themes[].active |
boolean |
Responses
| Code | Meaning |
|---|---|
200 | Changes found compared with the last report (empty on the first report). |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
422 | Validation error, e.g. an invalid URL. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": {
"changes": []
}
}
Example with curl
curl -X POST \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"host":"example.com","source":"turbopress_inventory","facts":{"wordpress":"6.6.2","php":"8.3.12","theme":"astra","plugins":[{"slug":"elementor","version":"3.25.1","active":true}],"themes":[{"slug":"astra","version":"4.8.1","active":true}]}}' \
"https://turbometrics.io/api/v1/inventory"
GET
/attributions
List diagnoses
Returns the diagnoses of one website: declines in metrics that match a detected or reported change in time and in the measurements, newest first. Several declining metrics of the same event appear together under metrics. Diagnoses you dismissed never appear.
Correlation, not proof: whether the change is the cause is best checked with the before/after comparison of the two scans in compare. confidence is high, medium or low.
Bearer token · Counts toward the daily request limit. Reads from the official WordPress plugin (header x-turbometrics-client: wordpress-plugin/<version>) do not count; they have their own limit of 300 requests per hour for each website and 3,000 per hour for each account.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
host required |
query | string | The website's host, e.g. example.com (https:// and www. are ignored).
|
since |
query | string (date-time) | Only events that started from this time on, ISO 8601; without an offset, UTC is assumed (default: the last 30 days; never earlier than your plan's history period). |
status |
query | string | open (the decline persists, default), recovered or all.
|
locale |
query | string | Language of texts in the response (de or en), otherwise your account's language setting.
|
Responses
| Code | Meaning |
|---|---|
200 | Diagnoses, newest first. |
401 | No token or an invalid one. |
403 | Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro). |
404 | Resource not found or not yours. |
422 | Validation error, e.g. an invalid URL. |
429 | Limit exceeded: daily API limit, hourly scan limit or report limit. |
Example response 200
{
"data": [
{
"id": 812,
"started_at": "2026-11-12T10:00:00+00:00",
"confidence": "high",
"status": "open",
"sentence": "Main content mobile 1.20 s → 2.80 s (+133%). Likely cause: Elementor updated (3.24.0 → 3.25.1).",
"metrics": [
{
"metric": "lcp",
"device": "mobile",
"before": 1200,
"after": 2800,
"change_pct": 1.333
},
{
"metric": "fcp",
"device": "mobile",
"before": 900,
"after": 1300,
"change_pct": 0.444
}
],
"suspects": [
{
"change_id": 4711,
"kind": "plugin_updated",
"component": "elementor",
"from": "3.24.0",
"to": "3.25.1",
"occurred_at": "2026-11-12T05:00:00+00:00"
}
],
"compare": {
"before_scan_id": "01KN3W...",
"after_scan_id": "01KN3X..."
}
}
]
}
Example with curl
curl \
-H "Authorization: Bearer {token}" \
"https://turbometrics.io/api/v1/attributions?host=example.com"