---
title: "List an audit's GTmetrix reports"
url: https://docs.corefinity.com/api/reference/logs/list-performance-audit-gtmetrix-reports
type: endpoint
last_updated: 2026-11-13
feature: performance-audits
related:
  - https://docs.corefinity.com/guides/tools/performance-audits.md
---
# List an audit's GTmetrix reports

Answers the audit's GTmetrix reports, environment by page, each read from GTmetrix as you ask; `generation` is
the last request to generate reports, which is how one is followed. Paged by cursor: send `next_cursor` back
as `cursor`; null means the last page.

```http
GET /api/performance-audits/{audit}/gtmetrix-reports
```

- Scope: `read`
- Rate limit: 120 a minute
- Try it in the console: on

## Path parameters

- `audit` (integer, required): The id of an audit. Digits only.

## Query parameters

- `limit` (integer): Items a page: 1 to 10, default 5.
- `cursor` (string): The `next_cursor` of the previous answer. Anything that is not a whole number is refused `422` on `cursor`.
- `frames` (string): `1` adds each filmstrip image to a completed report, as a base64 JPEG. Only `0` and `1` are taken: the words `true` and `false` are refused `422` on `frames`.

## Request

### curl

```bash
curl https://manage.corefinity.com/api/performance-audits/5210/gtmetrix-reports \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
```

### PHP

```php
use Illuminate\Support\Facades\Http;

$response = Http::withToken(env('COREFINITY_TOKEN'))
    ->acceptJson()
    ->get('https://manage.corefinity.com/api/performance-audits/5210/gtmetrix-reports');

$data = $response->json();
```

### Node

```javascript
const res = await fetch('https://manage.corefinity.com/api/performance-audits/5210/gtmetrix-reports', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
    Accept: 'application/json',
  },
});

// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);
```

### Python

```python
import os
import requests

res = requests.get(
    "https://manage.corefinity.com/api/performance-audits/5210/gtmetrix-reports",
    headers={
        "Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
        "Accept": "application/json",
    },
)

data = res.json() if res.content else None
```

## Responses

### 200 One page of reports.

```json
{
  "generation": null,
  "items": [
    {
      "error": null,
      "filmstrip_timings_ms": [
        0,
        500
      ],
      "metrics": {
        "cumulative_layout_shift": 0.12345,
        "dom_content_loaded_time_ms": 900,
        "first_contentful_paint_ms": 800,
        "first_paint_time_ms": 700,
        "fully_loaded_time_ms": 2500,
        "gtmetrix_grade": "B",
        "largest_contentful_paint_ms": 1300,
        "performance_score": 88,
        "speed_index_ms": 1100,
        "structure_score": 91,
        "time_to_first_byte_ms": 100,
        "time_to_interactive_ms": 1500,
        "total_blocking_time_ms": 50
      },
      "name": "Current host Home",
      "state": "completed",
      "status": "completed",
      "test_id": "Abc12Def"
    },
    {
      "error": null,
      "filmstrip_timings_ms": [],
      "metrics": null,
      "name": "Current host Category",
      "state": "started",
      "status": "pending",
      "test_id": "Ghi34Jkl"
    },
    {
      "error": null,
      "filmstrip_timings_ms": [],
      "metrics": null,
      "name": "Corefinity Home",
      "state": null,
      "status": "not_started",
      "test_id": null
    },
    {
      "error": "The page could not be loaded.",
      "filmstrip_timings_ms": [],
      "metrics": null,
      "name": "Corefinity Category",
      "state": "error",
      "status": "failed",
      "test_id": "Mno56Pqr"
    }
  ],
  "next_cursor": null
}
```

### 401 No token, or a token that is not valid.

```json
{
  "message": "Unauthenticated."
}
```

### 403 The token lacks the scope this endpoint needs. `scope` names it.

```json
{
  "code": "scope_required",
  "message": "This access token does not have the destructive scope this needs. Use a token with the destructive scope.",
  "reason": "scope_required",
  "scope": "destructive"
}
```

### 404 The id does not exist, or it is something you cannot see. Both answer the same body.

```json
{
  "message": "Not found."
}
```

### 422 `limit`, `cursor` or `frames` is not valid. `field` names it.

```json
{
  "code": "invalid",
  "errors": {
    "cursor": [
      "The cursor format is invalid."
    ]
  },
  "field": "cursor",
  "message": "The cursor format is invalid.",
  "reason": "invalid"
}
```

### 429 Too many requests (`rate_limited`). Wait for the number of seconds in `Retry-After`, which `retry_after_seconds` repeats.

```json
{
  "code": "rate_limited",
  "message": "Too many requests. Try again in 60 seconds.",
  "reason": "rate_limited",
  "retry_after_seconds": 60
}
```

### 503 GTmetrix reports are not available right now (`temporarily_unavailable`). Nothing was sent.

```json
{
  "code": "temporarily_unavailable",
  "message": "GTmetrix reports are not available right now. Try again later.",
  "reason": "temporarily_unavailable"
}
```

## If it is refused

| Status | Reason | What to do |
|---|---|---|
| 401 |  | Send a valid token as `Authorization: Bearer <token>`. |
| 403 | `scope_required` | Use a token with the scope named in `scope`. |
| 404 |  | Check the id. You see only what your account can reach. |
| 422 | `invalid` | Fix the field named in `field`; `errors` says why. |
| 429 | `rate_limited` | Wait for the seconds in `Retry-After`. |
| 503 | `temporarily_unavailable` | The Control Panel could not answer just now. Nothing was started; try again shortly. |

## The same task elsewhere

- Guide: [Performance audits](https://docs.corefinity.com/guides/tools/performance-audits.md)
