CorefinityCorefinityDocs
Open the Control PanelControl Panel
Performance audits · 3 of 14

List GTmetrix test locations

Answers the locations GTmetrix can test from, for generating an audit's GTmetrix reports.

GET/api/performance-audits/gtmetrix-locations

Returns

200 The locations.

Fields of the 200 answer
itemsarray of objectsRequired
Fields of each item
idstringRequired
namestringRequired

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403forbiddenThe person is not allowed to do this.
403scope_requiredUse a token with the scope named in scope.
429rate_limitedWait for the seconds in Retry-After.
502upstream_unavailableA service the action depends on did not answer. Try again later.
503temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl https://manage.corefinity.com/api/performance-audits/gtmetrix-locations \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "items": [
    {
      "id": "2",
      "name": "London, UK"
    },
    {
      "id": "7",
      "name": "Sydney, Australia"
    }
  ]
}
Try it
Held in this tab's memory only. Never stored or sent to us.

Use a token with only the read scope. How to make one

Was this helpful?
Open in ClaudeOpen in ChatGPT