> ## 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 Zenserp: every `zenserp.api.*` operation with input and output types.

Every `zenserp.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).

## Account

### getStatus

`account.getStatus`

Return the remaining request quota for the API key

**Risk:** `read`

```ts theme={null}
await corsair.zenserp.api.account.getStatus({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `remaining_requests` | `number` | Yes | — |

***

## Batches

### list

`batches.list`

List submitted Zenserp batches

**Risk:** `read`

```ts theme={null}
await corsair.zenserp.api.batches.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `page` | `number` | No | — |
| `limit` | `number` | No | — |

**Output:** `Record<string, any>[] \| object`

> [accordion] Output full type
>
> ```ts theme={null}
> Record<string, any>[] | {
>   data: Record<string, any>[]
> }
> ```

***

## Metadata

### listCountries

`metadata.listCountries`

List supported Google country parameters

**Risk:** `read`

```ts theme={null}
await corsair.zenserp.api.metadata.listCountries({});
```

**Input:** *empty object*

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   name?: string,
>   value?: string,
>   code?: string
> }[]
> ```

***

### listLanguages

`metadata.listLanguages`

List supported Google interface languages

**Risk:** `read`

```ts theme={null}
await corsair.zenserp.api.metadata.listLanguages({});
```

**Input:** *empty object*

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   name?: string,
>   value?: string,
>   code?: string
> }[]
> ```

***

### listLocations

`metadata.listLocations`

List supported geolocation targets

**Risk:** `read`

```ts theme={null}
await corsair.zenserp.api.metadata.listLocations({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `q` | `string` | No | — |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   name?: string,
>   canonical_name?: string,
>   country_code?: string
> }[]
> ```

***

### listSearchEngines

`metadata.listSearchEngines`

List supported search-engine domains

**Risk:** `read`

```ts theme={null}
await corsair.zenserp.api.metadata.listSearchEngines({});
```

**Input:** *empty object*

**Output:** `object[]`

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

***

## Search

### bing

`search.bing`

Search Bing and return structured SERP data

**Risk:** `read`

```ts theme={null}
await corsair.zenserp.api.search.bing({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `q` | `string` | Yes | — |
| `location` | `string` | No | — |
| `hl` | `string` | No | — |
| `gl` | `string` | No | — |
| `device` | `desktop \| tablet \| mobile` | No | — |
| `num` | `number` | No | — |
| `start` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `query` | `Record<string, any>` | Yes | — |
| `organic` | `Record<string, any>[]` | No | — |
| `paid` | `Record<string, any>[]` | No | — |
| `images` | `Record<string, any>[]` | No | — |
| `related_searches` | `Record<string, any>[]` | No | — |
| `pagination` | `Record<string, any>` | No | — |
| `number_of_results` | `number` | No | — |
| `knowledge_graph` | `Record<string, any>` | No | — |

***

### google

`search.google`

Search Google and return structured SERP data

**Risk:** `read`

```ts theme={null}
await corsair.zenserp.api.search.google({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `q` | `string` | Yes | — |
| `location` | `string` | No | — |
| `hl` | `string` | No | — |
| `gl` | `string` | No | — |
| `device` | `desktop \| tablet \| mobile` | No | — |
| `num` | `number` | No | — |
| `start` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `query` | `Record<string, any>` | Yes | — |
| `organic` | `Record<string, any>[]` | No | — |
| `paid` | `Record<string, any>[]` | No | — |
| `images` | `Record<string, any>[]` | No | — |
| `related_searches` | `Record<string, any>[]` | No | — |
| `pagination` | `Record<string, any>` | No | — |
| `number_of_results` | `number` | No | — |
| `knowledge_graph` | `Record<string, any>` | No | — |

***

### reverseImage

`search.reverseImage`

Run a Google reverse-image search for a public image URL

**Risk:** `read`

```ts theme={null}
await corsair.zenserp.api.search.reverseImage({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `imageUrl` | `string` | Yes | — |
| `location` | `string` | No | — |
| `gl` | `string` | No | — |
| `hl` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `query` | `Record<string, any>` | Yes | — |
| `organic` | `Record<string, any>[]` | No | — |
| `paid` | `Record<string, any>[]` | No | — |
| `images` | `Record<string, any>[]` | No | — |
| `related_searches` | `Record<string, any>[]` | No | — |
| `pagination` | `Record<string, any>` | No | — |
| `number_of_results` | `number` | No | — |
| `knowledge_graph` | `Record<string, any>` | No | — |

***

### yandex

`search.yandex`

Search Yandex and return structured SERP data

**Risk:** `read`

```ts theme={null}
await corsair.zenserp.api.search.yandex({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `q` | `string` | Yes | — |
| `location` | `string` | No | — |
| `hl` | `string` | No | — |
| `gl` | `string` | No | — |
| `device` | `desktop \| tablet \| mobile` | No | — |
| `num` | `number` | No | — |
| `start` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `query` | `Record<string, any>` | Yes | — |
| `organic` | `Record<string, any>[]` | No | — |
| `paid` | `Record<string, any>[]` | No | — |
| `images` | `Record<string, any>[]` | No | — |
| `related_searches` | `Record<string, any>[]` | No | — |
| `pagination` | `Record<string, any>` | No | — |
| `number_of_results` | `number` | No | — |
| `knowledge_graph` | `Record<string, any>` | No | — |

***

## Shopping

### getProduct

`shopping.getProduct`

Retrieve Google Shopping product details

**Risk:** `read`

```ts theme={null}
await corsair.zenserp.api.shopping.getProduct({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `productId` | `string` | Yes | — |
| `location` | `string` | No | — |
| `gl` | `string` | No | — |
| `hl` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `query` | `Record<string, any>` | Yes | — |
| `title` | `string` | Yes | — |
| `description` | `string \| null` | No | — |
| `image` | `string` | No | — |
| `reviews` | `Record<string, any>[]` | No | — |
| `specifications` | `Record<string, any>[]` | No | — |
| `sellers` | `Record<string, any>[]` | No | — |

***

## Trends

### get

`trends.get`

Retrieve Google Trends data for one or more keywords

**Risk:** `read`

```ts theme={null}
await corsair.zenserp.api.trends.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `keywords` | `string[]` | Yes | — |
| `location` | `string` | No | — |
| `timeframe` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `json` | `Record<string, any>` | Yes | — |
| `html` | `string` | No | — |

***


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