Browsers
get
browsers.get
Get one browser and the test features it supports.
Risk: read
data full type
data full type
meta full type
meta full type
list
browsers.list
List the browsers tests can run in, with the features each supports (Lighthouse, video, throttling, custom DNS).
Risk: read
data full type
data full type
meta full type
meta full type
Locations
get
locations.get
Get one test location.
Risk: read
data full type
data full type
meta full type
meta full type
list
locations.list
List test locations with their region, browsers and whether this account can use them.
Risk: read
data full type
data full type
meta full type
meta full type
Pages
alertConditions
pages.alertConditions
Get a page’s performance alert conditions and recipients.
Risk: read
data full type
data full type
meta full type
meta full type
alertEvents
pages.alertEvents
List the performance alerts a page has triggered, newest first.
Risk: read
data full type
data full type
meta full type
meta full type
attachTags
pages.attachTags
Attach page tags to a page.
Risk: write
data full type
data full type
meta full type
meta full type
delete
pages.delete
Delete a page and its reports permanently.
Risk: destructive
data full type
data full type
meta full type
meta full type
deleteAlertConditions
pages.deleteAlertConditions
Remove all of a page’s performance alert conditions.
Risk: destructive
data full type
data full type
meta full type
meta full type
detachTags
pages.detachTags
Detach page tags from a page.
Risk: write
data full type
data full type
meta full type
meta full type
get
pages.get
Get a page: URL, latest report, report count, monitoring frequency and tags.
Risk: read
data full type
data full type
meta full type
meta full type
latestReport
pages.latestReport
Get a page’s latest report.
Risk: read
data full type
data full type
meta full type
meta full type
list
pages.list
List pages (URLs with at least one report), with paging, sorting and filters (url, monitored, page_tag).
Risk: read
data full type
data full type
meta full type
meta full type
performanceMonitor
pages.performanceMonitor
Set a page’s monitoring frequency (hourly, daily, weekly, monthly) or turn it off. Scheduled tests use the account’s monitoring allowance.
Risk: write
data full type
data full type
meta full type
meta full type
reports
pages.reports
List a page’s reports, with paging, sorting and filters.
Risk: read
data full type
data full type
meta full type
meta full type
retest
pages.retest
Run a new test with a page’s settings. Spends API credits like tests.start.
Risk: write
data full type
data full type
meta full type
meta full type
updateAlertConditions
pages.updateAlertConditions
Replace a page’s performance alert conditions (up to 10) and, for Team organizations, the recipients.
Risk: write
send_to is required for Team
organizations and refused for everyone else.
conditions full type
conditions full type
send_to full type
send_to full type
data full type
data full type
meta full type
meta full type
Page Tags
attachPages
pageTags.attachPages
Attach a page tag to pages.
Risk: write
data full type
data full type
meta full type
meta full type
create
pageTags.create
Create a page tag (name, description, colour).
Risk: write
data full type
data full type
meta full type
meta full type
delete
pageTags.delete
Delete a page tag; it is detached from every page.
Risk: destructive
data full type
data full type
meta full type
meta full type
detachPages
pageTags.detachPages
Detach a page tag from pages.
Risk: write
data full type
data full type
meta full type
meta full type
get
pageTags.get
Get one page tag.
Risk: read
data full type
data full type
meta full type
meta full type
list
pageTags.list
List the page tags on this account.
Risk: read
data full type
data full type
meta full type
meta full type
update
pageTags.update
Change a page tag’s name, description or colour.
Risk: write
data full type
data full type
meta full type
meta full type
Reports
delete
reports.delete
Delete a report permanently.
Risk: destructive
data full type
data full type
meta full type
meta full type
get
reports.get
Get a report: grade, scores, Core Web Vitals, timings, page size, and links to its files.
Risk: read
data full type
data full type
meta full type
meta full type
resource
reports.resource
Download a report file: screenshot, HAR, filmstrip, video, Lighthouse JSON, resource summary or PDF. report.pdf spends 0.2 credits (0.3 full). analysis-options includes the test’s cookies and HTTP auth.
Risk: read
frameId from
filmstrip.json. optimized-images.tar and pagespeed-files.tar expire 24
hours after the report.
Output
retest
reports.retest
Run a new test with a report’s settings. Spends API credits like tests.start.
Risk: write
data full type
data full type
meta full type
meta full type
Simulated Devices
get
simulatedDevices.get
Get one simulated device.
Risk: read
data full type
data full type
meta full type
meta full type
list
simulatedDevices.list
List the phones and tablets a test can simulate (viewport, pixel ratio, user agent).
Risk: read
data full type
data full type
meta full type
meta full type
Status
get
status.get
Get the account’s API credit balance, next refill and plan access. The API key GTmetrix returns as the record id is removed.
Risk: read
data full type
data full type
Tests
get
tests.get
Poll a test. While it runs this returns its state; once complete GTmetrix redirects to the report, which is returned instead.
Risk: read
{ data: { type: "test", attributes: { state } } }.
Once complete GTmetrix answers 303 to the report and the report is returned.
Output
data full type
data full type
meta full type
meta full type
list
tests.list
List tests from the last 24 hours, with paging, sorting and filters (state, source, created, browser, location).
Risk: read
data full type
data full type
meta full type
meta full type
start
tests.start
Start a page test. Spends API credits: 1 for Lighthouse, 0.7 legacy, 1.1 both, 0.6 metrics only, plus video and retention add-ons.
Risk: write
data full type
data full type
meta full type
meta full type