Skip to main content
New to Corsair? See API access, authentication, and error handling.

Browsers

get

browsers.get Get one browser and the test features it supports. Risk: read
Input Output

list

browsers.list List the browsers tests can run in, with the features each supports (Lighthouse, video, throttling, custom DNS). Risk: read
Input: empty object Output

Locations

get

locations.get Get one test location. Risk: read
Input Output

list

locations.list List test locations with their region, browsers and whether this account can use them. Risk: read
Input: empty object Output

Pages

alertConditions

pages.alertConditions Get a page’s performance alert conditions and recipients. Risk: read
Input Output

alertEvents

pages.alertEvents List the performance alerts a page has triggered, newest first. Risk: read
Input Output

attachTags

pages.attachTags Attach page tags to a page. Risk: write
Input Output

delete

pages.delete Delete a page and its reports permanently. Risk: destructive
Input Output

deleteAlertConditions

pages.deleteAlertConditions Remove all of a page’s performance alert conditions. Risk: destructive
Input Output

detachTags

pages.detachTags Detach page tags from a page. Risk: write
Input Output

get

pages.get Get a page: URL, latest report, report count, monitoring frequency and tags. Risk: read
Input Output

latestReport

pages.latestReport Get a page’s latest report. Risk: read
Input Output

list

pages.list List pages (URLs with at least one report), with paging, sorting and filters (url, monitored, page_tag). Risk: read
Input Output

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
Input Output

reports

pages.reports List a page’s reports, with paging, sorting and filters. Risk: read
Input Output

retest

pages.retest Run a new test with a page’s settings. Spends API credits like tests.start. Risk: write
Input Output

updateAlertConditions

pages.updateAlertConditions Replace a page’s performance alert conditions (up to 10) and, for Team organizations, the recipients. Risk: write
Input Replaces the whole list (up to 10). send_to is required for Team organizations and refused for everyone else.
Output

Page Tags

attachPages

pageTags.attachPages Attach a page tag to pages. Risk: write
Input Output

create

pageTags.create Create a page tag (name, description, colour). Risk: write
Input Output

delete

pageTags.delete Delete a page tag; it is detached from every page. Risk: destructive
Input Output

detachPages

pageTags.detachPages Detach a page tag from pages. Risk: write
Input Output

get

pageTags.get Get one page tag. Risk: read
Input Output

list

pageTags.list List the page tags on this account. Risk: read
Input: empty object Output

update

pageTags.update Change a page tag’s name, description or colour. Risk: write
Input Output

Reports

delete

reports.delete Delete a report permanently. Risk: destructive
Input Output

get

reports.get Get a report: grade, scores, Core Web Vitals, timings, page size, and links to its files. Risk: read
Input Output

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
Input report.pdf spends credits. filmstrip-frame.jpg needs 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
Input Output

Simulated Devices

get

simulatedDevices.get Get one simulated device. Risk: read
Input Output

list

simulatedDevices.list List the phones and tablets a test can simulate (viewport, pixel ratio, user agent). Risk: read
Input: empty object Output

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
Input: empty object Output

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
Input While the test runs this returns { data: { type: "test", attributes: { state } } }. Once complete GTmetrix answers 303 to the report and the report is returned. Output

list

tests.list List tests from the last 24 hours, with paging, sorting and filters (state, source, created, browser, location). Risk: read
Input Output

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
Input Output