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

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

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

## Ip Checks

Path: `abuseipdb.db.ipChecks.search`

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

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `ipAddress` | `string` | equals, contains, startsWith, endsWith, in |
| `abuseConfidenceScore` | `number` | equals, gt, gte, lt, lte, in |
| `isPublic` | `boolean` | equals |
| `ipVersion` | `number` | equals, gt, gte, lt, lte, in |
| `countryCode` | `string` | equals, contains, startsWith, endsWith, in |
| `countryName` | `string` | equals, contains, startsWith, endsWith, in |
| `usageType` | `string` | equals, contains, startsWith, endsWith, in |
| `isp` | `string` | equals, contains, startsWith, endsWith, in |
| `domain` | `string` | equals, contains, startsWith, endsWith, in |
| `isTor` | `boolean` | equals |
| `totalReports` | `number` | equals, gt, gte, lt, lte, in |
| `numDistinctUsers` | `number` | equals, gt, gte, lt, lte, in |
| `checkedAt` | `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).*

***

## Reports

Path: `abuseipdb.db.reports.search`

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

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `ipAddress` | `string` | equals, contains, startsWith, endsWith, in |
| `abuseConfidenceScore` | `number` | equals, gt, gte, lt, lte, in |
| `reportedAt` | `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).*

***


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