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

Answers the report as the report preview of the Control Panel shows it: the comparison between your
environments, each page's measurements and, when the audit has them, Google's scores and the Lighthouse
comparison. These are today's figures, not the frozen ones a shared link shows.

```http
GET /api/performance-audits/{audit}/report
```

- 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.

## Request

### curl

```bash
curl https://manage.corefinity.com/api/performance-audits/5210/report \
  -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/report');

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

### Node

```javascript
const res = await fetch('https://manage.corefinity.com/api/performance-audits/5210/report', {
  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/report",
    headers={
        "Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
        "Accept": "application/json",
    },
)

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

## Responses

### 200 The report.

```json
{
  "built_at": "2026-11-03T12:30:00+00:00",
  "report": {
    "audit": {
      "company": "Harbour & Finch",
      "created_at": "2026-11-01T09:00:00+00:00",
      "id": 5210,
      "name": "Before and after the move",
      "requests_per_measurement": 5,
      "run_at": "2026-11-03T12:30:00+00:00",
      "server_location": "London",
      "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36"
    },
    "baseline": {
      "environment": "Current host",
      "host": "old.harbourandfinch.example.org",
      "url": "https://old.harbourandfinch.example.org"
    },
    "built_at": "2026-11-03T12:30:00+00:00",
    "comparisons": [
      {
        "environment": "Corefinity",
        "excluded": [],
        "faster_on": 2,
        "host": "harbourandfinch-example-com.northwind.cfstack.example.net",
        "of": 2,
        "summary": {
          "cached": {
            "baseline_avg_ms": 188.2,
            "comparison_avg_ms": 63.5,
            "diff_percent": 66.3,
            "measurements": 1,
            "saved_ms": 124.7,
            "speed_multiplier": 2.96
          },
          "overall": {
            "baseline_avg_ms": 400.3,
            "comparison_avg_ms": 152.4,
            "diff_percent": 61.9,
            "measurements": 2,
            "saved_ms": 247.9,
            "speed_multiplier": 2.63
          },
          "uncached": {
            "baseline_avg_ms": 612.4,
            "comparison_avg_ms": 241.3,
            "diff_percent": 60.6,
            "measurements": 1,
            "saved_ms": 371.1,
            "speed_multiplier": 2.54
          }
        },
        "url": "https://harbourandfinch-example-com.northwind.cfstack.example.net"
      }
    ],
    "coverage": {
      "lighthouse": false,
      "redirect_chains": false,
      "response_headers": false,
      "samples": true,
      "stage_timings": true
    },
    "lighthouse": null,
    "lighthouse_failure": null,
    "lighthouse_state": "unavailable",
    "metric": "ttfb",
    "pages": [
      {
        "path": "/",
        "states": {
          "cached": {
            "key": "cached",
            "label": "Cached",
            "measurements": {
              "Corefinity": {
                "cache_busted": false,
                "cache_miss": null,
                "comparable": true,
                "headers": null,
                "http_code": 200,
                "invalid": null,
                "measured": true,
                "metric": "ttfb",
                "ms": 63.5,
                "redirect_chain": null,
                "redirect_not_followed": false,
                "runner_average_ms": null,
                "runner_format": "v2",
                "runner_median_ms": null,
                "sample_count": 1,
                "samples": [
                  {
                    "cache_busted": false,
                    "http_code": 200,
                    "ms": 63.5,
                    "size_bytes": 48210,
                    "timing": {
                      "dns": 1,
                      "tcp": 19,
                      "tls": 40,
                      "total": 90.05,
                      "transfer": 26.55,
                      "ttfb": 3.5
                    },
                    "total_ms": 90.05,
                    "ttfb_ms": 63.5,
                    "url": "https://harbourandfinch-example-com.northwind.cfstack.example.net/"
                  }
                ],
                "timing": {
                  "dns": 1,
                  "tcp": 19,
                  "tls": 40,
                  "total": 90.05,
                  "transfer": 26.55,
                  "ttfb": 3.5
                },
                "timing_scope": "single_request",
                "url": "https://harbourandfinch-example-com.northwind.cfstack.example.net/",
                "warm_ups": 0
              },
              "Current host": {
                "cache_busted": false,
                "cache_miss": null,
                "comparable": true,
                "headers": null,
                "http_code": 200,
                "invalid": null,
                "measured": true,
                "metric": "ttfb",
                "ms": 188.2,
                "redirect_chain": null,
                "redirect_not_followed": false,
                "runner_average_ms": null,
                "runner_format": "v2",
                "runner_median_ms": null,
                "sample_count": 1,
                "samples": [
                  {
                    "cache_busted": false,
                    "http_code": 200,
                    "ms": 188.2,
                    "size_bytes": 48210,
                    "timing": {
                      "dns": 1,
                      "tcp": 19,
                      "tls": 40,
                      "total": 214.75,
                      "transfer": 26.55,
                      "ttfb": 128.2
                    },
                    "total_ms": 214.75,
                    "ttfb_ms": 188.2,
                    "url": "https://old.harbourandfinch.example.org/"
                  }
                ],
                "timing": {
                  "dns": 1,
                  "tcp": 19,
                  "tls": 40,
                  "total": 214.75,
                  "transfer": 26.55,
                  "ttfb": 128.2
                },
                "timing_scope": "single_request",
                "url": "https://old.harbourandfinch.example.org/",
                "warm_ups": 0
              }
            },
            "requested": true
          },
          "uncached": {
            "key": "uncached",
            "label": "Uncached",
            "measurements": {
              "Corefinity": {
                "cache_busted": false,
                "cache_miss": null,
                "comparable": true,
                "headers": null,
                "http_code": 200,
                "invalid": null,
                "measured": true,
                "metric": "ttfb",
                "ms": 241.3,
                "redirect_chain": null,
                "redirect_not_followed": false,
                "runner_average_ms": null,
                "runner_format": "v2",
                "runner_median_ms": null,
                "sample_count": 1,
                "samples": [
                  {
                    "cache_busted": false,
                    "http_code": 200,
                    "ms": 241.3,
                    "size_bytes": 48210,
                    "timing": {
                      "dns": 1,
                      "tcp": 19,
                      "tls": 40,
                      "total": 267.85,
                      "transfer": 26.55,
                      "ttfb": 181.3
                    },
                    "total_ms": 267.85,
                    "ttfb_ms": 241.3,
                    "url": "https://harbourandfinch-example-com.northwind.cfstack.example.net/"
                  }
                ],
                "timing": {
                  "dns": 1,
                  "tcp": 19,
                  "tls": 40,
                  "total": 267.85,
                  "transfer": 26.55,
                  "ttfb": 181.3
                },
                "timing_scope": "single_request",
                "url": "https://harbourandfinch-example-com.northwind.cfstack.example.net/",
                "warm_ups": 0
              },
              "Current host": {
                "cache_busted": false,
                "cache_miss": null,
                "comparable": true,
                "headers": null,
                "http_code": 200,
                "invalid": null,
                "measured": true,
                "metric": "ttfb",
                "ms": 612.4,
                "redirect_chain": null,
                "redirect_not_followed": false,
                "runner_average_ms": null,
                "runner_format": "v2",
                "runner_median_ms": null,
                "sample_count": 1,
                "samples": [
                  {
                    "cache_busted": false,
                    "http_code": 200,
                    "ms": 612.4,
                    "size_bytes": 48210,
                    "timing": {
                      "dns": 1,
                      "tcp": 19,
                      "tls": 40,
                      "total": 638.95,
                      "transfer": 26.55,
                      "ttfb": 552.4
                    },
                    "total_ms": 638.95,
                    "ttfb_ms": 612.4,
                    "url": "https://old.harbourandfinch.example.org/"
                  }
                ],
                "timing": {
                  "dns": 1,
                  "tcp": 19,
                  "tls": 40,
                  "total": 638.95,
                  "transfer": 26.55,
                  "ttfb": 552.4
                },
                "timing_scope": "single_request",
                "url": "https://old.harbourandfinch.example.org/",
                "warm_ups": 0
              }
            },
            "requested": true
          }
        },
        "title": "Home"
      }
    ],
    "psi": null,
    "scale": {
      "max_ms": 700,
      "observed_max_ms": 612.4
    },
    "schema_version": 2
  },
  "sections": {
    "contact": true,
    "simple": [
      "hero",
      "at_a_glance",
      "response_times",
      "gap",
      "improvement",
      "absolute_times",
      "waterfall",
      "full_table",
      "definitions"
    ],
    "technical": [
      "method",
      "timing_breakdown",
      "samples",
      "all_metrics"
    ]
  }
}
```

### 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."
}
```

### 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
}
```

## 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. |
| 429 | `rate_limited` | Wait for the seconds in `Retry-After`. |

## The same task elsewhere

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