> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GTmetrix database

> GTmetrix local sync in Corsair: the entities stored in your database, the `.search()` filters each one accepts, and the filter operators.

The GTmetrix plugin syncs data locally. Use `corsair.gtmetrix.db.<entity>.search({ data, limit?, offset? })` with the filters listed per entity.

> [!NOTE]
>
> **New to Corsair?** See [database operations](https://docs.corsair.dev/concepts/database.md), [data synchronization](https://docs.corsair.dev/concepts/integrations.md), and [multi-tenancy](https://docs.corsair.dev/concepts/multi-tenancy.md).

## Pages

Path: `gtmetrix.db.pages.search`

```ts theme={null}
const rows = await corsair.gtmetrix.db.pages.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `url` | `string` | equals, contains, startsWith, endsWith, in |
| `created` | `number` | equals, gt, gte, lt, lte, in |
| `browser` | `string` | equals, contains, startsWith, endsWith, in |
| `location` | `string` | equals, contains, startsWith, endsWith, in |
| `latest_report` | `string` | equals, contains, startsWith, endsWith, in |
| `latest_report_time` | `number` | equals, gt, gte, lt, lte, in |
| `report_count` | `number` | equals, gt, gte, lt, lte, in |
| `monitored` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Reports

Path: `gtmetrix.db.reports.search`

```ts theme={null}
const rows = await corsair.gtmetrix.db.reports.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `url` | `string` | equals, contains, startsWith, endsWith, in |
| `page` | `string` | equals, contains, startsWith, endsWith, in |
| `test` | `string` | equals, contains, startsWith, endsWith, in |
| `source` | `string` | equals, contains, startsWith, endsWith, in |
| `browser` | `string` | equals, contains, startsWith, endsWith, in |
| `location` | `string` | equals, contains, startsWith, endsWith, in |
| `created` | `number` | equals, gt, gte, lt, lte, in |
| `expires` | `number` | equals, gt, gte, lt, lte, in |
| `gtmetrix_grade` | `string` | equals, contains, startsWith, endsWith, in |
| `performance_score` | `number` | equals, gt, gte, lt, lte, in |
| `structure_score` | `number` | equals, gt, gte, lt, lte, in |
| `largest_contentful_paint` | `number` | equals, gt, gte, lt, lte, in |
| `total_blocking_time` | `number` | equals, gt, gte, lt, lte, in |
| `cumulative_layout_shift` | `number` | equals, gt, gte, lt, lte, in |
| `fully_loaded_time` | `number` | equals, gt, gte, lt, lte, in |
| `page_bytes` | `number` | equals, gt, gte, lt, lte, in |
| `page_requests` | `number` | equals, gt, gte, lt, lte, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Tags

Path: `gtmetrix.db.tags.search`

```ts theme={null}
const rows = await corsair.gtmetrix.db.tags.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `description` | `string` | equals, contains, startsWith, endsWith, in |
| `color` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Tests

Path: `gtmetrix.db.tests.search`

```ts theme={null}
const rows = await corsair.gtmetrix.db.tests.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `url` | `string` | equals, contains, startsWith, endsWith, in |
| `page` | `string` | equals, contains, startsWith, endsWith, in |
| `report` | `string` | equals, contains, startsWith, endsWith, in |
| `state` | `string` | equals, contains, startsWith, endsWith, in |
| `error` | `string` | equals, contains, startsWith, endsWith, in |
| `source` | `string` | equals, contains, startsWith, endsWith, in |
| `location` | `string` | equals, contains, startsWith, endsWith, in |
| `browser` | `string` | equals, contains, startsWith, endsWith, in |
| `created` | `number` | equals, gt, gte, lt, lte, in |
| `finished` | `number` | equals, gt, gte, lt, lte, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.