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

# Database

> Updown.io local sync: searchable entities, `.search()` filters, and operators.

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

<Info>
  **New to Corsair?** See [database operations](/concepts/database), [data synchronization](/concepts/integrations), and [multi-tenancy](/concepts/multi-tenancy).
</Info>

## Checks

Path: `updownio.db.checks.search`

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

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `token` | `string` | equals, contains, startsWith, endsWith, in |
| `url` | `string` | equals, contains, startsWith, endsWith, in |
| `type` | `string` | equals, contains, startsWith, endsWith, in |
| `alias` | `string` | equals, contains, startsWith, endsWith, in |
| `last_status` | `number` | equals, gt, gte, lt, lte, in |
| `uptime` | `number` | equals, gt, gte, lt, lte, in |
| `down` | `boolean` | equals |
| `down_since` | `string` | equals, contains, startsWith, endsWith, in |
| `up_since` | `string` | equals, contains, startsWith, endsWith, in |
| `error` | `string` | equals, contains, startsWith, endsWith, in |
| `period` | `number` | equals, gt, gte, lt, lte, in |
| `apdex_t` | `number` | equals, gt, gte, lt, lte, in |
| `string_match` | `string` | equals, contains, startsWith, endsWith, in |
| `enabled` | `boolean` | equals |
| `published` | `boolean` | equals |
| `last_check_at` | `string` | equals, contains, startsWith, endsWith, in |
| `next_check_at` | `string` | equals, contains, startsWith, endsWith, in |
| `created_at` | `string` | equals, contains, startsWith, endsWith, in |
| `mute_until` | `string` | equals, contains, startsWith, endsWith, in |
| `favicon_url` | `string` | equals, contains, startsWith, endsWith, in |
| `http_verb` | `string` | equals, contains, startsWith, endsWith, in |
| `http_body` | `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](/concepts/database).*

***

## Nodes

Path: `updownio.db.nodes.search`

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

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `ip` | `string` | equals, contains, startsWith, endsWith, in |
| `ip6` | `string` | equals, contains, startsWith, endsWith, in |
| `city` | `string` | equals, contains, startsWith, endsWith, in |
| `country` | `string` | equals, contains, startsWith, endsWith, in |
| `country_code` | `string` | equals, contains, startsWith, endsWith, in |
| `lat` | `number` | equals, gt, gte, lt, lte, in |
| `lng` | `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](/concepts/database).*

***


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