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

# API

> API reference for BigPicture.io: every `bigpictureio.api.*` operation with input and output types.

Every `bigpictureio.api.*` operation is listed below with parameter shapes and return types from the plugin Zod schemas.

> [!NOTE]
>
> **New to Corsair?** See [API access](https://docs.corsair.dev/concepts/api.md), [authentication](https://docs.corsair.dev/concepts/auth.md), and [error handling](https://docs.corsair.dev/concepts/error-handling).

## Company

### find

`company.find`

Find detailed company information by domain

**Risk:** `read`

```ts theme={null}
await corsair.bigpictureio.api.company.find({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | — |
| `webhookUrl` | `string` | No | — |
| `webhookId` | `string` | No | — |

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   id?: string,
>   name?: string,
>   legalName?: string,
>   domain?: string,
>   url?: string,
>   logo?: string,
>   type?: string,
>   phone?: string,
>   ticker?: string,
>   description?: string,
>   foundedYear?: number,
>   tags?: string[],
>   tech?: string[],
>   aliases?: string[],
>   domainAliases?: string[],
>   category?: {
>     sector?: string,
>     industryGroup?: string,
>     industry?: string,
>     subIndustry?: string,
>     naicsCode?: string
>   },
>   metrics?: {
>     raised?: number,
>     employees?: number,
>     marketCap?: number,
>     trancoRank?: number,
>     alexaUsRank?: number,
>     annualRevenue?: number,
>     employeesRange?: string,
>     alexaGlobalRank?: number,
>     estimatedAnnualRevenue?: string
>   },
>   location?: string,
>   geo?: {
>     streetNumber?: string | null,
>     streetName?: string | null,
>     subPremise?: string | null,
>     city?: string | null,
>     state?: string | null,
>     postalCode?: string | null,
>     stateCode?: string | null,
>     country?: string | null,
>     countryCode?: string | null
>   },
>   facebook?: {
>     handle?: string
>   },
>   linkedin?: {
>     handle?: string,
>     industry?: string
>   },
>   twitter?: {
>     id?: string,
>     bio?: string,
>     site?: string,
>     avatar?: string,
>     handle?: string,
>     location?: string,
>     followers?: number,
>     following?: number
>   },
>   crunchbase?: {
>     handle?: string
>   },
>   emailProvider?: boolean,
>   indexedAt?: string
> } | {
>   pending: true,
>   webhookUrl: string,
>   webhookId?: string
> }
> ```

***

### stream

`company.stream`

Hold the company lookup open until BigPicture finishes

**Risk:** `read`

```ts theme={null}
await corsair.bigpictureio.api.company.stream({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | No | — |
| `name` | `string` | No | — |
| `legalName` | `string` | No | — |
| `domain` | `string` | No | — |
| `url` | `string` | No | — |
| `logo` | `string` | No | — |
| `type` | `string` | No | — |
| `phone` | `string` | No | — |
| `ticker` | `string` | No | — |
| `description` | `string` | No | — |
| `foundedYear` | `number` | No | — |
| `tags` | `string[]` | No | — |
| `tech` | `string[]` | No | — |
| `aliases` | `string[]` | No | — |
| `domainAliases` | `string[]` | No | — |
| `category` | `object` | No | — |
| `metrics` | `object` | No | — |
| `location` | `string` | No | — |
| `geo` | `object` | No | — |
| `facebook` | `object` | No | — |
| `linkedin` | `object` | No | — |
| `twitter` | `object` | No | — |
| `crunchbase` | `object` | No | — |
| `emailProvider` | `boolean` | No | — |
| `indexedAt` | `string` | No | — |

> [accordion] category full type
>
> ```ts theme={null}
> {
>   sector?: string,
>   industryGroup?: string,
>   industry?: string,
>   subIndustry?: string,
>   naicsCode?: string
> }
> ```

> [accordion] metrics full type
>
> ```ts theme={null}
> {
>   raised?: number,
>   employees?: number,
>   marketCap?: number,
>   trancoRank?: number,
>   alexaUsRank?: number,
>   annualRevenue?: number,
>   employeesRange?: string,
>   alexaGlobalRank?: number,
>   estimatedAnnualRevenue?: string
> }
> ```

> [accordion] geo full type
>
> ```ts theme={null}
> {
>   streetNumber?: string | null,
>   streetName?: string | null,
>   subPremise?: string | null,
>   city?: string | null,
>   state?: string | null,
>   postalCode?: string | null,
>   stateCode?: string | null,
>   country?: string | null,
>   countryCode?: string | null
> }
> ```

> [accordion] facebook full type
>
> ```ts theme={null}
> {
>   handle?: string
> }
> ```

> [accordion] linkedin full type
>
> ```ts theme={null}
> {
>   handle?: string,
>   industry?: string
> }
> ```

> [accordion] twitter full type
>
> ```ts theme={null}
> {
>   id?: string,
>   bio?: string,
>   site?: string,
>   avatar?: string,
>   handle?: string,
>   location?: string,
>   followers?: number,
>   following?: number
> }
> ```

> [accordion] crunchbase full type
>
> ```ts theme={null}
> {
>   handle?: string
> }
> ```

***

## Ip

### find

`ip.find`

Find the company associated with an IP address

**Risk:** `read`

```ts theme={null}
await corsair.bigpictureio.api.ip.find({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `ip` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `ip` | `string` | Yes | — |
| `type` | `string` | No | — |
| `fuzzy` | `boolean` | No | — |
| `confidence` | `number` | No | — |
| `geo` | `object` | No | — |
| `company` | `object` | No | — |
| `whois` | `object` | No | — |
| `asn` | `object` | No | — |

> [accordion] geo full type
>
> ```ts theme={null}
> {
>   city?: string,
>   state?: string,
>   stateCode?: string,
>   country?: string,
>   countryCode?: string,
>   continent?: string,
>   continentCode?: string,
>   isEU?: boolean
> }
> ```

> [accordion] company full type
>
> ```ts theme={null}
> {
>   id?: string,
>   name?: string,
>   legalName?: string,
>   domain?: string,
>   url?: string,
>   logo?: string,
>   type?: string,
>   phone?: string,
>   ticker?: string,
>   description?: string,
>   foundedYear?: number,
>   tags?: string[],
>   tech?: string[],
>   aliases?: string[],
>   domainAliases?: string[],
>   category?: {
>     sector?: string,
>     industryGroup?: string,
>     industry?: string,
>     subIndustry?: string,
>     naicsCode?: string
>   },
>   metrics?: {
>     raised?: number,
>     employees?: number,
>     marketCap?: number,
>     trancoRank?: number,
>     alexaUsRank?: number,
>     annualRevenue?: number,
>     employeesRange?: string,
>     alexaGlobalRank?: number,
>     estimatedAnnualRevenue?: string
>   },
>   location?: string,
>   geo?: {
>     streetNumber?: string | null,
>     streetName?: string | null,
>     subPremise?: string | null,
>     city?: string | null,
>     state?: string | null,
>     postalCode?: string | null,
>     stateCode?: string | null,
>     country?: string | null,
>     countryCode?: string | null
>   },
>   facebook?: {
>     handle?: string
>   },
>   linkedin?: {
>     handle?: string,
>     industry?: string
>   },
>   twitter?: {
>     id?: string,
>     bio?: string,
>     site?: string,
>     avatar?: string,
>     handle?: string,
>     location?: string,
>     followers?: number,
>     following?: number
>   },
>   crunchbase?: {
>     handle?: string
>   },
>   emailProvider?: boolean,
>   indexedAt?: string
> }
> ```

> [accordion] whois full type
>
> ```ts theme={null}
> {
>   domain?: string,
>   name?: string
> }
> ```

> [accordion] asn full type
>
> ```ts theme={null}
> {
>   asn?: string,
>   name?: string,
>   route?: string
> }
> ```

***


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