PerfDelta
v1.1.0Run PageSpeed scans and read Core Web Vitals, scores and history for any public website.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan_url Scan a URL (uses budget)
Start a PageSpeed/Core Web Vitals scan for a URL. Costs one PageSpeed test per measured URL and device from your monthly budget, shared with monitoring, the web app and the REST API (devices=both counts two per URL). Measures only the given URL by default (scope=url). For a URL from one of your projects, scope=group measures it together with all sibling URLs of its project group like the scan button on the project page, which costs one test per sibling URL and device; only group scans appear in the project history. Project competitors are compared via field data at no cost. Pass project_id to…
| Parameter | Type | Description |
|---|---|---|
url * | string | Absolute URL to scan |
devices | string | both (default), mobile or desktop |
project_id | integer | Optional. Add the URL to this project first (counts against your URL limit), so the scan shows up in your dashboard and project history. Ignored if the URL is already in one of your projects. |
region | string | Optional measurement location for the lab test: auto (default: the project setting, otherwise derived from the domain) or us-east, us-west, eu, asia. Paid plans only; on the free plan any value other… |
scope | string | url (default): measure only this URL. group: measure all URLs of its project group, cost = sibling URLs x devices. |
get_scan Get scan status
Status of a scan you started with scan_url (running, done, error). While running: step, step_total, step_msg (English), step_key and step_params (current step as a stable key, e.g. measuring_page with url and device) and pages measured so far. When done: mobile and desktop scores plus pages, one entry per measured page and device with lab values (LCP, CLS, FCP, TBT, TTFB), real-user field data (LCP, INP, CLS, FCP, TTFB at p75) and where the lab test ran (engine psi or worker, region, fallback_level; fallback_level above 0 marks a replacement run that is not compared with the series). Free (no…
| Parameter | Type | Description |
|---|---|---|
scan_id * | string | scan_id returned by scan_url |
get_usage Get plan and budget usage
Your plan, monthly PageSpeed test budget, how much is used (monthly_used_pct), what monitoring still needs this month and how many tests are left for scans today. From 80 percent of the monthly budget budget_warning is set (used_pct, upgrade_plan, upgrade_url to the pricing page), otherwise null. Free.
get_report Get latest report of a URL
Get the latest completed scores for a URL or domain, plus latest_status while a newer scan is running or after it failed, and where the lab test of that scan ran (engine, region, fallback_level). Free (no measurement used). Works for any previously scanned domain, not only your own tracked URLs -- this is the same data the public report page shows.
| Parameter | Type | Description |
|---|---|---|
url * | string |
get_report_details Get full report details
Full report of one of your scans, the same content as the report page: per page and device the score, lab metrics and real-user field data with ratings (good, ni, poor), Core Web Vitals pass/fail, where the lab test ran (engine, region, fallback_level), page weight and resource breakdown, largest third parties with a benchmark against all PerfDelta scans, optimization opportunities with savings, diagnostics (LCP element, layout shifts, main-thread work, largest requests, on plans with the waterfall chart every request with start and end time); plus smartphone origin field data with history and…
| Parameter | Type | Description |
|---|---|---|
scan_id | string | scan_id of the scan |
url_id | integer | project URL id, from list_urls or get_project; uses its latest scan |
get_fixes Get prioritised fixes
Prioritised fixes from the latest completed scan of a URL or domain: what to change first (fixes affecting a Core Web Vital that fails for real users come first), with the affected files and their estimated savings, affected pages and devices, layout-shifting elements, how often the issue occurs on other measured sites, and the observed effect where others fixed it. Text tailored to the detected platform. Free (no measurement used). Works for any previously scanned domain.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
lang | string | Language of the fix texts, en (default) or de |
get_changes Get changes since previous scan
What changed between the latest and the previous completed scan of a URL or domain: page weight by resource type, new or heavier third-party services and script bundles, a different LCP element, LCP phases, server response, new findings, plus fixes implemented since the previous scan. Use it to explain a score drop. Free (no measurement used).
| Parameter | Type | Description |
|---|---|---|
url * | string | |
lang | string | Language of the summaries, en (default) or de |
get_agent_brief Get fix brief for coding agents
Fix brief in Markdown for a coding agent working in the repository of the measured website: task and guardrails, baseline (field and lab data, LCP element and phases, layout-shift elements, page weight, third parties, detected stack), all prioritised fixes with stable IDs (PD-...), affected files, pages and elements, an acceptance criterion and whether approval is needed, changes since the previous scan, performance budgets, how to verify, and the status of each fix from earlier agent notes. Report back per fix with add_note on the same scan_id, text "PD-<id> done|skipped|needs_approval|in_pro…
| Parameter | Type | Description |
|---|---|---|
lang | string | Language of the brief, en (default) or de |
scan_id | string | scan_id of a completed scan of any domain (from scan_url, get_history, get_project or the hash of a report URL); notes and budgets are included for your own scans only |
url | string | URL or domain; uses its latest completed scan |
list_projects List projects
List the caller's projects with their number of URLs. Free.
get_project Get project
One of your projects with its settings (monitoring frequency, alerts, weekly report, measurement region with region and region_effective), competitors and every URL with tags, monitoring state and its latest scan (scan_id, status, mobile and desktop score, report_url). Free.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer |
list_urls List project URLs
List the URLs in one of your own projects. within_plan_limit=false means the URL is beyond your plan's URL limit and is not measured. Free.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer |
suggest_urls Suggest URLs from the sitemap
Suggest pages for one of your projects from the XML sitemap of its website (homepage links as fallback), up to 500 URLs. Each URL has a group (home, product, category, article, pages, service or section:<segment>), in_project, preselected (one page per template up to your free URL slots, pages with own CrUX field data first) and field_data (true, false or null if not checked yet). Also returns free_slots, url_limit, next_plan (cheapest plan that fits all suggestions) and monitoring_capacity (how many more URLs your monthly budget measures at the project frequency). Pass preselected URLs to add…
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
refresh | boolean | Read the sitemap again instead of the 24-hour cache |
site | string | Website to read, only needed if the project has no URL yet |
get_history Get score history
Score history for a URL in one of your projects, newest first. Each entry's hash is a scan_id for get_report_details; engine, region and fallback_level say where the lab test ran, scores are only comparable within the same engine and region. older_runs_stored counts stored scans beyond the history your plan shows (free plan: the last 3). Free.
| Parameter | Type | Description |
|---|---|---|
url_id * | integer | project URL id, from list_urls |
get_monitoring_events Get monitoring events
Monitoring events of one of your projects, newest first: regressions and improvements per URL with their reasons (score drop or gain, Core Web Vitals failing or passing again), plus budget_over and budget_ok when a performance budget is crossed or met again and budget_warn when a value comes within 10 percent of its budget, whether an alert mail went out, and the scan_id of the scan that triggered it. Kept for 90 days. Free.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
limit | integer | maximum number of events, default 50, at most 200 |
get_budget_status Check performance budgets
Performance budget check for CI gates: evaluates a measurement against the performance budgets of your project URLs (page weight per resource type, third parties, lab metrics, score, field data) and returns passed true/false per URL and overall. Each budget has status ok, warn (within budget but less than 10 percent headroom; still passes), over or no_data. Pass the scan_id from scan_url after get_scan reports done, or a url_id for its latest completed measurement. passed is null while the scan is still running or when no budgets apply. Not to be confused with the PageSpeed test budget in get_…
| Parameter | Type | Description |
|---|---|---|
scan_id | string | scan_id from scan_url, get_scan or get_history |
url | string | optional: limit a scan_id check to this page |
url_id | integer | project URL id, from list_urls; latest completed measurement |
set_budget Set or remove a performance budget
Set or remove a performance budget of a project (all URLs) or of one project URL (url_id, replaces the project budget for that URL). Metrics: total_kb, script_kb, image_kb, stylesheet_kb, font_kb, third_party_kb, third_party_count, request_count, perf_score (minimum), lab_lcp_ms, tbt_ms, lab_cls, fcp_ms, ttfb_ms, field_lcp_ms, field_inp_ms, field_cls, field_fcp_ms, field_ttfb_ms (field metrics mobile only). limit and goal as numbers in the metric unit (KB, ms, points, count, CLS) or as text with unit such as "1.5 MB" or "2.5 s". The goal is optional and never triggers alerts. ratchet=true lowe…
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
delete | boolean | |
device | string | default mobile |
goal | number | string | |
limit | number | string | |
list | boolean | return all budgets of the project instead of changing one |
metric | string | |
ratchet | boolean | lower the limit step by step toward the goal (default off) |
ratchet_step | string | integer | "round" or a percentage 1-50 |
url_id | integer | optional: URL budget instead of project budget |
create_project Create project
Create a project. Plans without multiple projects can have one. Returns id, name and region (the measurement location setting). Free.
| Parameter | Type | Description |
|---|---|---|
name * | string | Project name, e.g. the domain |
region | string | Optional measurement location of the project: auto (default, derived from the country domain of the first URL) or us-east, us-west, eu, asia. Paid plans only; on the free plan any value other than aut… |
add_urls Add URLs to a project
Add URLs to one of your projects (up to 100 per call). URLs without scheme get https://. Returns added (id, url) and skipped (url, reason: invalid_url, duplicate or url_limit_reached). Adding is free; monitoring then measures the URLs from your monthly budget.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
urls * | array | Absolute URLs |
remove_url Remove URL from project
Remove a URL from its project. Its monitoring stops; completed reports stay available. Free.
| Parameter | Type | Description |
|---|---|---|
url_id * | integer | project URL id, from list_urls |
set_monitoring Switch monitoring on or off
Switch monitoring of a project URL on or off. Free.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | |
url_id * | integer | project URL id, from list_urls |
list_competitors List competitors
Competitor domains of one of your projects. Free.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer |
add_competitor Add competitor
Add a competitor domain to a project. Competitors are compared via Chrome UX Report field data from the next scan on, at no cost. Limit per project depends on the plan.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Domain or URL, e.g. example.com |
project_id * | integer |
remove_competitor Remove competitor
Remove a competitor from a project. Free.
| Parameter | Type | Description |
|---|---|---|
competitor_id * | integer | id from list_competitors |
project_id * | integer |
add_note Add note to a scan
Attach a note to one of your scans, e.g. "Deploy of new theme". Shown in the report history; get_report_details returns the notes of a scan. Coding agents report the outcome of a fix from get_agent_brief as "PD-<id> done|skipped|needs_approval|in_progress: <what and where>", one note per fix; the next brief reads them. At most 280 characters, only on your own scans (free plan included). Free.
| Parameter | Type | Description |
|---|---|---|
note * | string | |
scan_id * | string | scan_id from scan_url or get_report, or hash from get_history |
update_note Edit note
Change the text of one of your notes. Free.
| Parameter | Type | Description |
|---|---|---|
note * | string | |
note_id * | integer | id from add_note or get_report_details |
delete_note Delete note
Delete one of your notes. Free.
| Parameter | Type | Description |
|---|---|---|
note_id * | integer | id from add_note or get_report_details |