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

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

The Firecrawl plugin syncs data locally. Use `corsair.firecrawl.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>

## Jobs

Path: `firecrawl.db.jobs.search`

```ts theme={null}
const rows = await corsair.firecrawl.db.jobs.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 |
| `success`   | `boolean` | equals                                     |
| `updatedAt` | `date`    | equals, before, after, between             |

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

***

## Scrapes

Path: `firecrawl.db.scrapes.search`

```ts theme={null}
const rows = await corsair.firecrawl.db.scrapes.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 |
| `sourceURL`  | `string`  | equals, contains, startsWith, endsWith, in |
| `success`    | `boolean` | equals                                     |
| `markdown`   | `string`  | equals, contains, startsWith, endsWith, in |
| `summary`    | `string`  | equals, contains, startsWith, endsWith, in |
| `html`       | `string`  | equals, contains, startsWith, endsWith, in |
| `rawHtml`    | `string`  | equals, contains, startsWith, endsWith, in |
| `screenshot` | `string`  | equals, contains, startsWith, endsWith, in |
| `audio`      | `string`  | equals, contains, startsWith, endsWith, in |
| `warning`    | `string`  | equals, contains, startsWith, endsWith, in |
| `fetchedAt`  | `date`    | equals, before, after, between             |

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

***

## Searches

Path: `firecrawl.db.searches.search`

```ts theme={null}
const rows = await corsair.firecrawl.db.searches.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 |
| `success`   | `boolean` | equals                                     |
| `fetchedAt` | `date`    | equals, before, after, between             |

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

***

## Site Maps

Path: `firecrawl.db.siteMaps.search`

```ts theme={null}
const rows = await corsair.firecrawl.db.siteMaps.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 |
| `baseUrl`   | `string`  | equals, contains, startsWith, endsWith, in |
| `success`   | `boolean` | equals                                     |
| `fetchedAt` | `date`    | equals, before, after, between             |

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

***
