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

# Semrush API reference

> API reference for the Semrush plugin in Corsair: every `semrush.api.*` operation with its input and output types, taken from the plugin's 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).

## Backlinks

### anchors

`backlinks.anchors`

List anchor texts used in inbound links to a target URL with domain and backlink counts

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.backlinks.anchors({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `fields` | `string[]` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `filter` | `string` | No | — |
| `format` | `json` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   anchor?: string | null,
>   backlinks_count?: number | null,
>   domains_count?: number | null,
>   first_seen_at?: string | null,
>   last_seen_at?: string | null
> }[]
> ```

***

### comparison

`backlinks.comparison`

Compare high-level backlink metrics side-by-side for up to 10 target URLs or domains

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.backlinks.comparison({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `urls` | `string[]` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| PAGE` | Yes | — |
| `fields` | `string[]` | No | — |
| `format` | `json` | No | — |

Supports up to 10 target URLs (`ROOT_DOMAIN`, `SUBDOMAIN`, or `PAGE` scope).

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   backlinks_count?: number | null,
>   domains_count?: number | null,
>   follows_count?: number | null,
>   month_date?: string | null,
>   score?: number | null,
>   url?: string | null
> }[]
> ```

***

### competitors

`backlinks.competitors`

List competing domains sharing referring domains with the target domain

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.backlinks.competitors({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | — |
| `fields` | `string[]` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `format` | `json` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   domain?: string | null,
>   common_refdomains?: number | null,
>   similarity?: number | null
> }[]
> ```

***

### links

`backlinks.links`

List individual inbound backlinks pointing to a target URL with anchor text and link attributes

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.backlinks.links({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `fields` | `string[]` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `filter` | `string` | No | — |
| `format` | `json` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   anchor?: string | null,
>   domain_score?: number | null,
>   external_links_count?: number | null,
>   first_seen_at?: string | null,
>   image_alt?: string | null,
>   image_url?: string | null,
>   internal_links_count?: number | null,
>   ip_address?: string | null,
>   is_form?: boolean | null,
>   is_frame?: boolean | null,
>   is_image?: boolean | null,
>   is_lost?: boolean | null,
>   is_new?: boolean | null,
>   is_nofollow?: boolean | null,
>   is_sitewide_main?: boolean | null,
>   is_sponsored?: boolean | null,
>   is_ugc?: boolean | null,
>   lang?: string | null,
>   last_seen_at?: string | null,
>   page_score?: number | null,
>   redirect_url?: string | null,
>   response_code?: number | null,
>   source_domain?: string | null,
>   source_size?: number | null,
>   source_title?: string | null,
>   source_url?: string | null,
>   target_title?: string | null,
>   target_url?: string | null
> }[]
> ```

***

### matrix

`backlinks.matrix`

Compare overlapping referring domains across up to 6 target URLs in a link matrix

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.backlinks.matrix({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `urls` | `string[]` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| PAGE` | Yes | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `filter` | `string` | No | — |

Supports up to 6 target URLs (`ROOT_DOMAIN`, `SUBDOMAIN`, or `PAGE` scope).

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   backlinks_counts?: number[] | null,
>   country?: string | null,
>   domain?: string | null,
>   domain_score?: number | null,
>   ip_address?: string | null,
>   matches_count?: number | null
> }[]
> ```

***

### overview

`backlinks.overview`

Get a high-level backlink profile summary (authority score, referring domains, follow/nofollow counts) for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.backlinks.overview({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `fields` | `string[]` | No | — |
| `format` | `json` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   backlinks_count?: number | null,
>   domains_count?: number | null,
>   follows_count?: number | null,
>   forms_count?: number | null,
>   frames_count?: number | null,
>   images_count?: number | null,
>   ip_class_c_count?: number | null,
>   ips_count?: number | null,
>   lost_count?: number | null,
>   new_count?: number | null,
>   nofollows_count?: number | null,
>   score?: number | null,
>   sponsored_count?: number | null,
>   texts_count?: number | null,
>   ugc_count?: number | null,
>   urls_count?: number | null
> }
> ```

***

### pages

`backlinks.pages`

List indexed pages for the target URL with backlinks, referring domains, and HTTP status metadata

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.backlinks.pages({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `fields` | `string[]` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `filter` | `string` | No | — |
| `format` | `json` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   backlinks_count?: number | null,
>   domains_count?: number | null,
>   external_links_count?: number | null,
>   first_seen_at?: string | null,
>   internal_links_count?: number | null,
>   last_seen_at?: string | null,
>   response_code?: number | null,
>   source_title?: string | null,
>   source_url?: string | null
> }[]
> ```

***

### refDomains

`backlinks.refDomains`

List referring domains linking to a target URL with authority score and backlink counts

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.backlinks.refDomains({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `fields` | `string[]` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `filter` | `string` | No | — |
| `format` | `json` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   backlinks_count?: number | null,
>   country?: string | null,
>   domain?: string | null,
>   domain_score?: number | null,
>   first_seen_at?: string | null,
>   ip_address?: string | null,
>   is_follow?: boolean | null,
>   is_lost?: boolean | null,
>   is_new?: boolean | null,
>   last_seen_at?: string | null
> }[]
> ```

***

### refIps

`backlinks.refIps`

List referring IP addresses and Class C subnets linking to a target URL

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.backlinks.refIps({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `fields` | `string[]` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `filter` | `string` | No | — |
| `format` | `json` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   backlinks_count?: number | null,
>   country?: string | null,
>   domains_count?: number | null,
>   first_seen_at?: string | null,
>   ip_address?: string | null,
>   last_seen_at?: string | null
> }[]
> ```

***

### scoreProfile

`backlinks.scoreProfile`

Get the Authority Score distribution across referring domains for a target URL

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.backlinks.scoreProfile({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `format` | `json` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   domain_score?: number | null,
>   domains_count?: number | null
> }[]
> ```

***

### summary

`backlinks.summary`

Get historical monthly backlink metrics across a date range for a domain, subdomain, or page

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.backlinks.summary({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| PAGE` | Yes | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `date_from` | `string` | No | — |
| `date_to` | `string` | No | — |
| `format` | `json` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   backlinks_count?: number | null,
>   domains_count?: number | null,
>   follows_count?: number | null,
>   month_date?: string | null,
>   score?: number | null,
>   url?: string | null
> }[]
> ```

***

## Domain Analytics

### domainRankingsMonthly

`domainAnalytics.domainRankingsMonthly`

Get monthly domain rankings for the selected country and device type with organic and paid traffic estimates

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.domainAnalytics.domainRankingsMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `month` | `string` | No | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   domain?: string | null,
>   month?: string | null,
>   positions?: number | null,
>   traffic?: number | null,
>   traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   organic_positions?: number | null,
>   organic_traffic?: number | null,
>   organic_traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   organic_positions_difference?: number | null,
>   organic_traffic_difference?: number | null,
>   organic_traffic_cost_difference?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   adwords_positions?: number | null,
>   adwords_traffic?: number | null,
>   adwords_traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   adwords_positions_difference?: number | null,
>   adwords_traffic_difference?: number | null,
>   adwords_traffic_cost_difference?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   serp_features_positions?: number | null,
>   serp_features_traffic?: number | null,
>   serp_features_traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   serp_features_positions_difference?: number | null,
>   serp_features_traffic_difference?: number | null,
>   serp_features_traffic_cost_difference?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   pla_positions?: number | null,
>   pla_copies?: number | null,
>   positions_difference?: number | null,
>   traffic_difference?: number | null,
>   traffic_cost_difference?: {
>     value?: number | null,
>     currency?: string | null
>   } | null
> }[]
> ```

***

### domainRankingsMonthlyTotal

`domainAnalytics.domainRankingsMonthlyTotal`

Get the total count of ranked domains matching Domain Rankings filter criteria

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.domainAnalytics.domainRankingsMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `month` | `string` | No | — |
| `filter` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### domainSummariesMonthly

`domainAnalytics.domainSummariesMonthly`

Get monthly domain summary rank and organic/paid traffic metrics for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.domainAnalytics.domainSummariesMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `fields` | `string[]` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   month?: string | null,
>   database?: {
>     country?: string | null,
>     device?: string | null
>   } | null,
>   metrics?: {
>     organic_positions?: number | null,
>     organic_traffic?: number | null,
>     organic_traffic_cost?: {
>       value?: number | null,
>       currency?: string | null
>     } | null,
>     adwords_positions?: number | null,
>     adwords_traffic?: number | null,
>     adwords_traffic_cost?: {
>       value?: number | null,
>       currency?: string | null
>     } | null,
>     serp_features_positions?: number | null,
>     serp_features_traffic?: number | null,
>     serp_features_traffic_cost?: {
>       value?: number | null,
>       currency?: string | null
>     } | null,
>     positions?: number | null,
>     traffic?: number | null,
>     traffic_cost?: {
>       value?: number | null,
>       currency?: string | null
>     } | null
>   } | null
> }
> ```

***

### domainSummariesTrendMonthly

`domainAnalytics.domainSummariesTrendMonthly`

Get historical monthly rank, organic traffic, and keyword count trends for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.domainAnalytics.domainSummariesTrendMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `date_from` | `string` | Yes | — |
| `date_to` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `fields` | `string[]` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   month?: string | null,
>   rank?: number | null,
>   metrics?: {
>     organic_positions?: number | null,
>     organic_traffic?: number | null,
>     organic_traffic_cost?: {
>       value?: number | null,
>       currency?: string | null
>     } | null,
>     adwords_positions?: number | null,
>     adwords_traffic?: number | null,
>     adwords_traffic_cost?: {
>       value?: number | null,
>       currency?: string | null
>     } | null,
>     serp_features_positions?: number | null,
>     serp_features_traffic?: number | null,
>     serp_features_traffic_cost?: {
>       value?: number | null,
>       currency?: string | null
>     } | null,
>     positions?: number | null,
>     traffic?: number | null,
>     traffic_cost?: {
>       value?: number | null,
>       currency?: string | null
>     } | null
>   } | null
> }[]
> ```

***

### supportedCountries

`domainAnalytics.supportedCountries`

List supported Semrush Domain Analytics country and device databases

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.domainAnalytics.supportedCountries({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `device_type` | `DESKTOP \| MOBILE` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   country?: string | null,
>   device?: string | null
> }[]
> ```

***

## Enterprise

### getAioProject

`enterprise.getAioProject`

Returns a single AIO project. Poll this endpoint to check aio\_data\_ready before you request project data from the other endpoints.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.enterprise.getAioProject({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. An unknown workspace\_id returns a 404 error. |
| `project_id` | `string` | Yes | AIO tracking project ID (UUID), as returned by the Get AIO Projects endpoint. The project must belong to the specified workspace; otherwise, the request returns a 404 error. |
| `format` | `json` | No | Response format. Supported values: json, csv. Default: json. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   country?: string | null,
>   language?: string | null,
>   aio_data_ready?: boolean | null,
>   ai_platforms?: string[] | null
> } | null
> ```

***

### getBrief

`enterprise.getBrief`

Returns a brief with its content guidelines, score targets, terms, competing pages from Google search results, and sources cited in AI responses. Use this guidance to write an article or brief a writer.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.enterprise.getBrief({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. |
| `brief_id` | `number \| string` | Yes | Brief ID, as returned by the List Briefs endpoint. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   brief_id?: number | null,
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   workspace_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   brief_id?: number | null,
>   name?: string | null,
>   language?: string | null,
>   country?: string | null,
>   created_at?: string | null,
>   analysis_status?: string | null,
>   domain?: string | null,
>   keywords?: string[] | null,
>   prompts?: any[] | null,
>   content_guidelines?: {
>     main_topic?: string | null,
>     main_value_proposition?: string | null,
>     article_type?: string | null,
>     target_audience?: string | null,
>     tone_of_voice?: string | null,
>     search_intent?: string[] | null,
>     key_takeaways?: string[] | null,
>     questions?: string[] | null,
>     sub_topics?: string[] | null,
>     new_titles?: string[] | null,
>     proposed_structure?: {
>       name?: string | null,
>       sub_heading?: string[] | null
>     }[] | null
>   } | null,
>   scores?: {
>     seo_score_data?: {
>       seo_score_target?: number | null,
>       core_word_count_target?: number | null,
>       sentence_count_target?: number | null
>     } | null,
>     aio_score_data?: {
>       aio_score?: number | null
>     } | null
>   } | null,
>   terms?: {
>     must_have?: {
>       total?: number | null,
>       items?: {
>         term?: string | null,
>         type?: string | null,
>         target_count?: number | null,
>         status?: string | null,
>         is_heading?: boolean | null,
>         is_custom?: boolean | null
>       }[] | null
>     } | null,
>     good_to_have?: {
>       total?: number | null,
>       items?: {
>         term?: string | null,
>         type?: string | null,
>         target_count?: number | null,
>         status?: string | null,
>         is_heading?: boolean | null,
>         is_custom?: boolean | null
>       }[] | null
>     } | null
>   } | null,
>   serp_competitors?: {
>     keyword?: string | null,
>     competitor_list?: {
>       url?: string | null,
>       domain?: string | null,
>       position?: number | null
>     }[] | null
>   }[] | null,
>   sources?: {
>     url?: string | null,
>     domain?: string | null,
>     frequency?: number | null
>   }[] | null
> } | null
> ```

***

### listAioProjects

`enterprise.listAioProjects`

Returns the AIO projects in a workspace. The id of each returned project is the project\_id required by all other AIO endpoints.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.enterprise.listAioProjects({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. An unknown workspace\_id returns a 404 error. |
| `order_by` | `string` | No | Field to sort the results by. |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC. |
| `limit` | `number` | No | Number of results to return. Default: 100. Minimum: 1. Maximum: 10000. |
| `offset` | `number` | No | Number of results to skip. The sum of offset and limit must not exceed 50000. |
| `format` | `json` | No | Response format. Supported values: json, csv. Default: json. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   country?: string | null,
>   language?: string | null,
>   aio_data_ready?: boolean | null,
>   ai_platforms?: string[] | null
> }[] | null
> ```

***

### listBriefs

`enterprise.listBriefs`

Returns the briefs in a workspace, newest first, with the analysis status of each brief. Use the list to find a brief to open or score. The list excludes legacy, canceled, and read-only briefs.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.enterprise.listBriefs({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. |
| `limit` | `number` | No | Number of briefs to return. Default: 100. Minimum: 1. Maximum: 500. Set to 0 to use the default. |
| `offset` | `number` | No | Number of briefs to skip, starting with the newest. Default: 0. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   total_count?: number | null,
>   limit?: number | null,
>   offset?: number | null,
>   workspace_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   analysis_status?: string | null,
>   brief_id?: number | null,
>   country?: string | null,
>   created_at?: string | null,
>   domain?: string | null,
>   keywords?: string[] | null,
>   language?: string | null,
>   name?: string | null,
>   prompts?: any[] | null
> }[] | null
> ```

***

### listWorkspaces

`enterprise.listWorkspaces`

Returns the workspaces available to the authenticated user. Call it first: the id of each returned workspace is the workspace\_id required by all AIO endpoints, starting with Get AIO Projects.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.enterprise.listWorkspaces({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `order_by` | `string` | No | Field to sort the results by. |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC. |
| `limit` | `number` | No | Number of results to return. Default: 100. Minimum: 1. Maximum: 1000. |
| `offset` | `number` | No | Number of results to skip. The sum of offset and limit must not exceed 50000. |
| `format` | `json` | No | Response format. Supported values: json, csv. Default: json. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   title?: string | null
> }[] | null
> ```

***

### scoreBriefDraft

`enterprise.scoreBriefDraft`

Returns the overall, SEO, and AI SEO scores and term counts for an HTML draft scored against a brief. The results match what the editor shows for the same draft.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.enterprise.scoreBriefDraft({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. |
| `brief_id` | `number \| string` | Yes | Brief ID, as returned by the List Briefs endpoint. |
| `title` | `string` | Yes | Page title as plain text (the content of the tag). Can be an empty string. An empty title fails the title check of the AI SEO structure score. Example: What does cap mean? |
| `description` | `string` | Yes | Meta description of the page as plain text. Can be an empty string. An empty description fails the meta description check of the AI SEO structure score. |
| `html` | `string` | Yes | Body of the draft as HTML. The AI SEO structure checks use HTML headings, lists, and paragraphs. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   brief_id?: number | null,
>   workspace_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total_score?: number | null,
>   seo_score_data?: {
>     seo_score?: number | null,
>     seo_score_target?: number | null,
>     keyword_coverage?: number | null,
>     relevancy_score?: number | null,
>     readability_score?: number | null,
>     spam_score?: number | null,
>     core_word_count?: number | null,
>     core_word_count_recommended?: number | null,
>     sentence_count?: number | null,
>     sentence_count_recommended?: number | null,
>     readability_supported?: boolean | null
>   } | null,
>   aio_score_data?: {
>     aio_score?: number | null,
>     question_score?: {
>       score?: number | null,
>       items?: {
>         text?: string | null,
>         covered?: boolean | null,
>         details?: string | null
>       }[] | null
>     } | null,
>     subtopics_score?: {
>       score?: number | null,
>       items?: {
>         text?: string | null,
>         covered?: boolean | null,
>         details?: string | null
>       }[] | null
>     } | null,
>     structure_score?: {
>       score?: number | null,
>       items?: {
>         text?: string | null,
>         covered?: boolean | null,
>         details?: string | null
>       }[] | null
>     } | null
>   } | null,
>   terms?: {
>     must_have?: {
>       passed?: number | null,
>       total?: number | null,
>       items?: {
>         term?: string | null,
>         type?: string | null,
>         text_count?: number | null,
>         target_count?: number | null,
>         status?: string | null,
>         is_heading?: boolean | null,
>         is_custom?: boolean | null
>       }[] | null
>     } | null,
>     good_to_have?: {
>       passed?: number | null,
>       total?: number | null,
>       items?: any[] | null
>     } | null
>   } | null
> } | null
> ```

***

## Keyword Gap

### monthly

`keywordGap.monthly`

Analyze keyword overlap, unique, missing, strong, or weak opportunities between two targets

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.keywordGap.monthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `channel` | `ORGANIC \| ADWORDS \| PLA` | Yes | — |
| `target_url` | `string` | Yes | — |
| `target_scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `competitor_url` | `string` | Yes | — |
| `competitor_scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |
| `intersection_type` | `ALL \| COMMON \| MISSING \| STRONG \| UNIQUE \| WEAK` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keyword?: string | null,
>   volume?: number | null,
>   competition_density?: number | null,
>   cpc?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   keyword_difficulty?: number | null,
>   results?: number | null,
>   target?: {
>     position?: number | null,
>     url?: string | null
>   } | null,
>   competitor?: {
>     position?: number | null,
>     url?: string | null
>   } | null,
>   intents?: string[] | null,
>   is_keyword_branded?: boolean | null
> }[]
> ```

***

### monthlyCounts

`keywordGap.monthlyCounts`

Get monthly keyword gap counts across intersection categories for two targets

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.keywordGap.monthlyCounts({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `channel` | `ORGANIC \| ADWORDS \| PLA` | Yes | — |
| `target_url` | `string` | Yes | — |
| `target_scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `competitor_url` | `string` | Yes | — |
| `competitor_scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   all?: number | null,
>   common?: number | null,
>   unique?: number | null,
>   missing?: number | null,
>   strong?: number | null,
>   weak?: number | null
> }[]
> ```

***

### overlapsMonthly

`keywordGap.overlapsMonthly`

Get monthly keyword overlap breakdown counts between target and competitor

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.keywordGap.overlapsMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `channel` | `ORGANIC \| ADWORDS \| PLA` | Yes | — |
| `target_url` | `string` | Yes | — |
| `target_scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `competitor_url` | `string` | Yes | — |
| `competitor_scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   target_indexes?: number[] | null,
>   common_keywords?: number | null
> }[]
> ```

***

## Keywords

### broadMatch

`keywords.broadMatch`

List broad match keyword ideas and SEO/PPC metrics for a seed keyword

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.keywords.broadMatch({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `keyword` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `direction` | `ASC \| DESC` | No | — |
| `filter` | `string` | No | — |
| `is_question` | `boolean` | No | — |
| `format` | `json` | No | — |
| `order_by` | `keyword \| search_volume \| cpc \| keyword_difficulty \| competitive_density \| number_of_results \| serp_features` | No | — |

Requires `order_by` and `direction` to be provided together when sorting. Deep pagination caps `offset + limit` at `50000`.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keyword?: string | null,
>   metrics?: {
>     search_volume?: number | null,
>     cpc?: number | null,
>     keyword_difficulty?: number | null,
>     competitive_density?: number | null,
>     number_of_results?: number | null,
>     intents?: string[] | null,
>     trends?: number[] | null,
>     serp_features?: string[] | null
>   } | null
> }[]
> ```

***

### metrics

`keywords.metrics`

Get monthly search volume, CPC, keyword difficulty, intent, trends, and SERP features for a keyword

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.keywords.metrics({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `keyword` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `month` | `string` | No | — |
| `format` | `json` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   search_volume?: number | null,
>   cpc?: number | null,
>   keyword_difficulty?: number | null,
>   competitive_density?: number | null,
>   number_of_results?: number | null,
>   intents?: string[] | null,
>   trends?: number[] | null,
>   serp_features?: string[] | null
> }
> ```

***

### related

`keywords.related`

List semantically related keyword ideas, relevance scores, and SEO/PPC metrics

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.keywords.related({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `keyword` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `direction` | `ASC \| DESC` | No | — |
| `filter` | `string` | No | — |
| `is_question` | `boolean` | No | — |
| `format` | `json` | No | — |
| `order_by` | `keyword \| search_volume \| cpc \| keyword_difficulty \| competitive_density \| number_of_results \| serp_features \| relevance` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keyword?: string | null,
>   metrics?: {
>     search_volume?: number | null,
>     cpc?: number | null,
>     keyword_difficulty?: number | null,
>     competitive_density?: number | null,
>     number_of_results?: number | null,
>     intents?: string[] | null,
>     trends?: number[] | null,
>     serp_features?: string[] | null
>   } | null,
>   relevance?: number | null
> }[]
> ```

***

## Local Gbp

### createPost

`localGbp.createPost`

Creates a Google Business Profile (GBP) post. The user must have EDIT or OWNER rights for the location. Returns an error if the location doesn’t have a GBP connection or is frozen or canceled. Publishes or schedules a public post on Google Business Profile.

**Risk:** `destructive`

```ts theme={null}
await corsair.semrush.api.localGbp.createPost({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_id` | `string` | Yes | Unique identifier of the location associated with the post. |
| `status` | `string` | Yes | Status of the post after creation. Supported values: DRAFT, SCHEDULED, TO\_SEND. |
| `content` | `string` | No | Text content of the post. Either content or image\_urls must be specified. |
| `image_urls` | `string[]` | No | List of URLs for images included in the post. Either content or image\_urls must be specified. Max. is 1. |
| `call_to_action` | `Record<string, any>` | No | The Call to Action object with the button configuration for the post. |
| `scheduled_date` | `string \| null` | No | Date and time in UTC when the post is scheduled to be published in the "YYYY-MM-DDThh:mm:ss" format (for example, "2024-05-11T00:28:38"). Required if status is SCHEDULED; must be null otherwise. |

Publishes or schedules a public Google Business Profile post unless `status` is `DRAFT`.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   location_id?: string | null,
>   status?: string | null,
>   content?: string | null,
>   image_urls?: any[] | null,
>   call_to_action?: {
>     type?: string | null,
>     url?: string | null
>   } | null,
>   publication_date?: any | null,
>   scheduled_date?: any | null
> } | null
> ```

***

### deletePost

`localGbp.deletePost`

Deletes a Google Business Profile (GBP) post. Applies only to posts with the DRAFT, SCHEDULED, or TO\_SEND status. The user must have EDIT or OWNER rights for the location. Returns an error if the location is frozen or canceled.

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.semrush.api.localGbp.deletePost({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `post_id` | `string` | Yes | Unique identifier of the post to delete. |
| `location_id` | `string` | Yes | Unique identifier of the location associated with the post. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
> } | null
> ```

***

### listAttributes

`localGbp.listAttributes`

Returns a list of GBP attributes for a specific category. They are needed to better describe your business.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.localGbp.listAttributes({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `gbp_category_id` | `string` | Yes | Unique identifier of the GBP category for which you want to retrieve attributes. Retrieve it with the Get GBP Categories method. |
| `country` | `string` | Yes | Two-letter country code where the business is located, as defined by the ISO 3166-1 code reference (the Alpha-2 code column). |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   values?: {
>     option_id?: string | null,
>     label?: string | null
>   }[] | null
> }[] | null
> ```

***

### listCategories

`localGbp.listCategories`

Returns a paginated list of Google Business Profile (GBP) categories supported within a specific country. These categories are used for Google Business Profile management.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.localGbp.listCategories({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `country` | `string` | Yes | Two-letter country code where the business is located, as defined by the ISO 3166-1 code reference (the Alpha-2 code column). |
| `offset` | `number` | No | Starting point for the subset of records to be returned. Default is 0. |
| `limit` | `number` | No | Maximum number of categories to be returned in a single paginated response. Default is 1000. Max. is 1000. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   limit?: number | null,
>   offset?: number | null,
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   full_name?: string | null,
>   parent_id?: string | null
> }[] | null
> ```

***

### listPosts

`localGbp.listPosts`

Returns an error if any of the locations does not have a GBP connection or is frozen or canceled.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.localGbp.listPosts({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_ids` | `string[]` | Yes | List of identifiers of the locations for which you want to retrieve posts. Min. is 1. Max. is 100. |
| `status` | `string` | No | Filters the results to posts with the specified status. Supported values: DRAFT, SCHEDULED, TO\_SEND, SENDING, PUBLISHED, FAILED. |
| `offset` | `number` | No | Starting point for the subset of records to be returned. Default is 0. |
| `limit` | `number` | No | Maximum number of posts to be returned in a single paginated response. Default is 20. Max. is 50. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   limit?: number | null,
>   offset?: number | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   location_id?: string | null,
>   status?: string | null,
>   content?: string | null,
>   image_urls?: string[] | null,
>   publication_date?: string | null,
>   scheduled_date?: string | null,
>   call_to_action?: {
>     type?: string | null,
>     url?: string | null
>   } | null
> }[] | null
> ```

***

### listSuggestions

`localGbp.listSuggestions`

Returns an error if any of the locations does not have a GBP connection or is frozen or canceled.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.localGbp.listSuggestions({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_ids` | `string[]` | Yes | List of identifiers of the locations for which you want to retrieve suggestions. Min. is 1. Max. is 100. |
| `statuses` | `string[]` | No | Filters the results to suggestions with the specified statuses. Supported values: OPEN, ACCEPTING, REJECTING, ACCEPTED, REJECTED, FAILED. |
| `type` | `string` | No | Filters the results to suggestions of the specified type. Supported values: GBP\_USER\_EDIT, GBP\_DATA\_MISMATCH. |
| `offset` | `number` | No | Starting point for the subset of records to be returned. Default is 0. |
| `limit` | `number` | No | Maximum number of suggestions to be returned in a single paginated response. Default is 20. Max. is 50. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   limit?: number | null,
>   offset?: number | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   location_id?: string | null,
>   status?: string | null,
>   type?: string | null,
>   string_diff?: {
>     field_name?: string | null,
>     current_value?: string | null,
>     proposed_value?: string | null
>   } | null
> }[] | null
> ```

***

### manageSuggestion

`localGbp.manageSuggestion`

Accepts or rejects a Google Business Profile (GBP) suggestion.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.localGbp.manageSuggestion({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `suggestion_id` | `string` | Yes | Unique identifier of the suggestion to accept or reject. |
| `location_id` | `string` | Yes | Unique identifier of the location associated with the suggestion. |
| `decision` | `string` | Yes | Decision to apply to the suggestion. Moves the suggestion to the ACCEPTING or REJECTING status, after which it changes to ACCEPTED, REJECTED, or FAILED.Supported values: ACCEPT, REJECT. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   location_id?: string | null,
>   status?: string | null,
>   type?: string | null
> } | null
> ```

***

### metrics

`localGbp.metrics`

Returns an error if any of the locations doesn’t have a GBP connection. If some of the locations are frozen, the data will still be provided.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.localGbp.metrics({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_ids` | `string[]` | Yes | List of identifiers of the locations for which you want to retrieve metrics. Min. is 1. Max. is 5. |
| `date_from` | `string` | Yes | Start date for the metric report. Must be within the last 24 months. Example: 2024-01-01. |
| `date_to` | `string` | Yes | End date for the metric report. Must be within the last 24 months. Example: 2024-12-01. |
| `aggregated_metrics` | `string[]` | No | List of metrics to include in the response, aggregated by the specified aggregation\_mode. At least one of aggregated\_metrics or total\_metrics must be specified. |
| `total_metrics` | `string[]` | No | List of metrics to include in the response, calculated as totals for the entire period. At least one of aggregated\_metrics or total\_metrics must be specified. |
| `aggregation_mode` | `string` | No | Aggregation period for the metrics. Supported values: DAILY, WEEKLY, MONTHLY. Default is DAILY. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   location_id?: string | null,
>   review_rating?: number | null,
>   aggregated_metrics?: {
>     report_date?: string | null,
>     metrics?: {
>       metric?: string | null,
>       value?: string | null
>     }[] | null
>   }[] | null
> }[] | null
> ```

***

### updatePost

`localGbp.updatePost`

Updates a Google Business Profile (GBP) post. Applies only to posts with the DRAFT, SCHEDULED, or TO\_SEND status. The user must have EDIT or OWNER rights for the location. Returns an error if the location is frozen or canceled. Can move a post to TO\_SEND, which publishes it on Google Business Profile.

**Risk:** `destructive`

```ts theme={null}
await corsair.semrush.api.localGbp.updatePost({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `post_id` | `string` | Yes | Unique identifier of the post to update. |
| `update_mask` | `string[]` | Yes | List of fields to be updated. Supported values: status, content, image\_urls, call\_to\_action, call\_to\_action.type, call\_to\_action.url, scheduled\_date. |
| `location_id` | `string` | Yes | Unique identifier of the location associated with the post. |
| `status` | `string` | No | New status of the post. Supported values: DRAFT, SCHEDULED, TO\_SEND. |
| `content` | `string` | No | Text content of the post. Either content or image\_urls must be specified. |
| `image_urls` | `string[]` | No | List of URLs for images included in the post. Either content or image\_urls must be specified. Max. is 1. |
| `call_to_action` | `Record<string, any>` | No | The Call to Action object with the button configuration for the post. |
| `scheduled_date` | `string \| null` | No | Date and time in UTC when the post is scheduled to be published in the "YYYY-MM-DDThh:mm:ss" format (for example, "2024-05-11T00:28:38"). Required if status is SCHEDULED; must be null otherwise. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   location_id?: string | null,
>   status?: string | null,
>   content?: string | null,
>   image_urls?: string[] | null,
>   call_to_action?: {
>     type?: string | null,
>     url?: string | null
>   } | null,
>   scheduled_date?: string | null
> } | null
> ```

***

## Local Locations

### create

`localLocations.create`

Create a location. To use this endpoint, you need a pre-paid Local Pro limit. If a location’s status results in FAILED, your Local Pro limit will be released. Uses a prepaid Semrush Local Pro location slot.

**Risk:** `destructive`

```ts theme={null}
await corsair.semrush.api.localLocations.create({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `validate_only` | `boolean` | No | Set to false by default. If set to true, the system validates the data without applying any changes. |
| `business_name` | `string` | No | Official public name of the business. Max. length is 125 characters. |
| `phone_number` | `string` | No | Primary contact phone number for the business. International format is required. For example: "+49 351 8629318", "+1 541-754-3010" |
| `country` | `string` | No | Two-letter country code where the business is located, as defined by the ISO 3166-1 code reference (the Alpha-2 code column). |
| `region` | `string` | No | Highest administrative subdivision for postal addresses in a country or region. For example, a state, province, oblast, or prefecture. |
| `city` | `string` | No | City or locality name. Max. length is 64 characters. |
| `zip` | `string` | No | Postal or ZIP code. Required for the following countries: US, AU, FR, DE, GB, CA, IN, ES, IT, NL, BR, AT, BE, DK, FI, NO, PL, SE, CH, JP, MX, IL, NZ, SG, ZA, TR, ID, VN, PK, CO, IE, BD, MY, SA, RO, CL... |
| `address_line_1` | `string` | No | Street address, including house number and street name. Max. length is 190 characters. |
| `address_line_2` | `string` | No | Supplemental address information (for example, suite, floor, or building). Max. length is 64 characters. |
| `website_url` | `string` | No | URL for the business. Must start with `https://`. If possible, use a URL specific to this location rather than a generic brand website. Max. length is 255 characters. |
| `description` | `string` | No | Detailed description of the business and its services. Min. length is 10 characters. Max. length is 750 characters. |
| `business_hours` | `Record<string, any>` | No | The Business Hours object. |
| `special_hours` | `any[]` | No | List of Special Hours objects. |
| `more_hours` | `any[]` | No | List of More Hours objects. |
| `service_area_places` | `any[]` | No | List of Service Area Place objects. |
| `category_ids` | `string[]` | No | List of category identifiers (max. 10) that describe the business and help customers find relevant services. The first category in the list is the primary category. |
| `gbp_category_ids` | `string[]` | No | List of category identifiers (max. 10) that describe the business and help customers find relevant services in GBP.The first category in the list is the primary category. |
| `gbp_attributes` | `any[]` | No | List of Attribute objects for the location (for example, wi\_fi, wheelchair\_accessible). These attributes are category-specific and provide additional details about the business. |
| `suppress_address` | `boolean` | No | If set to true, the physical address is hidden from public listings and search results. If the address is hidden, service\_area\_places must be populated to define the business’s geographic reach. |
| `coordinates` | `Record<string, any>` | No | The Coordinates object. |
| `featured_message` | `string` | No | Promotional message or announcement displayed on the business profile. Max. length is 50 characters. |
| `featured_message_url` | `string` | No | Call-to-action URL associated with the featured message. Example: "[https://www.semrush.com/local-business/start/"Max](https://www.semrush.com/local-business/start/"Max). length is 255 characters. |
| `youtube_video` | `string` | No | URL of a YouTube video showcasing the business. Example: "[https://www.youtube.com/watch?v=ndJB4J951\_k"Max](https://www.youtube.com/watch?v=ndJB4J951_k"Max). length is 150 characters. |
| `instagram_username` | `string` | No | Instagram profile handle. Example: semrushMax. length is 30 characters. |
| `twitter_username` | `string` | No | X (formerly Twitter) profile handle. Example: semrushMax. length is 15 characters. |
| `reopen_date` | `string` | No | Date ("YYYY-MM-DD") when a temporarily closed location is scheduled to reopen. This must be a future date and is only applicable if the location status is set to temporarily closed. |
| `payment_options` | `string[]` | No | Supported payment methods for the business. Identifiers must be retrieved from the Get Payment Options endpoint. |

Uses a prepaid Semrush Local Pro location slot. A 200 response does not mean the location exists yet: poll `localLocations.get` until `location_status` is `COMPLETED`. Pass `validate_only: true` to check the data without creating anything.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   validate_only?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   business_name?: string | null,
>   phone_number?: string | null,
>   country?: string | null,
>   region?: string | null,
>   city?: string | null,
>   zip?: string | null,
>   address_line_1?: string | null,
>   address_line_2?: string | null,
>   website_url?: string | null,
>   description?: string | null,
>   special_hours?: any[] | null,
>   service_area_places?: any[] | null,
>   category_ids?: string[] | null,
>   suppress_address?: boolean | null,
>   coordinates?: {
>     latitude?: number | null,
>     longitude?: number | null
>   } | null,
>   featured_message?: string | null,
>   featured_message_url?: string | null,
>   youtube_video?: string | null,
>   instagram_username?: string | null,
>   twitter_username?: string | null,
>   location_id?: string | null,
>   location_status?: string | null,
>   frozen?: boolean | null,
>   submit_date?: string | null,
>   errors?: any[] | null
> } | null
> ```

***

### createImage

`localLocations.createImage`

Adds an image to a location. If the location is frozen or the user doesn’t have permission, an error is returned. You can check if a location is frozen by checking the frozen field in the Location object.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.localLocations.createImage({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_id` | `string` | Yes | Path parameter. The ID of the location related to this image. |
| `content` | `string` | Yes | Base64-encoded image data. Supported formats: JPEG, JPG, PNG.Max. size: 4MB. |
| `type` | `string` | Yes | Intended use of the image. Supported values: PHOTO, PROFILE, COVER.Dimension constraints: COVER: 480x270 px (min) to 2120x1192 px (max) PHOTO: 270x270 px (min) to 5000x5000 px (max) PROFILE: 250x250 p... |
| `description` | `string` | No | Caption describing the image content. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   type?: string | null,
>   url?: string | null,
>   description?: string | null,
>   create_date?: string | null
> } | null
> ```

***

### delete

`localLocations.delete`

Permanently removes a location by its ID.A location can be deleted no earlier than 30 days after its creation or no earlier than 30 days after the healthcare functionality was enabled (if applicable), whichever happened later.

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.semrush.api.localLocations.delete({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_id` | `string` | Yes | Unique identifier of the location to delete. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
> } | null
> ```

***

### deleteImage

`localLocations.deleteImage`

Permanently removes an image from a location’s profile.

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.semrush.api.localLocations.deleteImage({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `image_id` | `string` | Yes | Unique identifier of the image to delete. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
> } | null
> ```

***

### disableListing

`localLocations.disableListing`

Disables a location listing. To be disabled, a listing must be controllable and have one of the following statuses: CONNECTED, SUBMITTED, or UNAVAILABLE.You can check if a listing is controllable by using the Get Listings endpoint...

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.localLocations.disableListing({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `listing_id` | `string` | Yes | Unique identifier of the listing to disable. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
> } | null
> ```

***

### enableListing

`localLocations.enableListing`

Enables a location listing. To be enabled, a listing must be controllable and have a status of DISCONNECTED.You can check if a listing is controllable by using the Get Listings endpoint and looking at the controllable field in the...

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.localLocations.enableListing({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `listing_id` | `string` | Yes | Unique identifier of the listing to enable. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
> } | null
> ```

***

### get

`localLocations.get`

Get a single location by its ID. If there is no location with the given ID, an error is returned.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.localLocations.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_id` | `string` | Yes | Path parameter. Unique identifier for this location. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   business_name?: string | null,
>   phone_number?: string | null,
>   country?: string | null,
>   region?: string | null,
>   city?: string | null,
>   zip?: string | null,
>   address_line_1?: string | null,
>   address_line_2?: string | null,
>   website_url?: string | null,
>   description?: string | null,
>   business_hours?: {
>     monday_hours?: {
>       from?: string | null,
>       to?: string | null
>     }[] | null,
>     tuesday_hours?: {
>       from?: string | null,
>       to?: string | null
>     }[] | null,
>     wednesday_hours?: {
>       from?: string | null,
>       to?: string | null
>     }[] | null,
>     thursday_hours?: {
>       from?: string | null,
>       to?: string | null
>     }[] | null,
>     friday_hours?: {
>       from?: string | null,
>       to?: string | null
>     }[] | null,
>     saturday_hours?: {
>       from?: string | null,
>       to?: string | null
>     }[] | null,
>     sunday_hours?: any[] | null
>   } | null,
>   special_hours?: {
>     type?: string | null,
>     day?: string | null,
>     times?: any[] | null
>   }[] | null,
>   service_area_places?: {
>     name?: string | null,
>     place_id?: string | null
>   }[] | null,
>   category_ids?: string[] | null,
>   suppress_address?: boolean | null,
>   coordinates?: {
>     latitude?: number | null,
>     longitude?: number | null
>   } | null,
>   featured_message?: string | null,
>   featured_message_url?: string | null,
>   youtube_video?: string | null,
>   instagram_username?: string | null,
>   twitter_username?: string | null,
>   location_id?: string | null,
>   location_status?: string | null,
>   submit_date?: string | null,
>   errors?: any[] | null
> } | null
> ```

***

### getMoreHourTypes

`localLocations.getMoreHourTypes`

Returns the list of hour types available for a specific location. Use the returned type values in the more\_hours field when updating a location.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.localLocations.getMoreHourTypes({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_id` | `string` | Yes | Unique identifier of the location for which you want to retrieve available hour types. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   more_hour_types?: string[] | null
> } | null
> ```

***

### getPaymentOptions

`localLocations.getPaymentOptions`

Returns the list of payment option identifiers available for a specific location. Use the returned values to populate the payment\_options field when updating a location.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.localLocations.getPaymentOptions({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_id` | `string` | Yes | Unique identifier of the location for which you want to retrieve payment options. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   payment_options?: string[] | null
> } | null
> ```

***

### list

`localLocations.list`

Returns a paginated list of all locations associated with the current user.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.localLocations.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_statuses` | `string[]` | No | Supported values: "COMPLETED", "PROCESSING", "FAILED" Filter locations by status. |
| `limit` | `number` | No | Maximum number of locations to be returned in a single paginated response. Default is 50. Max. is 50. |
| `offset` | `number` | No | Starting point for the subset of records to be returned. Default is 0. |
| `frozen` | `boolean` | No | Filters locations by their frozen status. If true, returns only frozen locations. If false, returns only non-frozen locations. If omitted, returns all locations regardless of frozen status. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   business_name?: string | null,
>   phone_number?: string | null,
>   country?: string | null,
>   region?: string | null,
>   city?: string | null,
>   zip?: string | null,
>   address_line_1?: string | null,
>   special_hours?: any[] | null,
>   service_area_places?: any[] | null,
>   category_ids?: string[] | null,
>   suppress_address?: boolean | null,
>   coordinates?: {
>     latitude?: number | null,
>     longitude?: number | null
>   } | null,
>   featured_message?: string | null,
>   instagram_username?: string | null,
>   twitter_username?: string | null,
>   location_id?: string | null,
>   location_status?: string | null,
>   submit_date?: string | null,
>   errors?: any[] | null,
>   website_url?: string | null,
>   description?: string | null,
>   business_hours?: {
>     monday_hours?: {
>       from?: string | null,
>       to?: string | null
>     }[] | null,
>     tuesday_hours?: any[] | null,
>     wednesday_hours?: any[] | null,
>     thursday_hours?: any[] | null,
>     friday_hours?: any[] | null,
>     saturday_hours?: any[] | null,
>     sunday_hours?: any[] | null
>   } | null
> }[] | null
> ```

***

### listCategories

`localLocations.listCategories`

Returns a paginated list of location categories supported within a specific country. These categories are used for location management across the listings and differ from GBP categories.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.localLocations.listCategories({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `country` | `string` | Yes | Filter categories by country, as defined by the ISO 3166-1 code reference (the Alpha-2 code column). |
| `limit` | `number` | No | Maximum number of categories to be returned in a single paginated response. Default is 1000. Max. is 1000. |
| `offset` | `number` | No | Starting point for the subset of records to be returned. Default is 0. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   full_name?: string | null,
>   parent_id?: string | null
> }[] | null
> ```

***

### listImages

`localLocations.listImages`

Returns a paginated list of images associated with a location. If the location is frozen or the user doesn’t have permission, an error is returned.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.localLocations.listImages({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_id` | `string` | Yes | ID of the location for which you need to get the images. |
| `image_types` | `string[]` | No | Filters results to one or more image types. Supported values: PHOTO, PROFILE, COVER. |
| `offset` | `number` | No | Starting point for the subset of records to be returned. Default is 0. |
| `limit` | `number` | No | Maximum number of images to return in a single response. Default is 50. Max. is 50. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   limit?: number | null,
>   offset?: number | null,
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   type?: string | null,
>   url?: string | null,
>   description?: string | null,
>   create_date?: string | null
> }[] | null
> ```

***

### listListings

`localLocations.listListings`

Returns the listings associated with a specific location. Use the optional listing\_statuses filter to narrow results by connection state. If the location is frozen or the user doesn’t have permission, an error is returned.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.localLocations.listListings({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_id` | `string` | Yes | Unique identifier of the location for which you want to retrieve the listings. |
| `listing_statuses` | `string[]` | No | Filters the results to listings with the specified statuses. Multiple values can be provided. Supported values: CONNECTED, SUBMITTED, UNAVAILABLE, DISCONNECTED, PROCESSING. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   status?: string | null,
>   controllable?: boolean | null,
>   url?: string | null,
>   parent_id?: string | null
> }[] | null
> ```

***

### update

`localLocations.update`

Update a single location by its ID.The Update Location endpoint follows PATCH standards. You only need to provide the fields you wish to modify. You must provide a non-empty update\_mask parameter.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.localLocations.update({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `update_mask` | `string[]` | Yes | Supported values: business\_name, address\_line\_1, address\_line\_2, city, zip, phone\_number, category\_ids, region, featured\_message, featured\_message\_url, website\_url, description, instagram\_username, tw\... |
| `validate_only` | `boolean` | No | Set to false by default. If set to true, the system validates the data without applying any changes. |
| `business_name` | `string` | No | Official public name of the business. Max. length is 125 characters. |
| `phone_number` | `string` | No | Primary contact phone number for the business. International format is required. For example: "+49 351 8629318", "+1 541-754-3010" |
| `country` | `string` | No | Two-letter country code where the business is located, as defined by the ISO 3166-1 code reference (the Alpha-2 code column). |
| `region` | `string` | No | Highest administrative subdivision for postal addresses in a country or region. For example, a state, province, oblast, or prefecture. |
| `city` | `string` | No | City or locality name. Max. length is 64 characters. |
| `zip` | `string` | No | Postal or ZIP code. Required for the following countries: US, AU, FR, DE, GB, CA, IN, ES, IT, NL, BR, AT, BE, DK, FI, NO, PL, SE, CH, JP, MX, IL, NZ, SG, ZA, TR, ID, VN, PK, CO, IE, BD, MY, SA, RO, CL... |
| `address_line_1` | `string` | No | Street address, including house number and street name. Max. length is 190 characters. |
| `address_line_2` | `string` | No | Supplemental address information (for example, suite, floor, or building). Max. length is 64 characters. |
| `website_url` | `string` | No | URL for the business. Must start with `https://`. If possible, use a URL specific to this location rather than a generic brand website. Max. length is 255 characters. |
| `description` | `string` | No | Detailed description of the business and its services. Min. length is 10 characters. Max. length is 750 characters. |
| `business_hours` | `Record<string, any>` | No | The Business Hours object. |
| `special_hours` | `any[]` | No | List of Special Hours objects. |
| `more_hours` | `any[]` | No | List of More Hours objects. |
| `service_area_places` | `any[]` | No | List of Service Area Place objects. |
| `category_ids` | `string[]` | No | List of category identifiers (max. 10) that describe the business and help customers find relevant services. The first category in the list is the primary category. |
| `gbp_category_ids` | `string[]` | No | List of category identifiers (max. 10) that describe the business and help customers find relevant services in GBP.The first category in the list is the primary category. |
| `gbp_attributes` | `any[]` | No | List of Attribute objects for the location (for example, wi\_fi, wheelchair\_accessible). These attributes are category-specific and provide additional details about the business. |
| `suppress_address` | `boolean` | No | If set to true, the physical address is hidden from public listings and search results. If the address is hidden, service\_area\_places must be populated to define the business’s geographic reach. |
| `coordinates` | `Record<string, any>` | No | The Coordinates object. |
| `featured_message` | `string` | No | Promotional message or announcement displayed on the business profile. Max. length is 50 characters. |
| `featured_message_url` | `string` | No | Call-to-action URL associated with the featured message. Example: "[https://www.semrush.com/local-business/start/"Max](https://www.semrush.com/local-business/start/"Max). length is 255 characters. |
| `youtube_video` | `string` | No | URL of a YouTube video showcasing the business. Example: "[https://www.youtube.com/watch?v=ndJB4J951\_k"Max](https://www.youtube.com/watch?v=ndJB4J951_k"Max). length is 150 characters. |
| `instagram_username` | `string` | No | Instagram profile handle. Example: semrushMax. length is 30 characters. |
| `twitter_username` | `string` | No | X (formerly Twitter) profile handle. Example: semrushMax. length is 15 characters. |
| `reopen_date` | `string` | No | Date ("YYYY-MM-DD") when a temporarily closed location is scheduled to reopen. This must be a future date and is only applicable if the location status is set to temporarily closed. |
| `payment_options` | `string[]` | No | Supported payment methods for the business. Identifiers must be retrieved from the Get Payment Options endpoint. |
| `location_id` | `string` | Yes | Path identifier. |

`update_mask` lists the fields to write; a field must appear in both `update_mask` and the input to change.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   update_mask?: string[] | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   business_name?: string | null,
>   phone_number?: string | null,
>   country?: string | null,
>   region?: string | null,
>   city?: string | null,
>   zip?: string | null,
>   address_line_1?: string | null,
>   website_url?: string | null,
>   description?: string | null,
>   special_hours?: any[] | null,
>   service_area_places?: {
>     name?: string | null,
>     place_id?: string | null
>   }[] | null,
>   category_ids?: string[] | null,
>   suppress_address?: boolean | null,
>   coordinates?: {
>     latitude?: number | null,
>     longitude?: number | null
>   } | null,
>   instagram_username?: string | null,
>   twitter_username?: string | null,
>   location_id?: string | null,
>   location_status?: string | null,
>   submit_date?: string | null,
>   errors?: any[] | null
> } | null
> ```

***

### updateImage

`localLocations.updateImage`

Updates the metadata of an existing location image, such as its caption.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.localLocations.updateImage({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `image_id` | `string` | Yes | Unique identifier of the image to update. |
| `description` | `string` | No | Caption describing the image content. Max. length is 255 characters. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   type?: string | null,
>   url?: string | null,
>   description?: string | null,
>   create_date?: string | null
> } | null
> ```

***

## Local Reviews

### addComment

`localReviews.addComment`

Adds a comment to a review, either as a top-level reply or as a response to an existing comment. The supports\_reply field on the Review object indicates whether replying to a specific review is supported by its publisher. Publishes a public reply on the review site.

**Risk:** `destructive`

```ts theme={null}
await corsair.semrush.api.localReviews.addComment({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `review_id` | `string` | Yes | Unique identifier of the review to add a comment to. |
| `location_id` | `string` | Yes | Unique identifier of the location the review belongs to. |
| `content` | `string` | Yes | Text of the comment. Max. length is 2000 characters. |

Publishes a public reply on the review site (Google, Facebook...). Check the review's `supports_reply` first.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   publish_date?: string | null,
>   author_name?: string | null,
>   content?: string | null,
>   by_owner?: boolean | null,
>   auto_reply?: boolean | null
> } | null
> ```

***

### deleteComment

`localReviews.deleteComment`

Permanently removes a comment from a review. The supports\_comment\_removal field on the Review object indicates whether removing comments is supported by its publisher.

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.semrush.api.localReviews.deleteComment({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `comment_id` | `string` | Yes | Unique identifier of the comment to delete. |
| `review_id` | `string` | Yes | Unique identifier of the review the comment belongs to. |
| `location_id` | `string` | Yes | Unique identifier of the location the review belongs to. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
> } | null
> ```

***

### getAutoReplyConfig

`localReviews.getAutoReplyConfig`

Returns the review auto-reply settings configured for a specific location.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.localReviews.getAutoReplyConfig({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_id` | `string` | Yes | Unique identifier of the location for which you want to retrieve the review auto-reply settings. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   location_id?: string | null,
>   reply_to_positive_reviews?: boolean | null,
>   reply_to_negative_reviews?: boolean | null,
>   language_strategy?: string | null,
>   reply_tone?: string | null,
>   preferred_language_code?: string | null
> } | null
> ```

***

### list

`localReviews.list`

Returns a paginated list of reviews for a specific location. If the location is frozen or the user doesn’t have permission, an error is returned.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.localReviews.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_id` | `string` | Yes | Unique identifier of the location for which you want to retrieve the reviews. |
| `answered` | `boolean` | No | Filters the results by whether the reviews have been replied to. |
| `auto_replied` | `boolean` | No | Filters the results by whether the reviews were replied to automatically. |
| `ratings` | `string[]` | No | Filters the results to reviews with the specified star ratings. Multiple values can be provided. Supported values: 0, 1, 2, 3, 4, 5. |
| `offset` | `number` | No | Starting point for the subset of records to be returned. Default is 0. |
| `limit` | `number` | No | Maximum number of reviews to be returned in a single paginated response. Default is 50. Max. is 250. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   limit?: number | null,
>   offset?: number | null,
>   total?: number | null,
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   location_id?: string | null,
>   title?: string | null,
>   content?: string | null,
>   rating?: number | null,
>   author_name?: string | null,
>   publish_date?: string | null,
>   publisher?: {
>     name?: string | null
>   } | null,
>   url?: string | null,
>   supports_reply?: boolean | null,
>   supports_comment_edit?: boolean | null,
>   supports_comment_removal?: boolean | null,
>   comments?: {
>     id?: string | null,
>     parent_id?: string | null,
>     author_name?: string | null,
>     content?: string | null,
>     publish_date?: string | null,
>     by_owner?: boolean | null,
>     auto_reply?: boolean | null
>   }[] | null
> }[] | null
> ```

***

### overview

`localReviews.overview`

Returns an overview of the reviews for a specific location, including review counts, rating distribution, and reply statistics. If the location is frozen or the user doesn’t have permission, an error is returned.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.localReviews.overview({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_id` | `string` | Yes | Unique identifier of the location for which you want to retrieve the review overview. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   auto_replied_count?: number | null,
>   average_rating?: number | null,
>   not_replied_count?: number | null,
>   rating_distribution?: {
>     five_stars_count?: number | null,
>     four_stars_count?: number | null,
>     three_stars_count?: number | null,
>     two_stars_count?: number | null,
>     one_star_count?: number | null,
>     no_rating_count?: number | null
>   } | null,
>   total_count?: number | null
> } | null
> ```

***

### updateAutoReplyConfig

`localReviews.updateAutoReplyConfig`

Replaces the review auto-reply settings for a specific location. Omitted body parameters are reset to their default values. With reply\_to\_positive\_reviews or reply\_to\_negative\_reviews on, Semrush publishes public replies to new reviews.

**Risk:** `destructive`

```ts theme={null}
await corsair.semrush.api.localReviews.updateAutoReplyConfig({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_id` | `string` | Yes | Unique identifier of the location for which you want to update the review auto-reply settings. |
| `reply_to_positive_reviews` | `boolean` | No | Enables or disables automatic replies for positive reviews (4 and 5 stars). Default value: false. |
| `reply_to_negative_reviews` | `boolean` | No | Enables or disables automatic replies for negative reviews (1, 2, and 3 stars) and reviews without a rating. Default value: false. |
| `language_strategy` | `string` | No | Strategy for selecting the language of the generated reply. Supported values: SPECIFIC\_LANGUAGE, REVIEW\_LANGUAGE. Default value: SPECIFIC\_LANGUAGE. |
| `reply_tone` | `string` | No | Desired tone of the generated reply. Supported values: FRIENDLY, PROFESSIONAL, CALM, ENERGETIC. Default value: FRIENDLY. |
| `preferred_language_code` | `string` | No | Language of the generated reply. Used only when language\_strategy is SPECIFIC\_LANGUAGE. If not provided, defaults to AUTO, and the system selects the location’s country language. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   location_id?: string | null,
>   reply_to_positive_reviews?: boolean | null,
>   reply_to_negative_reviews?: boolean | null,
>   language_strategy?: string | null,
>   reply_tone?: string | null,
>   preferred_language_code?: string | null
> } | null
> ```

***

### updateComment

`localReviews.updateComment`

Updates the text of an existing comment on a review. The supports\_comment\_edit field on the Review object indicates whether editing comments is supported by its publisher. Changes a public reply on the review site.

**Risk:** `destructive`

```ts theme={null}
await corsair.semrush.api.localReviews.updateComment({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `comment_id` | `string` | Yes | Unique identifier of the comment to update. |
| `review_id` | `string` | Yes | Unique identifier of the review the comment belongs to. |
| `location_id` | `string` | Yes | Unique identifier of the location the review belongs to. |
| `content` | `string` | Yes | Updated text of the comment. Max. length is 2000 characters. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   parent_id?: string | null,
>   publish_date?: string | null,
>   author_name?: string | null,
>   content?: string | null,
>   by_owner?: boolean | null,
>   auto_reply?: boolean | null
> } | null
> ```

***

## Map Rank Tracker

### collect

`mapRankTracker.collect`

This method consumes Map Rank Tracker credits equal to the number of points in the grid, multiplied by the number of keywords in the Map Rank Tracker campaign. Requests to this method don’t use up API units. Spends Map Rank Tracker credits (grid points x keywords).

**Risk:** `destructive`

```ts theme={null}
await corsair.semrush.api.mapRankTracker.collect({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Unique ID of the campaign to collect data for. |
| `reportDate` | `string` | No | Specific timestamp to associate with this report (ISO 8601 format). If omitted, the current server time is used. |

Spends Map Rank Tracker credits: grid points multiplied by the campaign's keywords. `mapRankTracker.limits` shows the remaining credits.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   collectingReportDate?: string | null
> } | null
> ```

***

### createCampaign

`mapRankTracker.createCampaign`

Create a new Map Rank Tracker campaign to track a business’s visibility across a specific geographic area.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.mapRankTracker.createCampaign({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `placeId` | `string` | Yes | The unique Google Place ID of the business to track. How to find a Place ID: To find a Place ID, use Google’s Place ID Finder tool. |
| `keywords` | `string[]` | Yes | List of keywords to track. Min: 1 keyword Max: 100 keywords Max length per keyword: 255 characters |
| `name` | `string` | No | Custom name for the campaign. If not provided, the business name associated with the placeId will be used. |
| `gridSettings` | `object` | No | Configuration for generating the tracking grid. Cannot be used with points . |
| `points` | `object[]` | No | Custom list of precise coordinates to track. Cannot be used with gridSettings . |
| `collectingFrequency` | `object` | No | Configuration for automatic data collection. If omitted, manual collection is used. |

> [accordion] gridSettings full type
>
> ```ts theme={null}
> {
>   template: string,
>   unit: string,
>   distance: number,
>   basePoint?: {
>     lat: number,
>     lng: number
>   }
> }
> ```

> [accordion] points full type
>
> ```ts theme={null}
> {
>   index: number,
>   isEnabled?: boolean,
>   coordinates: {
>     lat: number,
>     lng: number
>   }
> }[]
> ```

> [accordion] collectingFrequency full type
>
> ```ts theme={null}
> {
>   frequency: string,
>   interval: number,
>   positions: any[],
>   time?: string,
>   enable?: boolean
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   sharingStatus?: {
>     accessType?: string | null,
>     ownerEmail?: string | null,
>     sharesCount?: number | null
>   } | null,
>   collectingFrequency?: {
>     frequency?: string | null,
>     positions?: number[] | null,
>     enable?: boolean | null
>   } | null,
>   keywords?: {
>     id?: string | null,
>     name?: string | null
>   }[] | null,
>   gridSettings?: {
>     template?: string | null,
>     unit?: string | null,
>     distance?: number | null,
>     basePoint?: {
>       lat?: number | null,
>       lng?: number | null
>     } | null
>   } | null,
>   nextReportDate?: string | null,
>   points?: {
>     id?: string | null,
>     index?: number | null,
>     isEnabled?: boolean | null,
>     coordinates?: {
>       lat?: number | null,
>       lng?: number | null
>     } | null
>   }[] | null,
>   countryCode?: string | null,
>   business?: {
>     cid?: string | null,
>     placeIds?: string[] | null,
>     name?: string | null,
>     address?: string | null,
>     rating?: number | null,
>     reviewNumber?: number | null,
>     coordinates?: {
>       lat?: number | null,
>       lng?: number | null
>     } | null
>   } | null,
>   createdAt?: string | null,
>   status?: string | null,
>   statusUpdatedAt?: string | null,
>   projectMetrics?: {
>   } | null,
>   name?: string | null
> } | null
> ```

***

### deleteCampaign

`mapRankTracker.deleteCampaign`

Delete an existing Map Rank Tracker campaign identified by the campaignId. This action permanently removes the campaign and all collected data. Requests to this method don’t use up API units.

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.semrush.api.mapRankTracker.deleteCampaign({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Unique ID of the campaign to delete. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
> } | null
> ```

***

### getCampaign

`mapRankTracker.getCampaign`

Get detailed information about a specific Map Rank Tracker campaign identified by the campaignId. Requests to this method don’t use up API units. The Map Rank Tracker API requires a Version 4 API key.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.mapRankTracker.getCampaign({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Unique ID of the campaign. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   userId?: string | null,
>   collectingFrequency?: {
>     frequency?: string | null,
>     positions?: number[] | null,
>     enable?: boolean | null
>   } | null,
>   keywords?: {
>     id?: string | null,
>     name?: string | null
>   }[] | null,
>   gridSettings?: {
>     template?: string | null,
>     unit?: string | null,
>     distance?: number | null,
>     basePoint?: {
>       lat?: number | null,
>       lng?: number | null
>     } | null
>   } | null,
>   lastReportDate?: string | null,
>   nextReportDate?: string | null,
>   reportDates?: string[] | null,
>   points?: {
>     id?: string | null,
>     index?: number | null,
>     isEnabled?: boolean | null,
>     coordinates?: {
>       lat?: number | null,
>       lng?: number | null
>     } | null
>   }[] | null,
>   countryCode?: string | null,
>   business?: {
>     cid?: string | null,
>     placeIds?: string[] | null,
>     name?: string | null,
>     address?: string | null,
>     rating?: number | null,
>     reviewNumber?: number | null,
>     coordinates?: {
>       lat?: number | null,
>       lng?: number | null
>     } | null
>   } | null,
>   createdAt?: string | null,
>   status?: string | null,
>   statusUpdatedAt?: string | null,
>   name?: string | null
> } | null
> ```

***

### heatmap

`mapRankTracker.heatmap`

Get a heatmap report for a specific Map Rank Tracker campaign and keyword on a given date. Requests to this method don’t use up API units. The Map Rank Tracker API requires a Version 4 API key. Learn how to authorize requests ›

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.mapRankTracker.heatmap({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Unique ID of the campaign. |
| `keywordId` | `string` | Yes | Unique ID of the keyword. |
| `cid` | `string` | No | Business ID. Either cid or placeIds must be specified. |
| `placeIds` | `string` | No | List of unique place IDs associated with the business. Either cid or placeIds must be specified. |
| `reportDate` | `string` | Yes | Date for which the heatmap report is generated. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keyword?: {
>     id?: string | null,
>     name?: string | null
>   } | null,
>   date?: string | null,
>   positions?: {
>     point?: {
>       id?: string | null,
>       coordinates?: {
>         lat?: number | null,
>         lng?: number | null
>       } | null
>     } | null,
>     position?: number | null,
>     diff?: number | null
>   }[] | null
> } | null
> ```

***

### keywordStatuses

`mapRankTracker.keywordStatuses`

Get detailed keyword-related information for a specific Map Rank Tracker campaign. Requests to this method don’t use up API units. The Map Rank Tracker API requires a Version 4 API key. Learn how to authorize requests ›

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.mapRankTracker.keywordStatuses({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Unique ID of the campaign. |
| `reportDate` | `string` | No | Date for which the heatmap report is generated. If not provided, the latest report date is used. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keywords?: {
>     keyword?: {
>       id?: string | null,
>       name?: string | null
>     } | null,
>     status?: string | null
>   }[] | null
> } | null
> ```

***

### limits

`mapRankTracker.limits`

Get the current usage and available limits for Map Rank Tracker campaigns and Map Rank Tracker credits for given user account. Requests to this method don’t use up API units. The Map Rank Tracker API requires a Version 4 API key.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.mapRankTracker.limits({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   campaigns?: {
>     available?: number | null,
>     inUse?: number | null,
>     total?: number | null
>   } | null,
>   credits?: {
>     available?: number | null,
>     spentThisMonth?: number | null,
>     total?: number | null
>   } | null
> } | null
> ```

***

### listCampaigns

`mapRankTracker.listCampaigns`

Get a paginated list of Map Rank Tracker campaigns with optional filtering based on the search query. Requests to this method don’t use up API units. The Map Rank Tracker API requires a Version 4 API key.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.mapRankTracker.listCampaigns({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `page` | `number` | No | Page index. Default value: 0. |
| `size` | `number` | No | Size of the page to be returned. Default value: 10. |
| `sort` | `string` | No | Field for sorting the result. Possible fields: createdAt, businessName. Possible directions: ASC, DESC.Example: sort=businessName,ASCDefault value: sort=createdAt,DESC |
| `query` | `string` | No | Search query to filter campaigns by name or business address. Max. length: 255 characters. |
| `onlyMarkedForRemoval` | `boolean` | No | If set to true, only campaigns marked for removal are returned. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   content?: {
>     id?: string | null,
>     userId?: string | null,
>     keywordsNumber?: number | null,
>     pointsNumber?: number | null,
>     gridSettings?: {
>       template?: string | null,
>       unit?: string | null,
>       distance?: number | null,
>       basePoint?: {
>         lat?: number | null,
>         lng?: number | null
>       } | null
>     } | null,
>     countryCode?: string | null,
>     business?: {
>       cid?: string | null,
>       placeIds?: string[] | null,
>       name?: string | null,
>       address?: string | null,
>       rating?: number | null,
>       reviewNumber?: number | null,
>       coordinates?: {
>         lat?: number | null,
>         lng?: number | null
>       } | null
>     } | null,
>     projectMetrics?: {
>       averagePosition?: number | null,
>       averagePositionDiff?: number | null,
>       averageShareOfVoice?: number | null,
>       averageShareOfVoiceDiff?: number | null
>     } | null,
>     name?: string | null,
>     lastReportDate?: string | null,
>     status?: string | null,
>     createdAt?: string | null,
>     nextReportDate?: string | null
>   }[] | null,
>   pageable?: {
>     pageNumber?: number | null,
>     pageSize?: number | null,
>     sort?: {
>       empty?: boolean | null,
>       unsorted?: boolean | null,
>       sorted?: boolean | null
>     } | null,
>     offset?: number | null,
>     paged?: boolean | null,
>     unpaged?: boolean | null
>   } | null,
>   last?: boolean | null,
>   totalPages?: number | null,
>   totalElements?: number | null,
>   first?: boolean | null,
>   size?: number | null,
>   number?: number | null,
>   sort?: {
>     empty?: boolean | null,
>     unsorted?: boolean | null,
>     sorted?: boolean | null
>   } | null,
>   numberOfElements?: number | null,
>   empty?: boolean | null
> } | null
> ```

***

### metrics

`mapRankTracker.metrics`

Get metrics such as average positions and shares of voice for a specific Map Rank Tracker campaign and keyword. Requests to this method don’t use up API units. The Map Rank Tracker API requires a Version 4 API key.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.mapRankTracker.metrics({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Unique ID of the campaign. |
| `keywordId` | `string` | Yes | Unique ID of the keyword. If you provide an incorrect keywordId, you will get the default values for average position (21) and share of voice (0). |
| `cid` | `string` | No | Business ID. Either cid or place\_ids must be specified. |
| `place_ids` | `string` | No | List of unique place IDs associated with the business. Either cid or place\_ids must be specified. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   average_positions?: Record<string, number | null> | null,
>   share_of_voices?: Record<string, number | null> | null
> } | null
> ```

***

### topCompetitors

`mapRankTracker.topCompetitors`

Get the main business information and a list of the top competitors for a specific Map Rank Tracker campaign and keyword, including their average position and share of voice. Requests to this method don’t use up API units.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.mapRankTracker.topCompetitors({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Unique ID of the campaign. |
| `keywordId` | `string` | Yes | Unique ID of the keyword. |
| `reportDate` | `string` | Yes | Date and time in the ISO-8601 format for which the heatmap report was generated. If you provide an incorrect reportDate, you will get an empty list of competitors. |
| `page` | `number` | No | Page index. Default value: 0. |
| `size` | `number` | No | Size of the page to be returned. Default value: 10. |
| `sort` | `string` | No | Field for sorting the results. Possible fields: averagePosition, name, rating, reviewNumber, shareOfVoice. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   business?: {
>     business?: {
>       cid?: string | null,
>       placeIds?: string[] | null,
>       name?: string | null,
>       address?: string | null,
>       rating?: number | null,
>       reviewNumber?: number | null,
>       coordinates?: {
>         lat?: number | null,
>         lng?: number | null
>       } | null
>     } | null,
>     averagePosition?: number | null,
>     shareOfVoice?: number | null
>   } | null,
>   competitors?: {
>     content?: {
>       business?: {
>         cid?: string | null,
>         placeIds?: string[] | null,
>         name?: string | null,
>         address?: string | null,
>         rating?: number | null,
>         reviewNumber?: number | null,
>         coordinates?: {
>           lat?: number | null,
>           lng?: number | null
>         } | null
>       } | null,
>       averagePosition?: number | null,
>       shareOfVoice?: number | null
>     }[] | null,
>     pageable?: {
>       pageNumber?: number | null,
>       pageSize?: number | null,
>       sort?: {
>         empty?: boolean | null,
>         unsorted?: boolean | null,
>         sorted?: boolean | null
>       } | null,
>       offset?: number | null,
>       paged?: boolean | null,
>       unpaged?: boolean | null
>     } | null,
>     last?: boolean | null,
>     totalPages?: number | null,
>     totalElements?: number | null,
>     first?: boolean | null,
>     size?: number | null,
>     number?: number | null,
>     sort?: {
>       empty?: boolean | null,
>       unsorted?: boolean | null,
>       sorted?: boolean | null
>     } | null,
>     numberOfElements?: number | null,
>     empty?: boolean | null
>   } | null
> } | null
> ```

***

### updateCampaign

`mapRankTracker.updateCampaign`

Update an existing Map Rank Tracker campaign. This is a PATCH request, meaning it performs a partial update. Only the fields explicitly included in the request payload will be modified. All other fields will remain unchanged.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.mapRankTracker.updateCampaign({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Unique ID of the campaign to be updated (passed in the URL path). |
| `keywords` | `string[]` | No | Optional. List of keywords to track. Providing this list will completely replace the campaign’s existing keywords. Max: 100 keywords Max length per keyword: 255 characters |
| `name` | `string` | No | Optional. Custom name for the campaign. |
| `gridSettings` | `object` | No | Optional. Configuration for generating a new tracking grid. Cannot be used with points . |
| `points` | `object[]` | No | Optional. Custom list of precise coordinates to track. Cannot be used with gridSettings . |
| `collectingFrequency` | `object` | No | Optional. Updated schedule settings for automatic data collection. |

> [accordion] gridSettings full type
>
> ```ts theme={null}
> {
>   template: string,
>   unit: string,
>   distance: number,
>   basePoint?: {
>     lat: number,
>     lng: number
>   }
> }
> ```

> [accordion] points full type
>
> ```ts theme={null}
> {
>   index: number,
>   isEnabled?: boolean,
>   coordinates: {
>     lat: number,
>     lng: number
>   }
> }[]
> ```

> [accordion] collectingFrequency full type
>
> ```ts theme={null}
> {
>   frequency?: string,
>   interval?: number,
>   positions?: any[],
>   time?: string,
>   enable?: boolean
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   sharingStatus?: {
>     accessType?: string | null,
>     ownerEmail?: string | null,
>     sharesCount?: number | null
>   } | null,
>   collectingFrequency?: {
>     frequency?: string | null,
>     positions?: number[] | null,
>     enable?: boolean | null
>   } | null,
>   keywords?: {
>     id?: string | null,
>     name?: string | null
>   }[] | null,
>   gridSettings?: {
>     template?: string | null,
>     unit?: string | null,
>     distance?: number | null,
>     basePoint?: {
>       lat?: number | null,
>       lng?: number | null
>     } | null
>   } | null,
>   nextReportDate?: string | null,
>   points?: {
>     id?: string | null,
>     index?: number | null,
>     isEnabled?: boolean | null,
>     coordinates?: {
>       lat?: number | null,
>       lng?: number | null
>     } | null
>   }[] | null,
>   countryCode?: string | null,
>   business?: {
>     cid?: string | null,
>     placeIds?: string[] | null,
>     name?: string | null,
>     address?: string | null,
>     rating?: number | null,
>     reviewNumber?: number | null,
>     coordinates?: {
>       lat?: number | null,
>       lng?: number | null
>     } | null
>   } | null,
>   createdAt?: string | null,
>   status?: string | null,
>   statusUpdatedAt?: string | null,
>   projectMetrics?: {
>   } | null,
>   name?: string | null
> } | null
> ```

***

## Organic Search

### competitorsMonthly

`organicSearch.competitorsMonthly`

List monthly organic search competitors with common keywords and competition density

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.organicSearch.competitorsMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   domain?: string | null,
>   common_keywords?: number | null,
>   competition_density?: number | null,
>   organic_positions?: number | null,
>   organic_traffic?: number | null,
>   organic_traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   adwords_positions?: number | null,
>   serp_features_positions?: number | null,
>   serp_features_traffic?: number | null,
>   serp_features_traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   positions?: number | null,
>   traffic?: number | null,
>   traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null
> }[]
> ```

***

### competitorsMonthlyTotal

`organicSearch.competitorsMonthlyTotal`

Get the total count of organic search competitors for a domain

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.organicSearch.competitorsMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### keywordsChangesMonthly

`organicSearch.keywordsChangesMonthly`

Compare monthly organic keyword position changes (new, lost, improved, declined) between two months

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.organicSearch.keywordsChangesMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `base_month` | `string` | Yes | — |
| `comparison_month` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `position_type` | `ORGANIC \| SERP_FEATURE` | No | — |
| `change_types` | `(NEW \| LOST \| IMPROVED \| DECLINED \| UNCHANGED)[]` | No | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keyword?: string | null,
>   url?: string | null,
>   volume?: number | null,
>   position?: number | null,
>   position_previous?: number | null,
>   position_difference?: number | null,
>   change_type?: string | null,
>   traffic?: number | null,
>   traffic_previous?: number | null,
>   traffic_difference?: number | null,
>   traffic_difference_abs?: number | null,
>   traffic_percent?: number | null,
>   traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   traffic_cost_previous?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   traffic_cost_percent?: number | null,
>   competition_density?: number | null,
>   cpc?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   keyword_difficulty?: number | null,
>   results?: number | null,
>   position_type?: string | null,
>   is_serp_feature?: boolean | null,
>   keyword_serp_features_new?: string[] | null,
>   keyword_serp_features_lost?: string[] | null,
>   intents?: string[] | null,
>   is_keyword_branded?: boolean | null,
>   is_branded?: boolean | null
> }[]
> ```

***

### keywordsChangesMonthlyTotal

`organicSearch.keywordsChangesMonthlyTotal`

Get the total count of organic keyword position changes between two months

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.organicSearch.keywordsChangesMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `base_month` | `string` | Yes | — |
| `comparison_month` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `position_type` | `ORGANIC \| SERP_FEATURE` | No | — |
| `change_types` | `(NEW \| LOST \| IMPROVED \| DECLINED \| UNCHANGED)[]` | No | — |
| `filter` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### keywordsMonthly

`organicSearch.keywordsMonthly`

List monthly organic keyword rankings, positions, traffic, and SERP features for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.organicSearch.keywordsMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |
| `position_type` | `ORGANIC \| SERP_FEATURE` | No | — |

Monthly snapshots support `limit` up to `5000` with `offset + limit <= 500000`.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keyword?: string | null,
>   volume?: number | null,
>   position?: number | null,
>   traffic?: number | null,
>   traffic_percent?: number | null,
>   traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   traffic_cost_percent?: number | null,
>   traffic_difference?: number | null,
>   traffic_difference_abs?: number | null,
>   cpc?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   competition_density?: number | null,
>   keyword_difficulty?: number | null,
>   results?: number | null,
>   url?: string | null,
>   domain?: string | null,
>   is_keyword_branded?: boolean | null,
>   is_serp_feature?: boolean | null,
>   type?: string | null,
>   position_previous?: number | null,
>   position_difference?: number | null,
>   keyword_serp_features?: string[] | null,
>   position_serp_features?: string[] | null,
>   intents?: string[] | null,
>   trends?: number[] | null
> }[]
> ```

***

### keywordsMonthlyTotal

`organicSearch.keywordsMonthlyTotal`

Get the total count of organic keyword positions for a target in a country and month

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.organicSearch.keywordsMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |
| `position_type` | `ORGANIC \| SERP_FEATURE` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### pagesChangesMonthly

`organicSearch.pagesChangesMonthly`

Compare monthly organic traffic and keyword changes per URL between two months

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.organicSearch.pagesChangesMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `base_month` | `string` | Yes | — |
| `comparison_month` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   url?: string | null,
>   organic_positions?: number | null,
>   organic_traffic?: number | null,
>   adwords_positions?: number | null,
>   positions?: number | null,
>   positions_previous?: number | null,
>   positions_difference?: number | null,
>   positions_difference_abs?: number | null,
>   traffic?: number | null,
>   traffic_previous?: number | null,
>   traffic_difference?: number | null,
>   traffic_difference_abs?: number | null,
>   traffic_percent?: number | null,
>   serp_features_positions?: number | null,
>   serp_features_traffic?: number | null,
>   intent_breakdown?: {
>     top_20?: {
>       commercial?: {
>         positions?: number | null,
>         traffic?: number | null
>       } | null,
>       informational?: {
>         positions?: number | null,
>         traffic?: number | null
>       } | null,
>       navigational?: {
>         positions?: number | null,
>         traffic?: number | null
>       } | null,
>       transactional?: {
>         positions?: number | null,
>         traffic?: number | null
>       } | null,
>       unknown?: {
>         positions?: number | null,
>         traffic?: number | null
>       } | null
>     } | null
>   } | null
> }[]
> ```

***

### pagesChangesMonthlyTotal

`organicSearch.pagesChangesMonthlyTotal`

Get the total count of changed organic pages between two months

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.organicSearch.pagesChangesMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `base_month` | `string` | Yes | — |
| `comparison_month` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### pagesMonthly

`organicSearch.pagesMonthly`

List monthly organic top-performing pages for a target with traffic share and intent breakdown

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.organicSearch.pagesMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   url?: string | null,
>   organic_positions?: number | null,
>   organic_traffic?: number | null,
>   adwords_positions?: number | null,
>   serp_features_positions?: number | null,
>   serp_features_traffic?: number | null,
>   positions?: number | null,
>   traffic?: number | null,
>   traffic_percent?: number | null,
>   intent_breakdown?: {
>     top_20?: {
>       commercial?: {
>         positions?: number | null,
>         traffic?: number | null
>       } | null,
>       informational?: {
>         positions?: number | null,
>         traffic?: number | null
>       } | null,
>       navigational?: {
>         positions?: number | null,
>         traffic?: number | null
>       } | null,
>       transactional?: {
>         positions?: number | null,
>         traffic?: number | null
>       } | null,
>       unknown?: {
>         positions?: number | null,
>         traffic?: number | null
>       } | null
>     } | null
>   } | null
> }[]
> ```

***

### pagesMonthlyTotal

`organicSearch.pagesMonthlyTotal`

Get the total count of organically ranked pages for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.organicSearch.pagesMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### rankingsTrendMonthly

`organicSearch.rankingsTrendMonthly`

Get historical monthly organic position and traffic trends across a date range

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.organicSearch.rankingsTrendMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `date_from` | `string` | Yes | — |
| `date_to` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   month?: string | null,
>   organic_positions?: number | null,
>   organic_traffic?: number | null,
>   traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   serp_features_positions?: number | null
> }[]
> ```

***

### serpResultsMonthly

`organicSearch.serpResultsMonthly`

Get monthly top organic SERP results and traffic estimates for a keyword

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.organicSearch.serpResultsMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `keyword` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `month` | `string` | No | — |
| `position_type` | `ORGANIC \| SERP_FEATURE` | No | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   position?: number | null,
>   domain?: string | null,
>   url?: string | null,
>   traffic?: number | null,
>   traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   keyword_serp_features?: string[] | null,
>   position_serp_features?: string[] | null
> }[]
> ```

***

### subdomainsMonthly

`organicSearch.subdomainsMonthly`

List monthly organic keyword and traffic breakdown across subdomains of a root domain

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.organicSearch.subdomainsMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   subdomain?: string | null,
>   organic_positions?: number | null,
>   organic_traffic?: number | null,
>   organic_traffic_percent?: number | null,
>   serp_features_positions?: number | null,
>   serp_features_traffic?: number | null,
>   serp_features_traffic_percent?: number | null,
>   positions?: number | null,
>   traffic?: number | null,
>   traffic_percent?: number | null
> }[]
> ```

***

### subdomainsMonthlyTotal

`organicSearch.subdomainsMonthlyTotal`

Get the total count of subdomains with organic rankings for a domain

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.organicSearch.subdomainsMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

## Paid Search

### advertisementsMonthly

`paidSearch.advertisementsMonthly`

List monthly Google Ads text advertisements and landing pages for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.advertisementsMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   url?: string | null,
>   url_visible?: string | null,
>   title?: string | null,
>   description?: string | null,
>   ad_id?: string | null,
>   keyword?: string | null,
>   positions?: number | null,
>   crawled_time?: string | null
> }[]
> ```

***

### advertisementsMonthlyTotal

`paidSearch.advertisementsMonthlyTotal`

Get the total count of monthly paid search advertisements for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.advertisementsMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### competitorsMonthly

`paidSearch.competitorsMonthly`

List monthly paid search competitors bidding on overlapping keywords

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.competitorsMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   domain?: string | null,
>   competition_density?: number | null,
>   common_keywords?: number | null,
>   adwords_positions?: number | null,
>   adwords_traffic?: number | null,
>   adwords_traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   organic_positions?: number | null
> }[]
> ```

***

### competitorsMonthlyTotal

`paidSearch.competitorsMonthlyTotal`

Get the total count of monthly paid search competitors

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.competitorsMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### coverage12Month

`paidSearch.coverage12Month`

Get 12-month paid search keyword coverage history and best monthly ad positions

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.coverage12Month({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keyword?: string | null,
>   coverage_12m?: number | null,
>   volume?: number | null,
>   cpc?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   traffic?: number | null,
>   url?: string | null,
>   url_visible?: string | null,
>   title?: string | null,
>   best_positions?: {
>     month?: string | null,
>     position?: number | null
>   }[] | null
> }[]
> ```

***

### coverage12MonthTotal

`paidSearch.coverage12MonthTotal`

Get the total count of keywords in 12-month paid search coverage

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.coverage12MonthTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### keywordAdvertisementsMonthly

`paidSearch.keywordAdvertisementsMonthly`

List monthly Google Ads copy creatives triggered by a specific keyword

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.keywordAdvertisementsMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `keyword` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `month` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   domain?: string | null,
>   url?: string | null,
>   url_visible?: string | null,
>   block?: string | null,
>   title?: string | null,
>   description?: string | null,
>   crawled_time?: string | null,
>   positions?: number | null
> }[]
> ```

***

### keywordAdvertisementsMonthlyTotal

`paidSearch.keywordAdvertisementsMonthlyTotal`

Get the total count of monthly paid advertisements for a keyword

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.keywordAdvertisementsMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `keyword` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `month` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### keywordAdvertisersMonthly

`paidSearch.keywordAdvertisersMonthly`

List monthly advertisers bidding on a specific keyword with estimated ad traffic

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.keywordAdvertisersMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `keyword` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `month` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   domain?: string | null,
>   position?: number | null,
>   positions?: number | null,
>   traffic?: number | null,
>   traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   title?: string | null,
>   description?: string | null,
>   url?: string | null,
>   url_visible?: string | null
> }[]
> ```

***

### keywordAdvertisersMonthlyTotal

`paidSearch.keywordAdvertisersMonthlyTotal`

Get the total count of monthly advertisers bidding on a keyword

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.keywordAdvertisersMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `keyword` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `month` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### keywordsChangesMonthly

`paidSearch.keywordsChangesMonthly`

List monthly paid search keyword position changes for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.keywordsChangesMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `change_types` | `(NEW \| LOST \| IMPROVED \| DECLINED \| UNCHANGED)[]` | No | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keyword?: string | null,
>   change_type?: string | null,
>   position?: number | null,
>   position_difference?: number | null,
>   position_previous?: number | null,
>   block?: string | null,
>   volume?: number | null,
>   cpc?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   traffic?: number | null,
>   traffic_percent?: number | null,
>   traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   traffic_cost_percent?: number | null,
>   traffic_difference?: number | null,
>   traffic_difference_abs?: number | null,
>   competition_density?: number | null,
>   results?: number | null,
>   keyword_difficulty?: number | null,
>   title?: string | null,
>   description?: string | null,
>   url?: string | null,
>   url_visible?: string | null,
>   ad_id?: string | null,
>   crawled_time?: string | null,
>   trends?: number[] | null
> }[]
> ```

***

### keywordsChangesMonthlyTotal

`paidSearch.keywordsChangesMonthlyTotal`

Get the total count of monthly paid search keyword position changes for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.keywordsChangesMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `change_types` | `(NEW \| LOST \| IMPROVED \| DECLINED \| UNCHANGED)[]` | No | — |
| `filter` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### keywordsMonthly

`paidSearch.keywordsMonthly`

List monthly paid search keywords, ad positions, CPC, and traffic for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.keywordsMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keyword?: string | null,
>   position?: number | null,
>   position_previous?: number | null,
>   position_difference?: number | null,
>   volume?: number | null,
>   block?: string | null,
>   cpc?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   traffic?: number | null,
>   traffic_percent?: number | null,
>   traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   traffic_cost_percent?: number | null
> }[]
> ```

***

### keywordsMonthlyTotal

`paidSearch.keywordsMonthlyTotal`

Get the total count of monthly paid search keyword positions for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.keywordsMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### pagesMonthly

`paidSearch.pagesMonthly`

List monthly paid search landing pages with ad positions and traffic metrics

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.pagesMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   url?: string | null,
>   positions?: number | null,
>   traffic?: number | null,
>   traffic_percent?: number | null
> }[]
> ```

***

### pagesMonthlyTotal

`paidSearch.pagesMonthlyTotal`

Get the total count of monthly paid search landing pages for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.pagesMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### rankingsTrendMonthly

`paidSearch.rankingsTrendMonthly`

Get historical monthly paid search position distribution and traffic trends

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.rankingsTrendMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `date_from` | `string` | Yes | — |
| `date_to` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   month?: string | null,
>   positions?: number | null,
>   positions_1_3?: number | null,
>   positions_4_10?: number | null,
>   positions_11_inf?: number | null,
>   positions_new?: number | null,
>   positions_lost?: number | null,
>   positions_improved?: number | null,
>   positions_declined?: number | null,
>   traffic?: number | null,
>   traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null
> }[]
> ```

***

### subdomainsMonthly

`paidSearch.subdomainsMonthly`

List monthly paid search ad positions and traffic across subdomains of a domain

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.subdomainsMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `month` | `string` | No | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   subdomain?: string | null,
>   positions?: number | null,
>   traffic?: number | null,
>   traffic_percent?: number | null
> }[]
> ```

***

### subdomainsMonthlyTotal

`paidSearch.subdomainsMonthlyTotal`

Get the total count of subdomains running paid search ads for a domain

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.paidSearch.subdomainsMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `month` | `string` | No | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

## Position Tracking

### addCompetitors

`positionTracking.addCompetitors`

This request lets you add up to 20 competitor domains to an existing tracking campaign. Added competitors become available in comparison-focused Position Tracking reports. Cost: 0 API units per request.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.positionTracking.addCompetitors({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `competitors` | `object[]` | Yes | Competitor targets to register for side-by-side comparison in SEO reports. |

> [accordion] competitors full type
>
> ```ts theme={null}
> {
>   competitor_url: string
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   campaign_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
> } | null
> ```

***

### addKeywords

`positionTracking.addKeywords`

This request lets you add keywords to track to an existing tracking campaign and group them with tags. Spends API units for every keyword it adds. Cost: 100 API units per keyword added.

**Risk:** `destructive`

```ts theme={null}
await corsair.semrush.api.positionTracking.addKeywords({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `keywords` | `object[]` | Yes | Keywords to create together with optional tags. |

Spends 100 API units per keyword added; at most 10,000 keywords per request.

> [accordion] keywords full type
>
> ```ts theme={null}
> {
>   keyword: string,
>   tags?: string[]
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   campaign_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   added_keywords?: number | null
> } | null
> ```

***

### addTags

`positionTracking.addTags`

This request lets you assign up to five tags to each of your tracked keywords. Use tags to group keywords into logical segments such as brand, product line, or competitor terms. Then reuse those groups in filtering and reporting. Cost: 0 API units per request.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.positionTracking.addTags({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `bindings` | `object[]` | Yes | Tag-to-keywords bindings to create. |

> [accordion] bindings full type
>
> ```ts theme={null}
> {
>   tag: string,
>   keywords: string[]
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   campaign_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
> } | null
> ```

***

### createCampaign

`positionTracking.createCampaign`

This request creates a Position Tracking campaign in a project. Spends API units for every keyword it adds. Cost: 100 API units per keyword added.

**Risk:** `destructive`

```ts theme={null}
await corsair.semrush.api.positionTracking.createCampaign({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `project_id` | `number` | Yes | Semrush project that will own the campaign. |
| `title` | `string` | Yes | User-defined campaign name. |
| `engine` | `string` | Yes | Search engine identifier used by the campaign. Supported values: GOOGLE, BAIDU, BING. |
| `device` | `string` | Yes | Device preset used for tracking. Supported values depend on the campaign search engine: GOOGLE supports DESKTOP, MOBILE, and TABLET; BING supports DESKTOP and MOBILE; BAIDU supports DESKTOP only. |
| `location_id` | `number` | Yes | Location identifier used for the campaign. Get it from the Lookup Tracking Locations endpoint. |
| `tracking_url` | `string` | Yes | Primary URL whose rankings are tracked by the campaign. The length must not exceed 2000 characters. |
| `keywords` | `object[]` | Yes | Keywords to track. |
| `business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. If the local pack entry has a URL, matching uses the tracking URL instead. |
| `weekly_notification` | `boolean` | No | Whether weekly notifications should be enabled immediately. Default: true. |
| `language_code` | `string` | No | Target locale for the campaign when the location supports multiple languages. Language code from Lookup Tracking Locations for the selected location. |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. |

Spends 100 API units per keyword in `keywords`. Use `positionTracking.lookupLocations` (free) to find `location_id`.

> [accordion] keywords full type
>
> ```ts theme={null}
> {
>   keyword: string,
>   tags?: string[]
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   project_id?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   campaign_id?: string | null,
>   added_keywords?: number | null
> } | null
> ```

***

### deleteCampaign

`positionTracking.deleteCampaign`

This request deletes an existing Position Tracking campaign. Use it when you no longer need the campaign and want to remove it from the project. Cost: 0 API units per request.

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.semrush.api.positionTracking.deleteCampaign({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   campaign_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
> } | null
> ```

***

### deleteCompetitors

`positionTracking.deleteCompetitors`

This request lets you delete competitors from an existing tracking campaign. Use it when the comparison set changes and you no longer want those domains to appear in competitor-related reports for the campaign. Cost: 0 API units per request.

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.semrush.api.positionTracking.deleteCompetitors({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `competitor_ids` | `string[]` | Yes | Competitor identifiers to delete, as returned by the Get Competitors endpoint. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   campaign_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
> } | null
> ```

***

### deleteKeywords

`positionTracking.deleteKeywords`

This request lets you remove tracked keywords from an existing tracking campaign. Cost: 0 API units per request.

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.semrush.api.positionTracking.deleteKeywords({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `keywords` | `string[]` | Yes | Keywords to remove from the campaign. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   campaign_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
> } | null
> ```

***

### deleteTags

`positionTracking.deleteTags`

This request lets you delete up to five tags assigned to each of your tracked keywords. Use it when you need to reorganize keyword groups or remove tags that are no longer useful for filtering and reporting. Cost: 0 API units per request.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.positionTracking.deleteTags({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `bindings` | `object[]` | Yes | Tag-to-keywords bindings to remove. |

> [accordion] bindings full type
>
> ```ts theme={null}
> {
>   tag: string,
>   keywords: string[]
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   campaign_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
> } | null
> ```

***

### getCampaign

`positionTracking.getCampaign`

This request returns the current configuration and basic details of a Position Tracking campaign. Cost: 0 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTracking.getCampaign({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   campaign?: {
>     campaign_id?: string | null,
>     title?: string | null,
>     tracking_url?: string | null,
>     tracking_url_type?: string | null,
>     business_name?: string | null,
>     keywords_count?: number | null,
>     engine?: string | null,
>     location?: {
>       id?: number | null,
>       name?: string | null,
>       country_code?: string | null,
>       type?: string | null
>     } | null,
>     device?: string | null,
>     language?: string | null,
>     weekly_notification?: boolean | null,
>     created_at?: string | null,
>     updated_at?: string | null
>   } | null
> } | null
> ```

***

### getTrackingPoints

`positionTracking.getTrackingPoints`

This request returns a list of dates when campaign data was harvested. Use these dates to understand which tracking points are available for the campaign before requesting reports for a specific day or period. Cost: 0 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTracking.getTrackingPoints({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `date_from` | `string` | Yes | Lower bound for the returned date inventory (ISO-8601 YYYY-MM-DD). Example: 2026-01-01 |
| `date_to` | `string` | Yes | Upper bound for the returned date inventory (ISO-8601 YYYY-MM-DD). Example: 2026-01-02 |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   date_from?: string | null,
>   date_to?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   tracking_points?: {
>     date?: string | null
>   }[] | null
> } | null
> ```

***

### listCampaigns

`positionTracking.listCampaigns`

This request returns a list of campaigns in the specified project and basic information about each of them. Use it to discover the campaigns available in the project before requesting campaign details or reports. Cost: 0 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTracking.listCampaigns({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `project_id` | `number` | No | Optional project ID filter. If provided, returns campaigns from this project only. If omitted, returns all campaigns available to the requester. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   campaigns?: {
>     campaign_id?: string | null,
>     title?: string | null,
>     tracking_url?: string | null,
>     tracking_url_type?: string | null,
>     business_name?: string | null,
>     keywords_count?: number | null,
>     engine?: string | null,
>     location?: {
>       id?: number | null,
>       name?: string | null,
>       country_code?: string | null,
>       type?: string | null
>     } | null,
>     device?: string | null,
>     language?: string | null,
>     weekly_notification?: boolean | null,
>     created_at?: string | null,
>     updated_at?: string | null
>   }[] | null
> } | null
> ```

***

### listCompetitors

`positionTracking.listCompetitors`

This request returns the competitor domains currently configured for the selected tracking campaign. Use it to review the comparison setup before adding, deleting, or replacing campaign competitors. Cost: 0 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTracking.listCompetitors({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   competitors?: {
>     id?: string | null,
>     competitor_url?: string | null,
>     competitor_url_type?: string | null
>   }[] | null
> } | null
> ```

***

### listKeywords

`positionTracking.listKeywords`

This request returns the tracked keywords in the selected campaign together with their assigned tags. Use it to review the current keyword set before adding, removing, or regrouping keywords in the campaign. Cost: 0 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTracking.listKeywords({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   campaign_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keywords?: {
>     keyword?: string | null,
>     tags?: string[] | null
>   }[] | null
> } | null
> ```

***

### listTags

`positionTracking.listTags`

This request returns the tags currently available in the selected tracking campaign. Use it to discover existing keyword tags and reuse them in filtering, reporting, or campaign management flows. Cost: 0 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTracking.listTags({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   campaign_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   tags?: {
>     tag?: string | null
>   }[] | null
> } | null
> ```

***

### lookupLocations

`positionTracking.lookupLocations`

This request searches the location catalog used when creating campaigns. Requires engine (GOOGLE, BING, or BAIDU). Optional filters: location\_id, name, country\_code. Cost: 0 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTracking.lookupLocations({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `location_id` | `number` | No | Exact Semrush location identifier when you already know the target location. |
| `name` | `string` | No | Free-text prefix or substring matched against location names. |
| `country_code` | `string` | No | ISO 3166-1 alpha-2 country code (for example, us, de) used to narrow the location search. |
| `engine` | `string` | Yes | Search engine whose location catalog is queried. Results include only locations and languages available for this engine. Supported values: GOOGLE, BAIDU, BING. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   engine?: string | null,
>   name?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   locations?: {
>     id?: number | null,
>     name?: string | null,
>     canonical_name?: string | null,
>     parent_id?: number | null,
>     country_code?: string | null,
>     type?: string | null,
>     languages?: {
>       language_code?: string | null,
>       name?: string | null,
>       is_default?: boolean | null
>     }[] | null
>   }[] | null
> } | null
> ```

***

### updateCampaign

`positionTracking.updateCampaign`

This request updates mutable campaign settings for an existing Position Tracking campaign: weekly email notifications, the tracked URL, and the business name. Only the fields explicitly set in the request are updated. Cost: 0 API units per request.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.positionTracking.updateCampaign({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `weekly_notification` | `boolean` | No | Enables or disables weekly email digests with campaign performance statistics. |
| `tracking_url` | `string` | No | New tracking URL for the campaign. The length must not exceed 2000 characters. Domain must be equal to the project’s domain. |
| `business_name` | `string` | No | New business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   campaign_id?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
> } | null
> ```

***

## Position Tracking Reports

### cannibalizationHealthTrend

`positionTrackingReports.cannibalizationHealthTrend`

This request returns the cannibalization health trend for the selected target. Cost: 20 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.cannibalizationHealthTrend({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `date_from` | `string` | Yes | Interval start for the trend window (ISO-8601 YYYY-MM-DD). Example: 2026-01-01 |
| `date_to` | `string` | Yes | Interval end for the trend window (ISO-8601 YYYY-MM-DD). Example: 2026-01-02 |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `position_min` | `number` | No | Minimum position, inclusive. If omitted, no lower position bound is applied. |
| `position_max` | `number` | No | Maximum position, inclusive. The allowed upper bound depends on the campaign search engine and report channel. If omitted, no upper position bound is applied. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   date_from?: string | null,
>   date_to?: string | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   tracking_points?: {
>     date?: string | null,
>     keywords?: number | null,
>     ranked_keywords?: number | null,
>     cannibal_keywords?: number | null,
>     health_percentage?: number | null,
>     urls?: number | null,
>     cannibal_urls?: number | null,
>     urls_health_percentage?: number | null
>   }[] | null
> } | null
> ```

***

### cannibalizationKeywords

`positionTrackingReports.cannibalizationKeywords`

This request returns the keyword-level cannibalization report for the selected target. Cost: 40 API units per keyword.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.cannibalizationKeywords({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `base_date` | `string` | Yes | First date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured from this date. Example: 2026-01-01 |
| `comparison_date` | `string` | Yes | Second date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured to this date. Example: 2026-01-02 |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `position_min` | `number` | No | Minimum position, inclusive. If omitted, no lower position bound is applied. |
| `position_max` | `number` | No | Maximum position, inclusive. The allowed upper bound depends on the campaign search engine and report channel. If omitted, no upper position bound is applied. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `order_by` | `string` | No | Field the report result should be sorted by. Default: ORDER\_BY\_KEYWORD. Supported values: ORDER\_BY\_KEYWORD, ORDER\_BY\_VOLUME, ORDER\_BY\_TRAFFIC, ORDER\_BY\_POSITION. |
| `order_date_point` | `string` | No | Sort using the begin, end, or change value of order\_by. Default: ORDER\_DATE\_POINT\_END. Supported values: ORDER\_DATE\_POINT\_BEGIN, ORDER\_DATE\_POINT\_END, ORDER\_DATE\_POINT\_DIFF, ORDER\_DATE\_POINT\_DIFF\_ABS. |
| `direction` | `string` | No | Sort order for the result set (ascending or descending). Default: ASC. Supported values: ASC, DESC. |
| `limit` | `number` | No | Maximum number of rows to return in the response body. Default: 10. |
| `offset` | `number` | No | Number of matching rows skipped before returning results. Default: 0. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   base_date?: string | null,
>   comparison_date?: string | null,
>   volume_type?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   total?: number | null,
>   is_crawled_volumes_cpc?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keyword?: string | null,
>   tags?: string[] | null,
>   intents?: string[] | null,
>   volume?: number | null,
>   tracking_points?: {
>     date?: string | null,
>     is_crawled?: boolean | null,
>     position?: number | null,
>     estimated_traffic?: number | null,
>     top_url?: string | null,
>     urls_count?: number | null
>   }[] | null,
>   diff?: {
>     position?: number | null,
>     estimated_traffic?: number | null
>   } | null
> }[] | null
> ```

***

### cannibalizationKeywordTrend

`positionTrackingReports.cannibalizationKeywordTrend`

This request returns the cannibalization trend for one selected keyword. It shows which pages ranked for that keyword during the selected period and how their positions changed over time. Cost: 20 API units per page.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.cannibalizationKeywordTrend({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `date_from` | `string` | Yes | Interval start for the trend window (ISO-8601 YYYY-MM-DD). Example: 2026-01-01 |
| `date_to` | `string` | Yes | Interval end for the trend window (ISO-8601 YYYY-MM-DD). Example: 2026-01-02 |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `keyword` | `string` | Yes | Exact keyword whose trend should be returned. Required by the backend. Encode reserved characters in the value (for example, & → %26). Example: apple |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   date_from?: string | null,
>   date_to?: string | null,
>   keyword?: string | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   url?: string | null,
>   tracking_points?: {
>     date?: string | null,
>     position?: number | null
>   }[] | null
> }[] | null
> ```

***

### cannibalizationPages

`positionTrackingReports.cannibalizationPages`

This request returns the page-level cannibalization report for the selected target. Cost: 40 API units per page.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.cannibalizationPages({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `base_date` | `string` | Yes | First date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured from this date. Example: 2026-01-01 |
| `comparison_date` | `string` | Yes | Second date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured to this date. Example: 2026-01-02 |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `position_min` | `number` | No | Minimum position, inclusive. If omitted, no lower position bound is applied. |
| `position_max` | `number` | No | Maximum position, inclusive. The allowed upper bound depends on the campaign search engine and report channel. If omitted, no upper position bound is applied. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `url_filter` | `string` | No | Filter landing pages by URL. Values that start with http\:// or https\:// match the full URL exactly. Otherwise the value is matched as a substring of the URL.Example: blog |
| `order_by` | `string` | No | Field the report result should be sorted by. Default: ORDER\_BY\_URL. Supported values: ORDER\_BY\_URL, ORDER\_BY\_VOLUME, ORDER\_BY\_TRAFFIC, ORDER\_BY\_AVERAGE\_POSITION, ORDER\_BY\_MATCHES. |
| `order_date_point` | `string` | No | Sort using the begin, end, or change value of order\_by. Default: ORDER\_DATE\_POINT\_END. Supported values: ORDER\_DATE\_POINT\_BEGIN, ORDER\_DATE\_POINT\_END, ORDER\_DATE\_POINT\_DIFF, ORDER\_DATE\_POINT\_DIFF\_ABS. |
| `direction` | `string` | No | Sort order for the result set (ascending or descending). Default: ASC. Supported values: ASC, DESC. |
| `limit` | `number` | No | Maximum number of rows to return in the response body. Default: 10. |
| `offset` | `number` | No | Number of matching rows skipped before returning results. Default: 0. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   base_date?: string | null,
>   comparison_date?: string | null,
>   volume_type?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   total?: number | null,
>   is_crawled_volumes_cpc?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   url?: string | null,
>   metrics?: {
>     date?: string | null,
>     keywords_count?: number | null,
>     average_position?: number | null,
>     traffic?: number | null,
>     volume?: number | null
>   }[] | null,
>   diff?: {
>     keywords_count?: number | null,
>     average_position?: number | null,
>     traffic?: number | null,
>     volume?: number | null
>   } | null
> }[] | null
> ```

***

### cannibalizationPageTrend

`positionTrackingReports.cannibalizationPageTrend`

This request returns the cannibalization trend for one selected page URL. It shows which keywords are affected for that page during the selected period and how their positions changed over time. Cost: 20 API units per keyword.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.cannibalizationPageTrend({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `date_from` | `string` | Yes | Interval start for the trend window (ISO-8601 YYYY-MM-DD). Example: 2026-01-01 |
| `date_to` | `string` | Yes | Interval end for the trend window (ISO-8601 YYYY-MM-DD). Example: 2026-01-02 |
| `page_url` | `string` | Yes | Exact page URL whose trend should be returned. Example: [https://example.com/blog](https://example.com/blog) |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `position_min` | `number` | No | Minimum position, inclusive. If omitted, no lower position bound is applied. |
| `position_max` | `number` | No | Maximum position, inclusive. The allowed upper bound depends on the campaign search engine and report channel. If omitted, no upper position bound is applied. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   date_from?: string | null,
>   date_to?: string | null,
>   page_url?: string | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keyword?: string | null,
>   tracking_points?: {
>     date?: string | null,
>     position?: number | null
>   }[] | null
> }[] | null
> ```

***

### competitors

`positionTrackingReports.competitors`

This request lists the domains that appear for the tracked keyword set in the selected search channel, together with their average position and visibility. Cost: 1000 API units per competitor.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.competitors({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `base_date` | `string` | Yes | First date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured from this date. Example: 2026-01-01 |
| `comparison_date` | `string` | Yes | Second date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured to this date. Example: 2026-01-02 |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `volume_min` | `number` | No | Minimum search volume, inclusive. If omitted, no lower volume bound is applied. Applies to Google campaigns only. |
| `volume_max` | `number` | No | Maximum search volume, inclusive. If omitted, no upper volume bound is applied. Applies to Google campaigns only. |
| `cpc_min` | `number` | No | Minimum cost per click, inclusive. If omitted, no lower CPC bound is applied. Applies to Google campaigns only. |
| `cpc_max` | `number` | No | Maximum cost per click, inclusive. If omitted, no upper CPC bound is applied. Applies to Google campaigns only. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `tags` | `string[]` | No | Comma-separated list of tags to include. A keyword matches if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `tags_exclude` | `string[]` | No | Comma-separated list of tags to exclude. A keyword is excluded if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `intents` | `string[]` | No | Comma-separated list of search intents to filter keywords by. Supported values: INFORMATIONAL, NAVIGATIONAL, COMMERCIAL, TRANSACTIONAL. If omitted, no intent filter is applied. |
| `included_linktypes` | `string[]` | No | Comma-separated list of SERP features. Builds the report using only domains’ rankings in the listed SERP features. Mutually exclusive with excluded\_linktypes. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Builds the report excluding domains’ rankings in the listed SERP features. Mutually exclusive with included\_linktypes. |
| `position_depth` | `number` | No | Maximum ranking position included in report calculations. Accepts any uint32. Default: 150. |
| `order_by` | `string` | No | Field the report result should be sorted by. Default: ORDER\_BY\_URL. |
| `order_date_point` | `string` | No | Sort using the begin, end, or change value of order\_by. Default: ORDER\_DATE\_POINT\_END. Supported values: ORDER\_DATE\_POINT\_BEGIN, ORDER\_DATE\_POINT\_END, ORDER\_DATE\_POINT\_DIFF. |
| `direction` | `string` | No | Sort order for the result set (ascending or descending). Default: ASC. Supported values: ASC, DESC. |
| `limit` | `number` | No | Maximum number of rows to return in the response body. Default: 10. |
| `offset` | `number` | No | Number of matching rows skipped before returning results. Default: 0. |
| `urls` | `string[]` | No | Comma-separated list of competitor URLs to include. When provided, the report returns only these competitors. If omitted, all discovered competitors are included. |
| `exclude_urls` | `string[]` | No | Comma-separated list of competitor URLs to exclude from the report. If omitted, no competitor URL exclusion is applied. |
| `tracking_url_type` | `string` | No | URL type that defines how competitor URLs are aggregated in the response (root domain, subdomain, subfolder, or exact page). Default: campaign tracking URL type. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   base_date?: string | null,
>   comparison_date?: string | null,
>   total?: number | null,
>   keywords_count?: number | null,
>   volume_type?: string | null,
>   is_crawled_volumes_cpc?: boolean | null,
>   limit?: number | null,
>   offset?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   competitors?: {
>     competitor_url?: string | null,
>     tracking_points?: {
>       date?: string | null,
>       matches?: number | null,
>       average_position?: number | null,
>       deviation?: number | null,
>       traffic?: number | null,
>       traffic_cost?: number | null,
>       visibility?: number | null,
>       share_of_voice?: number | null
>     }[] | null,
>     diff?: {
>       matches?: number | null,
>       average_position?: number | null,
>       deviation?: number | null,
>       traffic?: number | null,
>       traffic_cost?: number | null,
>       visibility?: number | null,
>       share_of_voice?: number | null
>     } | null
>   }[] | null
> } | null
> ```

***

### competitorsSerpFeatures

`positionTrackingReports.competitorsSerpFeatures`

This request returns SERP-feature counters for the filtered dataset used by the competitors report. Cost: 10 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.competitorsSerpFeatures({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `base_date` | `string` | Yes | First date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured from this date. Example: 2026-01-01 |
| `comparison_date` | `string` | Yes | Second date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured to this date. Example: 2026-01-02 |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `volume_min` | `number` | No | Minimum search volume, inclusive. If omitted, no lower volume bound is applied. Applies to Google campaigns only. |
| `volume_max` | `number` | No | Maximum search volume, inclusive. If omitted, no upper volume bound is applied. Applies to Google campaigns only. |
| `cpc_min` | `number` | No | Minimum cost per click, inclusive. If omitted, no lower CPC bound is applied. Applies to Google campaigns only. |
| `cpc_max` | `number` | No | Maximum cost per click, inclusive. If omitted, no upper CPC bound is applied. Applies to Google campaigns only. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `tags` | `string[]` | No | Comma-separated list of tags to include. A keyword matches if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `tags_exclude` | `string[]` | No | Comma-separated list of tags to exclude. A keyword is excluded if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `intents` | `string[]` | No | Comma-separated list of search intents to filter keywords by. Supported values: INFORMATIONAL, NAVIGATIONAL, COMMERCIAL, TRANSACTIONAL. If omitted, no intent filter is applied. |
| `included_linktypes` | `string[]` | No | Comma-separated list of SERP features. Builds the report using only domains’ rankings in the listed SERP features. Mutually exclusive with excluded\_linktypes. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Builds the report excluding domains’ rankings in the listed SERP features. Mutually exclusive with included\_linktypes. |
| `position_depth` | `number` | No | Maximum ranking position included in report calculations. Accepts any uint32. Default: 150. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   base_date?: string | null,
>   comparison_date?: string | null,
>   volume_type?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   feature?: string | null,
>   competitors_rank?: number | null
> }[] | null
> ```

***

### competitorsVolume

`positionTrackingReports.competitorsVolume`

This request returns search-volume counters for the filtered dataset used by the competitors report. Cost: 10 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.competitorsVolume({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `base_date` | `string` | Yes | First date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured from this date. Example: 2026-01-01 |
| `comparison_date` | `string` | Yes | Second date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured to this date. Example: 2026-01-02 |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `volume_min` | `number` | No | Minimum search volume, inclusive. If omitted, no lower volume bound is applied. Applies to Google campaigns only. |
| `volume_max` | `number` | No | Maximum search volume, inclusive. If omitted, no upper volume bound is applied. Applies to Google campaigns only. |
| `cpc_min` | `number` | No | Minimum cost per click, inclusive. If omitted, no lower CPC bound is applied. Applies to Google campaigns only. |
| `cpc_max` | `number` | No | Maximum cost per click, inclusive. If omitted, no upper CPC bound is applied. Applies to Google campaigns only. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `tags` | `string[]` | No | Comma-separated list of tags to include. A keyword matches if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `tags_exclude` | `string[]` | No | Comma-separated list of tags to exclude. A keyword is excluded if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `intents` | `string[]` | No | Comma-separated list of search intents to filter keywords by. Supported values: INFORMATIONAL, NAVIGATIONAL, COMMERCIAL, TRANSACTIONAL. If omitted, no intent filter is applied. |
| `included_linktypes` | `string[]` | No | Comma-separated list of SERP features. Builds the report using only domains’ rankings in the listed SERP features. Mutually exclusive with excluded\_linktypes. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Builds the report excluding domains’ rankings in the listed SERP features. Mutually exclusive with included\_linktypes. |
| `position_depth` | `number` | No | Maximum ranking position included in report calculations. Accepts any uint32. Default: 150. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   base_date?: string | null,
>   comparison_date?: string | null,
>   volume_type?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   volume_less_10?: number | null,
>   volume_11_100?: number | null,
>   volume_101_1000?: number | null,
>   volume_1001_10000?: number | null,
>   volume_10000_plus?: number | null
> } | null
> ```

***

### landingPages

`positionTrackingReports.landingPages`

This request lists the ranking URLs attributed to the selected target across the tracked keyword set in the selected search channel. Cost: 1000 API units per landing page.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.landingPages({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `base_date` | `string` | Yes | First date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured from this date. Example: 2026-01-01 |
| `comparison_date` | `string` | Yes | Second date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured to this date. Example: 2026-01-02 |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `volume_min` | `number` | No | Minimum search volume, inclusive. If omitted, no lower volume bound is applied. Applies to Google campaigns only. |
| `volume_max` | `number` | No | Maximum search volume, inclusive. If omitted, no upper volume bound is applied. Applies to Google campaigns only. |
| `url_filter` | `string` | No | Filter landing pages by URL. Values that start with http\:// or https\:// match the full URL exactly. Otherwise the value is matched as a substring of the URL. |
| `page_status` | `string` | No | Return only new or lost pages. Supported values: PAGE\_NEW, PAGE\_LOST. |
| `cpc_min` | `number` | No | Minimum cost per click, inclusive. If omitted, no lower CPC bound is applied. Applies to Google campaigns only. |
| `cpc_max` | `number` | No | Maximum cost per click, inclusive. If omitted, no upper CPC bound is applied. Applies to Google campaigns only. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `tags` | `string[]` | No | Comma-separated list of tags to include. A keyword matches if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `tags_exclude` | `string[]` | No | Comma-separated list of tags to exclude. A keyword is excluded if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `intents` | `string[]` | No | Comma-separated list of search intents to filter keywords by. Supported values: INFORMATIONAL, NAVIGATIONAL, COMMERCIAL, TRANSACTIONAL. If omitted, no intent filter is applied. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |
| `order_by` | `string` | No | Field the report result should be sorted by. Supported values: ORDER\_BY\_URL, ORDER\_BY\_TRAFFIC, ORDER\_BY\_AVERAGE\_POSITION, ORDER\_BY\_VOLUME, ORDER\_BY\_KEYWORDS\_COUNT. |
| `order_date_point` | `string` | No | Sort using the begin, end, or change value of order\_by. Default: ORDER\_DATE\_POINT\_END. Supported values: ORDER\_DATE\_POINT\_BEGIN, ORDER\_DATE\_POINT\_END, ORDER\_DATE\_POINT\_DIFF. |
| `direction` | `string` | No | Sort order for the result set (ascending or descending). Default: ASC. Supported values: ASC, DESC. |
| `limit` | `number` | No | Maximum number of rows to return in the response body. Default: 10. |
| `offset` | `number` | No | Number of matching rows skipped before returning results. Default: 0. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   base_date?: string | null,
>   comparison_date?: string | null,
>   volume_type?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   total?: number | null,
>   keywords_count?: number | null,
>   is_crawled_volumes_cpc?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   url?: string | null,
>   status?: string | null,
>   metrics?: {
>     date?: string | null,
>     traffic?: number | null,
>     average_position?: number | null,
>     volume?: number | null,
>     keywords_count?: number | null,
>     intent_rates?: {
>       intent?: string | null,
>       keywords_count?: number | null,
>       keywords_percentage?: number | null,
>       traffic?: number | null
>     }[] | null
>   } | null,
>   diff?: {
>     traffic?: number | null,
>     average_position?: number | null,
>     volume?: number | null,
>     keywords_count?: number | null
>   } | null,
>   keywords?: {
>     keyword?: string | null,
>     tags?: string[] | null,
>     status?: string | null,
>     intents?: string[] | null,
>     positions?: {
>       date?: string | null,
>       serp_features?: string[] | null,
>       traffic?: number | null,
>       position?: number | null,
>       volume?: number | null
>     }[] | null,
>     diff?: {
>       traffic?: number | null,
>       position?: number | null
>     } | null
>   }[] | null
> }[] | null
> ```

***

### landingPagesNewLost

`positionTrackingReports.landingPagesNewLost`

This request returns aggregate counts of new and lost landing pages for the filtered landing-pages dataset. Cost: 10 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.landingPagesNewLost({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `base_date` | `string` | Yes | First date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured from this date. Example: 2026-01-01 |
| `comparison_date` | `string` | Yes | Second date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured to this date. Example: 2026-01-02 |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `volume_min` | `number` | No | Minimum search volume, inclusive. If omitted, no lower volume bound is applied. Applies to Google campaigns only. |
| `volume_max` | `number` | No | Maximum search volume, inclusive. If omitted, no upper volume bound is applied. Applies to Google campaigns only. |
| `url_filter` | `string` | No | Filter landing pages by URL. Values that start with http\:// or https\:// match the full URL exactly. Otherwise the value is matched as a substring of the URL. |
| `page_status` | `string` | No | Return only new or lost pages. Supported values: PAGE\_NEW, PAGE\_LOST. |
| `cpc_min` | `number` | No | Minimum cost per click, inclusive. If omitted, no lower CPC bound is applied. Applies to Google campaigns only. |
| `cpc_max` | `number` | No | Maximum cost per click, inclusive. If omitted, no upper CPC bound is applied. Applies to Google campaigns only. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `tags` | `string[]` | No | Comma-separated list of tags to include. A keyword matches if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `tags_exclude` | `string[]` | No | Comma-separated list of tags to exclude. A keyword is excluded if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `intents` | `string[]` | No | Comma-separated list of search intents to filter keywords by. Supported values: INFORMATIONAL, NAVIGATIONAL, COMMERCIAL, TRANSACTIONAL. If omitted, no intent filter is applied. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   base_date?: string | null,
>   comparison_date?: string | null,
>   volume_type?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   new_count?: number | null,
>   lost_count?: number | null
> } | null
> ```

***

### landingPagesVolume

`positionTrackingReports.landingPagesVolume`

This request returns a single aggregate search-volume histogram for the filtered landing-pages dataset. It doesn’t return separate buckets for each page. Cost: 10 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.landingPagesVolume({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `base_date` | `string` | Yes | First date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured from this date. Example: 2026-01-01 |
| `comparison_date` | `string` | Yes | Second date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured to this date. Example: 2026-01-02 |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `volume_min` | `number` | No | Minimum search volume, inclusive. If omitted, no lower volume bound is applied. Applies to Google campaigns only. |
| `volume_max` | `number` | No | Maximum search volume, inclusive. If omitted, no upper volume bound is applied. Applies to Google campaigns only. |
| `url_filter` | `string` | No | Filter landing pages by URL. Values that start with http\:// or https\:// match the full URL exactly. Otherwise the value is matched as a substring of the URL. |
| `page_status` | `string` | No | Return only new or lost pages. Supported values: PAGE\_NEW, PAGE\_LOST. |
| `cpc_min` | `number` | No | Minimum cost per click, inclusive. If omitted, no lower CPC bound is applied. Applies to Google campaigns only. |
| `cpc_max` | `number` | No | Maximum cost per click, inclusive. If omitted, no upper CPC bound is applied. Applies to Google campaigns only. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `tags` | `string[]` | No | Comma-separated list of tags to include. A keyword matches if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `tags_exclude` | `string[]` | No | Comma-separated list of tags to exclude. A keyword is excluded if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `intents` | `string[]` | No | Comma-separated list of search intents to filter keywords by. Supported values: INFORMATIONAL, NAVIGATIONAL, COMMERCIAL, TRANSACTIONAL. If omitted, no intent filter is applied. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   base_date?: string | null,
>   comparison_date?: string | null,
>   volume_type?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   volume_less_10?: number | null,
>   volume_11_100?: number | null,
>   volume_101_1000?: number | null,
>   volume_1001_10000?: number | null,
>   volume_10000_plus?: number | null
> } | null
> ```

***

### multiOverview

`positionTrackingReports.multiOverview`

This request compares keyword positions across multiple tracking campaigns. For each campaign occurrence, it returns metrics on comparison\_date and the difference from base\_date. Cost: 10 API units per campaign occurrence.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.multiOverview({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `base_date` | `string` | Yes | First date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured from this date. Example: 2026-01-01 |
| `comparison_date` | `string` | Yes | Second date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured to this date. Example: 2026-01-02 |
| `volume_type_selector` | `string` | No | Rule used to choose the search volume level for each compared campaign. |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `compared_campaign_ids` | `string[]` | No | Additional campaign IDs to compare against the main campaign. When omitted, all targets in the project are included. Example: 735878\_89,8976983476 |
| `primary_target_campaign_id` | `string` | No | Target campaign ID that should be treated as the main comparison target. Example: 2132421\_3214 |
| `keyword_intersection_type` | `string` | No | Keyword intersection type across all selected targets. Default: KEYWORD\_INTERSECTION\_TYPE\_ALL. |
| `volume_min` | `number` | No | Minimum search volume, inclusive. If omitted, no lower volume bound is applied. Applies to Google campaigns only. |
| `volume_max` | `number` | No | Maximum search volume, inclusive. If omitted, no upper volume bound is applied. Applies to Google campaigns only. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `serp_features` | `string[]` | No | Comma-separated list of SERP features. A keyword is included if its SERP contains any of the listed features. Mutually exclusive with serp\_features\_exclude. |
| `serp_features_exclude` | `string[]` | No | Comma-separated list of SERP features. A keyword is excluded if its SERP contains any of the listed features. Mutually exclusive with serp\_features. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |
| `order_by` | `string` | No | Field the report result should be sorted by. Supported values: ORDER\_BY\_KEYWORD, ORDER\_BY\_VOLUME, ORDER\_BY\_CPC, ORDER\_BY\_POSITION. If omitted, the default report sort is used. |
| `order_date_point` | `string` | No | Sort using the begin, end, or change value of order\_by. Default: ORDER\_DATE\_POINT\_END. Supported values: ORDER\_DATE\_POINT\_BEGIN, ORDER\_DATE\_POINT\_END, ORDER\_DATE\_POINT\_DIFF. |
| `order_target_index` | `number` | No | Target index in the compared\_campaign\_ids array. Example: 0 |
| `direction` | `string` | No | Sort order for the result set (ascending or descending). Default: ASC. Supported values: ASC, DESC. |
| `limit` | `number` | No | Maximum number of rows to return in the response body. Default: 10. |
| `offset` | `number` | No | Number of matching rows skipped before returning results. Default: 0. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   base_date?: string | null,
>   comparison_date?: string | null,
>   volume_type_selector?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keyword?: string | null,
>   campaign_occurrences?: {
>     campaign_id?: string | null,
>     created_at?: string | null
>   }[] | null,
>   targets?: {
>     target_campaign_id?: string | null,
>     volume?: number | null,
>     cpc?: number | null,
>     tracking_points?: {
>       date?: string | null,
>       is_crawled?: boolean | null,
>       position?: number | null,
>       url?: string | null,
>       serp_features?: string[] | null
>     }[] | null,
>     diff?: {
>       position?: number | null
>     } | null
>   }[] | null
> }[] | null
> ```

***

### overview

`positionTrackingReports.overview`

This request returns the main keyword-level SEO overview report for the selected target. It lists matching keywords with metrics on comparison\_date and the difference from base\_date. Cost: 100 API units per keyword.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.overview({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `base_date` | `string` | Yes | First date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured from this date. Example: 2026-01-01 |
| `comparison_date` | `string` | Yes | Second date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured to this date. Example: 2026-01-02 |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `volume_min` | `number` | No | Minimum search volume, inclusive. If omitted, no lower volume bound is applied. Applies to Google campaigns only. |
| `volume_max` | `number` | No | Maximum search volume, inclusive. If omitted, no upper volume bound is applied. Applies to Google campaigns only. |
| `cpc_min` | `number` | No | Minimum cost per click, inclusive. If omitted, no lower CPC bound is applied. Applies to Google campaigns only. |
| `cpc_max` | `number` | No | Maximum cost per click, inclusive. If omitted, no upper CPC bound is applied. Applies to Google campaigns only. |
| `keyword_difficulty_min` | `number` | No | Minimum keyword difficulty score, inclusive. If omitted, no lower keyword difficulty bound is applied. |
| `keyword_difficulty_max` | `number` | No | Maximum keyword difficulty score, inclusive. If omitted, no upper keyword difficulty bound is applied. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `tags` | `string[]` | No | Comma-separated list of tags to include. A keyword matches if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `tags_exclude` | `string[]` | No | Comma-separated list of tags to exclude. A keyword is excluded if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `intents` | `string[]` | No | Comma-separated list of search intents to filter keywords by. Supported values: INFORMATIONAL, NAVIGATIONAL, COMMERCIAL, TRANSACTIONAL. If omitted, no intent filter is applied. |
| `serp_features` | `string[]` | No | Comma-separated list of SERP features. A keyword is included if its SERP contains any of the listed features. |
| `serp_features_exclude` | `string[]` | No | Comma-separated list of SERP features. A keyword is excluded if its SERP contains any of the listed features. |
| `ranks_with_serp_feature` | `string[]` | No | Comma-separated list of SERP features. A keyword is included if the selected target ranks inside any of the listed features. |
| `not_ranks_with_serp_feature` | `string[]` | No | Comma-separated list of SERP features. A keyword is included if the listed features are present on the SERP but the selected target does not rank inside them. Values are combined with AND. |
| `position_min` | `number` | No | Minimum position, inclusive. If omitted, no lower position bound is applied. |
| `position_max` | `number` | No | Maximum position, inclusive. The allowed upper bound depends on the campaign search engine and report channel. If omitted, no upper position bound is applied. |
| `position_filter_mode` | `string` | No | Selects which keywords pass the position\_min/position\_max range relative to base\_date and comparison\_date. ALL: end-date position is in range. NEW/LOST: entered or left the range in the interval. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |
| `order_by` | `string` | No | Field the report result should be sorted by. Supported values: ORDER\_BY\_KEYWORD, ORDER\_BY\_VOLUME, ORDER\_BY\_CPC, ORDER\_BY\_TRAFFIC, ORDER\_BY\_TRAFFIC\_COST, ORDER\_BY\_VISIBILITY, ORDER\_BY\_SHARE\_OF\_VOICE, O... |
| `order_date_point` | `string` | No | Sort using the begin, end, or change value of order\_by. Default: ORDER\_DATE\_POINT\_END. |
| `direction` | `string` | No | Sort order for the result set (ascending or descending). Default: ASC. Supported values: ASC, DESC. |
| `limit` | `number` | No | Maximum number of rows to return in the response body. Default: 10. |
| `offset` | `number` | No | Number of matching rows skipped before returning results. Default: 0. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   base_date?: string | null,
>   comparison_date?: string | null,
>   volume_type?: string | null,
>   is_crawled_volumes_cpc?: boolean | null,
>   is_crawled_potential?: boolean | null,
>   limit?: number | null,
>   offset?: number | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keyword?: string | null,
>   cpc?: number | null,
>   volume?: number | null,
>   keyword_difficulty?: number | null,
>   tags?: string[] | null,
>   intents?: string[] | null,
>   created_at?: string | null,
>   tracking_points?: {
>     date?: string | null,
>     is_crawled?: boolean | null,
>     position?: number | null,
>     visibility?: number | null,
>     share_of_voice?: number | null,
>     traffic?: number | null,
>     traffic_cost?: number | null,
>     url?: string | null,
>     serp_page_features?: string[] | null,
>     serp_features?: string[] | null
>   }[] | null,
>   diff?: {
>     position?: number | null,
>     visibility?: number | null,
>     share_of_voice?: number | null,
>     traffic?: number | null,
>     traffic_cost?: number | null
>   } | null,
>   potential?: {
>     date?: string | null,
>     position?: number | null,
>     visibility?: number | null,
>     traffic?: number | null,
>     traffic_cost?: number | null,
>     diff?: {
>       position?: number | null,
>       visibility?: number | null,
>       share_of_voice?: number | null,
>       traffic?: number | null,
>       traffic_cost?: number | null
>     } | null
>   } | null
> }[] | null
> ```

***

### overviewExtended

`positionTrackingReports.overviewExtended`

This request returns the extended version of the overview report. It provides keyword-level rows with per-date ranking data for the selected target. Cost: 10 API units per keyword.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.overviewExtended({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `date_from` | `string` | Yes | Interval start for the comparison window (ISO-8601 YYYY-MM-DD). Example: 2026-01-01 |
| `date_to` | `string` | Yes | Interval end for the comparison window (ISO-8601 YYYY-MM-DD). Example: 2026-01-02 |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `volume_min` | `number` | No | Minimum search volume, inclusive. If omitted, no lower volume bound is applied. Applies to Google campaigns only. |
| `volume_max` | `number` | No | Maximum search volume, inclusive. If omitted, no upper volume bound is applied. Applies to Google campaigns only. |
| `cpc_min` | `number` | No | Minimum cost per click, inclusive. If omitted, no lower CPC bound is applied. Applies to Google campaigns only. |
| `cpc_max` | `number` | No | Maximum cost per click, inclusive. If omitted, no upper CPC bound is applied. Applies to Google campaigns only. |
| `keyword_difficulty_min` | `number` | No | Minimum keyword difficulty score, inclusive. If omitted, no lower keyword difficulty bound is applied. |
| `keyword_difficulty_max` | `number` | No | Maximum keyword difficulty score, inclusive. If omitted, no upper keyword difficulty bound is applied. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `tags` | `string[]` | No | Comma-separated list of tags to include. A keyword matches if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `tags_exclude` | `string[]` | No | Comma-separated list of tags to exclude. A keyword is excluded if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `intents` | `string[]` | No | Comma-separated list of search intents to filter keywords by. Supported values: INFORMATIONAL, NAVIGATIONAL, COMMERCIAL, TRANSACTIONAL. If omitted, no intent filter is applied. |
| `serp_features` | `string[]` | No | Comma-separated list of SERP features. A keyword is included if its SERP contains any of the listed features. |
| `serp_features_exclude` | `string[]` | No | Comma-separated list of SERP features. A keyword is excluded if its SERP contains any of the listed features. |
| `ranks_with_serp_feature` | `string[]` | No | Comma-separated list of SERP features. A keyword is included if the selected target ranks inside any of the listed features. |
| `not_ranks_with_serp_feature` | `string[]` | No | Comma-separated list of SERP features. A keyword is included if the listed features are present on the SERP but the selected target does not rank inside them. Values are combined with AND. |
| `position_min` | `number` | No | Minimum position, inclusive. If omitted, no lower position bound is applied. |
| `position_max` | `number` | No | Maximum position, inclusive. The allowed upper bound depends on the campaign search engine and report channel. If omitted, no upper position bound is applied. |
| `position_filter_mode` | `string` | No | Selects which keywords pass the position\_min/position\_max range relative to date\_from and date\_to. ALL: end-date position is in range. NEW/LOST: entered or left the range in the interval. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |
| `order_by` | `string` | No | Field the report result should be sorted by. Supported values: ORDER\_BY\_KEYWORD, ORDER\_BY\_VOLUME, ORDER\_BY\_CPC, ORDER\_BY\_TRAFFIC, ORDER\_BY\_TRAFFIC\_COST, ORDER\_BY\_VISIBILITY, ORDER\_BY\_SHARE\_OF\_VOICE, O... |
| `order_date_point` | `string` | No | Sort using the begin, end, or change value of order\_by. Default: ORDER\_DATE\_POINT\_END. |
| `direction` | `string` | No | Sort order for the result set (ascending or descending). Default: ASC. Supported values: ASC, DESC. |
| `limit` | `number` | No | Maximum number of rows to return in the response body. Default: 10. |
| `offset` | `number` | No | Number of matching rows skipped before returning results. Default: 0. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   date_from?: string | null,
>   date_to?: string | null,
>   volume_type?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   total?: number | null,
>   is_crawled_volumes_cpc?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keyword?: string | null,
>   cpc?: number | null,
>   volume?: number | null,
>   keyword_difficulty?: number | null,
>   tags?: string[] | null,
>   intents?: string[] | null,
>   created_at?: string | null,
>   tracking_points?: {
>     date?: string | null,
>     is_crawled?: boolean | null,
>     position?: number | null,
>     visibility?: number | null,
>     share_of_voice?: number | null,
>     traffic?: number | null,
>     traffic_cost?: number | null,
>     url?: string | null,
>     serp_page_features?: string[] | null,
>     serp_features?: string[] | null
>   }[] | null,
>   diff?: {
>     position?: number | null,
>     visibility?: number | null,
>     share_of_voice?: number | null,
>     traffic?: number | null,
>     traffic_cost?: number | null
>   } | null
> }[] | null
> ```

***

### overviewSerpFeatures

`positionTrackingReports.overviewSerpFeatures`

This request returns SERP-feature counters for the same filtered dataset used by the main overview report. Cost: 10 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.overviewSerpFeatures({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `base_date` | `string` | Yes | First date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured from this date. Example: 2026-01-01 |
| `comparison_date` | `string` | Yes | Second date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured to this date. Example: 2026-01-02 |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `volume_min` | `number` | No | Minimum search volume, inclusive. If omitted, no lower volume bound is applied. Applies to Google campaigns only. |
| `volume_max` | `number` | No | Maximum search volume, inclusive. If omitted, no upper volume bound is applied. Applies to Google campaigns only. |
| `cpc_min` | `number` | No | Minimum cost per click, inclusive. If omitted, no lower CPC bound is applied. Applies to Google campaigns only. |
| `cpc_max` | `number` | No | Maximum cost per click, inclusive. If omitted, no upper CPC bound is applied. Applies to Google campaigns only. |
| `keyword_difficulty_min` | `number` | No | Minimum keyword difficulty score, inclusive. If omitted, no lower keyword difficulty bound is applied. |
| `keyword_difficulty_max` | `number` | No | Maximum keyword difficulty score, inclusive. If omitted, no upper keyword difficulty bound is applied. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `tags` | `string[]` | No | Comma-separated list of tags to include. A keyword matches if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `tags_exclude` | `string[]` | No | Comma-separated list of tags to exclude. A keyword is excluded if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `intents` | `string[]` | No | Comma-separated list of search intents to filter keywords by. Supported values: INFORMATIONAL, NAVIGATIONAL, COMMERCIAL, TRANSACTIONAL. If omitted, no intent filter is applied. |
| `position_min` | `number` | No | Minimum position, inclusive. If omitted, no lower position bound is applied. |
| `position_max` | `number` | No | Maximum position, inclusive. The allowed upper bound depends on the campaign search engine and report channel. If omitted, no upper position bound is applied. |
| `position_filter_mode` | `string` | No | Selects which keywords pass the position\_min/position\_max range relative to base\_date and comparison\_date. ALL: end-date position is in range. NEW/LOST: entered or left the range in the interval. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   base_date?: string | null,
>   comparison_date?: string | null,
>   volume_type?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   feature?: string | null,
>   exists?: number | null,
>   does_not_exist?: number | null,
>   competitor_ranks?: number | null,
>   competitor_does_not_rank?: number | null
> }[] | null
> ```

***

### overviewTop

`positionTrackingReports.overviewTop`

This request returns top-range counters for the same filtered dataset used by the main overview report. It groups keywords into ranking buckets such as Top 3, Top 10, Top 20, Top 50 and Top 100. Cost: 100 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.overviewTop({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `base_date` | `string` | Yes | First date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured from this date. Example: 2026-01-01 |
| `comparison_date` | `string` | Yes | Second date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured to this date. Example: 2026-01-02 |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `volume_min` | `number` | No | Minimum search volume, inclusive. If omitted, no lower volume bound is applied. Applies to Google campaigns only. |
| `volume_max` | `number` | No | Maximum search volume, inclusive. If omitted, no upper volume bound is applied. Applies to Google campaigns only. |
| `cpc_min` | `number` | No | Minimum cost per click, inclusive. If omitted, no lower CPC bound is applied. Applies to Google campaigns only. |
| `cpc_max` | `number` | No | Maximum cost per click, inclusive. If omitted, no upper CPC bound is applied. Applies to Google campaigns only. |
| `keyword_difficulty_min` | `number` | No | Minimum keyword difficulty score, inclusive. If omitted, no lower keyword difficulty bound is applied. |
| `keyword_difficulty_max` | `number` | No | Maximum keyword difficulty score, inclusive. If omitted, no upper keyword difficulty bound is applied. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `tags` | `string[]` | No | Comma-separated list of tags to include. A keyword matches if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `tags_exclude` | `string[]` | No | Comma-separated list of tags to exclude. A keyword is excluded if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `intents` | `string[]` | No | Comma-separated list of search intents to filter keywords by. Supported values: INFORMATIONAL, NAVIGATIONAL, COMMERCIAL, TRANSACTIONAL. If omitted, no intent filter is applied. |
| `serp_features` | `string[]` | No | Comma-separated list of SERP features. A keyword is included if its SERP contains any of the listed features. Mutually exclusive with serp\_features\_exclude. |
| `serp_features_exclude` | `string[]` | No | Comma-separated list of SERP features. A keyword is excluded if its SERP contains any of the listed features. Mutually exclusive with serp\_features. |
| `position_min` | `number` | No | Minimum position, inclusive. If omitted, no lower position bound is applied. |
| `position_max` | `number` | No | Maximum position, inclusive. The allowed upper bound depends on the campaign search engine and report channel. If omitted, no upper position bound is applied. |
| `position_filter_mode` | `string` | No | Selects which keywords pass the position\_min/position\_max range relative to base\_date and comparison\_date. ALL: end-date position is in range. NEW/LOST: entered or left the range in the interval. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   base_date?: string | null,
>   comparison_date?: string | null,
>   volume_type?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   range?: string | null,
>   counter?: {
>     all?: number | null,
>     improved?: number | null,
>     declined?: number | null,
>     unchanged?: number | null,
>     new?: number | null,
>     lost?: number | null
>   } | null
> }[] | null
> ```

***

### overviewTrend

`positionTrackingReports.overviewTrend`

This request returns the aggregate SEO overview trend for the selected target over time. It shows how the target’s average position, visibility, share of voice, traffic, and traffic cost change across tracking dates. Cost: 100 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.overviewTrend({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `date_from` | `string` | Yes | Interval start for the trend window (ISO-8601 YYYY-MM-DD). Example: 2026-01-01 |
| `date_to` | `string` | Yes | Interval end for the trend window (ISO-8601 YYYY-MM-DD). Example: 2026-01-02 |
| `position_filter_date_from` | `string` | No | Optional comparison-window start for the position filter (ISO-8601 YYYY-MM-DD). |
| `position_filter_date_to` | `string` | No | Optional comparison-window end for the position filter (ISO-8601 YYYY-MM-DD). |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `volume_min` | `number` | No | Minimum search volume, inclusive. If omitted, no lower volume bound is applied. Applies to Google campaigns only. |
| `volume_max` | `number` | No | Maximum search volume, inclusive. If omitted, no upper volume bound is applied. Applies to Google campaigns only. |
| `keyword_difficulty_min` | `number` | No | Minimum keyword difficulty score, inclusive. If omitted, no lower keyword difficulty bound is applied. |
| `keyword_difficulty_max` | `number` | No | Maximum keyword difficulty score, inclusive. If omitted, no upper keyword difficulty bound is applied. |
| `cpc_min` | `number` | No | Minimum cost per click, inclusive. If omitted, no lower CPC bound is applied. Applies to Google campaigns only. |
| `cpc_max` | `number` | No | Maximum cost per click, inclusive. If omitted, no upper CPC bound is applied. Applies to Google campaigns only. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `tags` | `string[]` | No | Comma-separated list of tags to include. A keyword matches if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `tags_exclude` | `string[]` | No | Comma-separated list of tags to exclude. A keyword is excluded if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `intents` | `string[]` | No | Comma-separated list of search intents to filter keywords by. Supported values: INFORMATIONAL, NAVIGATIONAL, COMMERCIAL, TRANSACTIONAL. If omitted, no intent filter is applied. |
| `serp_features` | `string[]` | No | Comma-separated list of SERP features. A keyword is included if its SERP contains any of the listed features. |
| `serp_features_exclude` | `string[]` | No | Comma-separated list of SERP features. A keyword is excluded if its SERP contains any of the listed features. |
| `ranks_with_serp_feature` | `string[]` | No | Comma-separated list of SERP features. A keyword is included if the selected target ranks inside any of the listed features. |
| `not_ranks_with_serp_feature` | `string[]` | No | Comma-separated list of SERP features. A keyword is included if the listed features are present on the SERP but the selected target does not rank inside them. Values are combined with AND. |
| `position_min` | `number` | No | Minimum position, inclusive, for the position filter. Together with position\_max, this defines the position range checked on the comparison window selected by position\_filter\_date\_from and position\_fi... |
| `position_max` | `number` | No | Maximum position, inclusive, for the position filter. The allowed upper bound depends on the campaign search engine and report channel. |
| `position_filter_mode` | `string` | No | Selects which keywords pass the position\_min/position\_max range relative to the comparison window (position\_filter\_date\_from/position\_filter\_date\_to, which default to date\_from/date\_to). |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   date_from?: string | null,
>   date_to?: string | null,
>   total?: number | null,
>   volume_type?: string | null,
>   is_crawled_volumes_cpc?: boolean | null,
>   is_crawled_potential?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   tracking_points?: {
>     date?: string | null,
>     average_position?: number | null,
>     absolute_visibility?: number | null,
>     visibility?: number | null,
>     traffic?: number | null,
>     traffic_cost?: number | null,
>     share_of_voice?: number | null
>   }[] | null,
>   potential?: {
>     date?: string | null,
>     average_position?: number | null,
>     absolute_visibility?: number | null,
>     visibility?: number | null,
>     traffic?: number | null,
>     traffic_cost?: number | null,
>     diff?: {
>       visibility?: number | null,
>       traffic?: number | null,
>       traffic_cost?: number | null
>     } | null
>   } | null
> } | null
> ```

***

### overviewVolume

`positionTrackingReports.overviewVolume`

This request returns search-volume counters for the same filtered dataset used by the main overview report. Cost: 10 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.overviewVolume({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `base_date` | `string` | Yes | First date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured from this date. Example: 2026-01-01 |
| `comparison_date` | `string` | Yes | Second date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured to this date. Example: 2026-01-02 |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `volume_min` | `number` | No | Minimum search volume, inclusive. If omitted, no lower volume bound is applied. Applies to Google campaigns only. |
| `volume_max` | `number` | No | Maximum search volume, inclusive. If omitted, no upper volume bound is applied. Applies to Google campaigns only. |
| `cpc_min` | `number` | No | Minimum cost per click, inclusive. If omitted, no lower CPC bound is applied. Applies to Google campaigns only. |
| `cpc_max` | `number` | No | Maximum cost per click, inclusive. If omitted, no upper CPC bound is applied. Applies to Google campaigns only. |
| `keyword_difficulty_min` | `number` | No | Minimum keyword difficulty score, inclusive. If omitted, no lower keyword difficulty bound is applied. |
| `keyword_difficulty_max` | `number` | No | Maximum keyword difficulty score, inclusive. If omitted, no upper keyword difficulty bound is applied. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `tags` | `string[]` | No | Comma-separated list of tags to include. A keyword matches if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `tags_exclude` | `string[]` | No | Comma-separated list of tags to exclude. A keyword is excluded if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `intents` | `string[]` | No | Comma-separated list of search intents to filter keywords by. Supported values: INFORMATIONAL, NAVIGATIONAL, COMMERCIAL, TRANSACTIONAL. If omitted, no intent filter is applied. |
| `serp_features` | `string[]` | No | Comma-separated list of SERP features. A keyword is included if its SERP contains any of the listed features. Mutually exclusive with serp\_features\_exclude. |
| `serp_features_exclude` | `string[]` | No | Comma-separated list of SERP features. A keyword is excluded if its SERP contains any of the listed features. Mutually exclusive with serp\_features. |
| `position_min` | `number` | No | Minimum position, inclusive. If omitted, no lower position bound is applied. |
| `position_max` | `number` | No | Maximum position, inclusive. The allowed upper bound depends on the campaign search engine and report channel. If omitted, no upper position bound is applied. |
| `position_filter_mode` | `string` | No | Selects which keywords pass the position\_min/position\_max range relative to base\_date and comparison\_date. ALL: end-date position is in range. NEW/LOST: entered or left the range in the interval. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   base_date?: string | null,
>   comparison_date?: string | null,
>   volume_type?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   volume_less_10?: number | null,
>   volume_11_100?: number | null,
>   volume_101_1000?: number | null,
>   volume_1001_10000?: number | null,
>   volume_10000_plus?: number | null
> } | null
> ```

***

### rankingsDistribution

`positionTrackingReports.rankingsDistribution`

This request returns the rankings distribution for the selected target. Cost: 20 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.rankingsDistribution({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `base_date` | `string` | Yes | First date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured from this date. Example: 2026-01-01 |
| `comparison_date` | `string` | Yes | Second date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured to this date. Example: 2026-01-02 |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `volume_min` | `number` | No | Minimum search volume, inclusive. If omitted, no lower volume bound is applied. Applies to Google campaigns only. |
| `volume_max` | `number` | No | Maximum search volume, inclusive. If omitted, no upper volume bound is applied. Applies to Google campaigns only. |
| `keyword_contains` | `string[]` | No | Comma-separated list of keyword substrings to include. A keyword matches if its text contains any of the listed substrings. Encode reserved characters in each value (for example, & → %26). |
| `keyword_not_contains` | `string[]` | No | Comma-separated list of keyword substrings to exclude. Excludes keywords containing any listed substring. URL-encode each substring, then join them with commas (,). For example, encode & as %26. |
| `tags` | `string[]` | No | Comma-separated list of tags to include. A keyword matches if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `tags_exclude` | `string[]` | No | Comma-separated list of tags to exclude. A keyword is excluded if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |
| `order_by` | `string` | No | Field the report result should be sorted by. Default: ORDER\_BY\_VISIBILITY. |
| `order_top_segment` | `string` | No | Top bucket used for sorting. Default: ORDER\_TOP\_SEGMENT\_ALL. Supported values: ORDER\_TOP\_SEGMENT\_ALL, ORDER\_TOP\_SEGMENT\_IMPROVED, ORDER\_TOP\_SEGMENT\_DECLINED, ORDER\_TOP\_SEGMENT\_NEW, ORDER\_TOP\_SEGMENT\_L... |
| `order_date_point` | `string` | No | Sort using the begin, end, or change value of order\_by. Default: ORDER\_DATE\_POINT\_END. Supported values: ORDER\_DATE\_POINT\_BEGIN, ORDER\_DATE\_POINT\_END, ORDER\_DATE\_POINT\_DIFF, ORDER\_DATE\_POINT\_DIFF\_ABS. |
| `direction` | `string` | No | Sort order for the result set (ascending or descending). Default: ASC. Supported values: ASC, DESC. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   base_date?: string | null,
>   comparison_date?: string | null,
>   volume_type?: string | null,
>   total?: number | null,
>   is_crawled_volumes_cpc?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   date?: string | null,
>   volume?: number | null,
>   visibility?: number | null,
>   visibility_diff?: number | null,
>   share_of_voice?: number | null,
>   share_of_voice_diff?: number | null,
>   estimated_traffic?: number | null,
>   estimated_traffic_diff?: number | null,
>   buckets?: {
>     top_3?: {
>       total_count?: number | null,
>       difference_count?: number | null,
>       improved_count?: number | null,
>       declined_count?: number | null,
>       new_count?: number | null,
>       lost_count?: number | null
>     } | null,
>     top_10?: {
>       total_count?: number | null,
>       difference_count?: number | null,
>       improved_count?: number | null,
>       declined_count?: number | null,
>       new_count?: number | null,
>       lost_count?: number | null
>     } | null,
>     top_20?: {
>       total_count?: number | null,
>       difference_count?: number | null,
>       improved_count?: number | null,
>       declined_count?: number | null,
>       new_count?: number | null,
>       lost_count?: number | null
>     } | null,
>     top_50?: {
>       total_count?: number | null,
>       difference_count?: number | null,
>       improved_count?: number | null,
>       declined_count?: number | null,
>       new_count?: number | null,
>       lost_count?: number | null
>     } | null,
>     top_100?: {
>       total_count?: number | null,
>       difference_count?: number | null,
>       improved_count?: number | null,
>       declined_count?: number | null,
>       new_count?: number | null,
>       lost_count?: number | null
>     } | null
>   } | null
> } | null
> ```

***

### rankingsDistributionTrend

`positionTrackingReports.rankingsDistributionTrend`

This request returns the rankings distribution trend for the selected target over time. Cost: 20 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.rankingsDistributionTrend({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `date_from` | `string` | Yes | Interval start for the trend window (ISO-8601 YYYY-MM-DD). Example: 2026-01-01 |
| `date_to` | `string` | Yes | Interval end for the trend window (ISO-8601 YYYY-MM-DD). Example: 2026-01-02 |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `volume_min` | `number` | No | Minimum search volume, inclusive. If omitted, no lower volume bound is applied. Applies to Google campaigns only. |
| `volume_max` | `number` | No | Maximum search volume, inclusive. If omitted, no upper volume bound is applied. Applies to Google campaigns only. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   date_from?: string | null,
>   date_to?: string | null,
>   volume_type?: string | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   tracking_points?: {
>     date?: string | null,
>     buckets?: {
>       top_3?: {
>         total_count?: number | null,
>         unchanged_count?: number | null,
>         improved_count?: number | null,
>         declined_count?: number | null,
>         new_count?: number | null,
>         lost_count?: number | null
>       } | null,
>       top_10?: {
>         total_count?: number | null,
>         unchanged_count?: number | null,
>         improved_count?: number | null,
>         declined_count?: number | null,
>         new_count?: number | null,
>         lost_count?: number | null
>       } | null,
>       top_20?: {
>         total_count?: number | null,
>         unchanged_count?: number | null,
>         improved_count?: number | null,
>         declined_count?: number | null,
>         new_count?: number | null,
>         lost_count?: number | null
>       } | null,
>       top_50?: {
>         total_count?: number | null,
>         unchanged_count?: number | null,
>         improved_count?: number | null,
>         declined_count?: number | null,
>         new_count?: number | null,
>         lost_count?: number | null
>       } | null,
>       top_100?: {
>         total_count?: number | null,
>         unchanged_count?: number | null,
>         improved_count?: number | null,
>         declined_count?: number | null,
>         new_count?: number | null,
>         lost_count?: number | null
>       } | null,
>       positions_4_to_10?: {
>         total_count?: number | null,
>         unchanged_count?: number | null,
>         improved_count?: number | null,
>         declined_count?: number | null,
>         new_count?: number | null,
>         lost_count?: number | null
>       } | null,
>       positions_11_to_20?: {
>         total_count?: number | null,
>         unchanged_count?: number | null,
>         improved_count?: number | null,
>         declined_count?: number | null,
>         new_count?: number | null,
>         lost_count?: number | null
>       } | null,
>       positions_21_to_100?: {
>         total_count?: number | null,
>         unchanged_count?: number | null,
>         improved_count?: number | null,
>         declined_count?: number | null,
>         new_count?: number | null,
>         lost_count?: number | null
>       } | null,
>       outside_top_100?: {
>         total_count?: number | null,
>         unchanged_count?: number | null,
>         improved_count?: number | null,
>         declined_count?: number | null,
>         new_count?: number | null,
>         lost_count?: number | null
>       } | null
>     } | null
>   }[] | null
> } | null
> ```

***

### tags

`positionTrackingReports.tags`

This request returns metrics aggregated by keyword tags for the selected target. Cost: 20 API units per tag.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.tags({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `base_date` | `string` | Yes | First date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured from this date. Example: 2026-01-01 |
| `comparison_date` | `string` | Yes | Second date in the comparison (ISO-8601 YYYY-MM-DD). Change metrics are measured to this date. Example: 2026-01-02 |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |
| `order_by` | `string` | No | Field the report result should be sorted by. Default: ORDER\_BY\_TAG. |
| `order_date_point` | `string` | No | Sort using the begin, end, or change value of order\_by. Default: ORDER\_DATE\_POINT\_END. Supported values: ORDER\_DATE\_POINT\_BEGIN, ORDER\_DATE\_POINT\_END, ORDER\_DATE\_POINT\_DIFF, ORDER\_DATE\_POINT\_DIFF\_ABS. |
| `direction` | `string` | No | Sort order for the result set (ascending or descending). Default: ASC. Supported values: ASC, DESC. |
| `limit` | `number` | No | Maximum number of rows to return in the response body. Default: 10. |
| `offset` | `number` | No | Number of matching rows skipped before returning results. Default: 0. |
| `tags` | `string[]` | No | Comma-separated list of tags to include. A keyword matches if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `tags_exclude` | `string[]` | No | Comma-separated list of tags to exclude. A keyword is excluded if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   base_date?: string | null,
>   comparison_date?: string | null,
>   volume_type?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   total?: number | null,
>   is_crawled_volumes_cpc?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   tag?: string | null,
>   metrics?: {
>     date?: string | null,
>     average_position?: number | null,
>     visibility?: number | null,
>     traffic?: number | null,
>     share_of_voice?: number | null
>   }[] | null,
>   diff?: {
>     average_position?: number | null,
>     visibility?: number | null,
>     traffic?: number | null,
>     share_of_voice?: number | null
>   } | null,
>   keywords_count?: number | null,
>   volume?: number | null
> }[] | null
> ```

***

### tagsTrend

`positionTrackingReports.tagsTrend`

This request returns trend data for keyword tags over the selected period. Use it to see how each tag group changes over time by metrics such as average position, visibility, traffic, and share of voice. Cost: 20 API units per tag.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.positionTrackingReports.tagsTrend({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `string` | Yes | Position Tracking campaign identifier from the List Project Campaigns or Create Campaign endpoint. |
| `channel` | `string` | Yes | Search channel to include in the report: organic listings or paid ads. Supported values: ORGANIC, PAID. |
| `date_from` | `string` | Yes | Interval start for the trend window (ISO-8601 YYYY-MM-DD). Example: 2026-01-01 |
| `date_to` | `string` | Yes | Interval end for the trend window (ISO-8601 YYYY-MM-DD). Example: 2026-01-02 |
| `target_url` | `string` | No | Target URL or URL mask whose rankings are analyzed in this report. If omitted, the primary URL configured on the campaign is used. Use asterisks (\*) to set the matching scope. |
| `target_business_name` | `string` | No | Business name used to match the campaign target in local pack or map results when those results list businesses without URLs. |
| `volume_type` | `string` | No | Search volume aggregation level. Supported values: NATIONAL, REGIONAL, LOCAL. If not provided, the value is taken from campaign settings. Applies to Google campaigns only. |
| `excluded_linktypes` | `string[]` | No | Comma-separated list of SERP features. Excluded SERP feature blocks don’t receive a position. Remaining blocks are renumbered as if the excluded blocks weren’t on the SERP. |
| `tags` | `string[]` | No | Comma-separated list of tags to include. A keyword matches if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |
| `tags_exclude` | `string[]` | No | Comma-separated list of tags to exclude. A keyword is excluded if it has any of the listed tags. Encode reserved characters in each value (for example, & → %26). Encode each item, then join with ,. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   success?: boolean | null,
>   status_code?: number | null,
>   request_id?: string | null,
>   campaign_id?: string | null,
>   channel?: string | null,
>   date_from?: string | null,
>   date_to?: string | null,
>   volume_type?: string | null,
>   total?: number | null,
>   is_crawled_volumes_cpc?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   tag?: string | null,
>   tracking_points?: {
>     date?: string | null,
>     average_position?: number | null,
>     visibility?: number | null,
>     traffic?: number | null,
>     share_of_voice?: number | null
>   }[] | null
> }[] | null
> ```

***

## Projects

### create

`projects.create`

Create a new Semrush project for a domain

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.projects.create({});
```

**Input**

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

`domain` must not include a protocol (use `example.com`). `project_name` cannot contain `~`, `` ` ``, `!`, `#`, `%`, `'`, `^`, `&`, `*`, `=`, `[`, `]`, `\`, `/`, `{`, `}`, `|`, `"`, `:`, `<`, `>`, or `?`.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   project_id?: number | null,
>   project_name?: string | null,
>   domain?: string | null,
>   domain_unicode?: string | null,
>   owner_id?: number | null,
>   permissions?: {
>     read?: boolean | null,
>     edit?: boolean | null,
>     delete?: boolean | null,
>     share?: boolean | null,
>     downgraded?: boolean | null
>   } | null,
>   tools?: {
>     name?: string | null
>   }[] | null
> }
> ```

***

### delete

`projects.delete`

Permanently delete a Semrush project and all associated tools, settings, and history

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.semrush.api.projects.delete({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `project_id` | `number \| string` | Yes | — |

Returns HTTP 200 with `{ meta, data: { project_id } }` and permanently deletes the project along with its tools, settings, and history.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   project_id?: number | null
> }
> ```

***

### get

`projects.get`

Get details for a single Semrush project by project ID

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.projects.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `project_id` | `number \| string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   project_id?: number | null,
>   project_name?: string | null,
>   domain?: string | null,
>   domain_unicode?: string | null,
>   owner_id?: number | null,
>   permissions?: {
>     read?: boolean | null,
>     edit?: boolean | null,
>     delete?: boolean | null,
>     share?: boolean | null,
>     downgraded?: boolean | null
>   } | null,
>   tools?: {
>     name?: string | null
>   }[] | null
> }
> ```

***

### list

`projects.list`

List accessible Semrush projects with optional scope, limit, and offset pagination

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.projects.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `scope` | `OWN \| ALL \| SHARED \| CORPORATE` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   scope?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   total_count?: number | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   project_id?: number | null,
>   project_name?: string | null,
>   domain?: string | null,
>   domain_unicode?: string | null,
>   owner_id?: number | null,
>   permissions?: {
>     read?: boolean | null,
>     edit?: boolean | null,
>     delete?: boolean | null,
>     share?: boolean | null,
>     downgraded?: boolean | null
>   } | null,
>   tools?: {
>     name?: string | null
>   }[] | null
> }[]
> ```

***

### update

`projects.update`

Rename an existing Semrush project by project ID

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.projects.update({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `project_id` | `number \| string` | Yes | — |
| `project_name` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   project_id?: number | null,
>   project_name?: string | null,
>   domain?: string | null,
>   domain_unicode?: string | null,
>   owner_id?: number | null,
>   permissions?: {
>     read?: boolean | null,
>     edit?: boolean | null,
>     delete?: boolean | null,
>     share?: boolean | null,
>     downgraded?: boolean | null
>   } | null,
>   tools?: {
>     name?: string | null
>   }[] | null
> }
> ```

***

## Prompt Tracking

### brands

`promptTracking.brands`

Lists the brands in a project: your own brand (MAIN), tracked competitors (BENCHMARK), and other brands (OTHER).

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.promptTracking.brands({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. An unknown workspace\_id returns a 404 error. |
| `project_id` | `string` | Yes | AIO tracking project ID (UUID), as returned by the Get AIO Projects endpoint. The project must belong to the specified workspace; otherwise, the request returns a 404 error. |
| `brand_type` | `string` | No | Type of brands to return. If omitted, brands of all types are returned. Supported values: MAIN, BENCHMARK, OTHER. |
| `fields` | `string[]` | No | Response fields to return. If omitted, all fields are returned. |
| `order_by` | `string` | No | Field to sort the results by. |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC. |
| `limit` | `number` | No | Number of results to return. Default: 100. Minimum: 1. Maximum: 10000. |
| `offset` | `number` | No | Number of results to skip. The sum of offset and limit must not exceed 50000. |
| `format` | `json` | No | Response format. Supported values: json, csv. Default: json. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   brand?: string | null,
>   primary_url?: string | null,
>   domain?: string | null,
>   brand_type?: string | null
> }[] | null
> ```

***

### citations

`promptTracking.citations`

Returns citations of the brand’s own domains in AI platform responses, broken down by prompt, for the selected date range. Results are scoped to a single brand.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.promptTracking.citations({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. An unknown workspace\_id returns a 404 error. |
| `project_id` | `string` | Yes | AIO tracking project ID (UUID), as returned by the Get AIO Projects endpoint. The project must belong to the specified workspace; otherwise, the request returns a 404 error. |
| `date_from` | `string` | Yes | Start date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-01-01 |
| `date_to` | `string` | Yes | End date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-12-01 |
| `brand` | `string` | Yes | Name of the brand to measure, as returned by the Get Brands endpoint. An unknown brand returns an empty result rather than an error. Example: Acme |
| `ai_platform` | `string` | No | AI platform to return results for. If omitted, results cover all tracked platforms. |
| `prompt` | `string` | No | Limits results to a single prompt, identified by its text (not by an internal ID). Example: best project management software |
| `domain_type` | `string` | No | Type of the cited domain’s owner, with the same values as brand\_type in Get Brands. If omitted, all types are returned. Supported values: MAIN, BENCHMARK, OTHER. |
| `fields` | `string[]` | No | Response fields to return. If omitted, all fields are returned. |
| `order_by` | `string` | No | Field to sort the results by. |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC. |
| `limit` | `number` | No | Number of results to return. Default: 100. Minimum: 1. Maximum: 10000. |
| `offset` | `number` | No | Number of results to skip. The sum of offset and limit must not exceed 50000. |
| `filter` | `string` | No | Filter expression. For the syntax, refer to Filtering. Filterable fields: tags. |
| `format` | `json` | No | Response format. Supported values: json, csv. Default: json. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   prompt?: string | null,
>   ai_platform?: string | null,
>   date?: string | null,
>   domain?: string | null,
>   subdomain?: string | null,
>   url?: string | null,
>   title?: string | null,
>   domain_type?: string | null,
>   citation_count?: number | null,
>   cited_url_count?: number | null
> }[] | null
> ```

***

### competitors

`promptTracking.competitors`

Returns the same metrics as the brand endpoints for every competitor brand (brand type BENCHMARK or OTHER) in a single call. Metrics use the same definitions as the Get Brand Mentions and Get Brand Visibility endpoints.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.promptTracking.competitors({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. An unknown workspace\_id returns a 404 error. |
| `project_id` | `string` | Yes | AIO tracking project ID (UUID), as returned by the Get AIO Projects endpoint. The project must belong to the specified workspace; otherwise, the request returns a 404 error. |
| `date_from` | `string` | Yes | Start date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-01-01 |
| `date_to` | `string` | Yes | End date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-12-01 |
| `ai_platform` | `string` | No | AI platform to return results for. If omitted, results cover all tracked platforms. |
| `brand_type` | `string` | No | Competitor type: BENCHMARK or OTHER. If omitted, both types are returned. Supported values: MAIN, BENCHMARK, OTHER. |
| `fields` | `string[]` | No | Response fields to return. If omitted, all fields are returned. |
| `order_by` | `string` | No | Field to sort the results by. |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC. |
| `limit` | `number` | No | Number of results to return. Default: 100. Minimum: 1. Maximum: 10000. |
| `offset` | `number` | No | Number of results to skip. The sum of offset and limit must not exceed 50000. |
| `filter` | `string` | No | Filter expression. For the syntax, refer to Filtering. Filterable fields: tags, avg\_position. Example: avg\_position > 2 |
| `format` | `json` | No | Response format. Supported values: json, csv. Default: json. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   brand?: string | null,
>   ai_platform?: string | null,
>   date?: string | null,
>   visibility?: number | null,
>   mention_count?: number | null,
>   avg_position?: number | null,
>   share_of_voice?: number | null,
>   brand_type?: string | null
> }[] | null
> ```

***

### mentions

`promptTracking.mentions`

Returns brand mentions per prompt for the selected date range.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.promptTracking.mentions({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. An unknown workspace\_id returns a 404 error. |
| `project_id` | `string` | Yes | AIO tracking project ID (UUID), as returned by the Get AIO Projects endpoint. The project must belong to the specified workspace; otherwise, the request returns a 404 error. |
| `date_from` | `string` | Yes | Start date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-01-01 |
| `date_to` | `string` | Yes | End date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-12-01 |
| `brand` | `string` | Yes | Name of the brand to measure, as returned by the Get Brands endpoint. An unknown brand returns an empty result rather than an error. Example: Acme |
| `ai_platform` | `string` | No | AI platform to return results for. If omitted, results cover all tracked platforms. |
| `prompt` | `string` | No | Prompt text to filter results by. Pass the prompt text itself, not an internal ID. |
| `fields` | `string[]` | No | Response fields to return. If omitted, all fields are returned. |
| `order_by` | `string` | No | Field to sort the results by. |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC. |
| `limit` | `number` | No | Number of results to return. Default: 100. Minimum: 1. Maximum: 10000. |
| `offset` | `number` | No | Number of results to skip. The sum of offset and limit must not exceed 50000. |
| `filter` | `string` | No | Filter expression. For the syntax, refer to Filtering. Filterable fields: tags, topic, avg\_position, mention\_count. Example: mention\_count > 10 |
| `format` | `json` | No | Response format. Supported values: json, csv. Default: json. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   prompt?: string | null,
>   ai_platform?: string | null,
>   date?: string | null,
>   tags?: string[] | null,
>   topic?: string | null,
>   product_name?: string | null,
>   category?: string | null,
>   mention_count?: number | null,
>   avg_position?: number | null,
>   share_of_voice?: number | null
> }[] | null
> ```

***

### prompts

`promptTracking.prompts`

Returns the prompts tracked in an AIO project, with their tags and topic. The endpoint takes no date range: it reflects the current tracking setup, not history.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.promptTracking.prompts({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. An unknown workspace\_id returns a 404 error. |
| `project_id` | `string` | Yes | AIO tracking project ID (UUID), as returned by the Get AIO Projects endpoint. The project must belong to the specified workspace; otherwise, the request returns a 404 error. |
| `ai_platform` | `string` | No | AI platform to return prompts for. If omitted, results cover all tracked platforms. |
| `fields` | `string[]` | No | Response fields to return. If omitted, all fields are returned. |
| `order_by` | `string` | No | Field to sort the results by. |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC. |
| `limit` | `number` | No | Number of results to return. Default: 100. Minimum: 1. Maximum: 10000. |
| `offset` | `number` | No | Number of results to skip. The sum of offset and limit must not exceed 50000. |
| `filter` | `string` | No | Filter expression. For the syntax, refer to Filtering. Filterable fields: tags, topic. |
| `format` | `json` | No | Response format. Supported values: json, csv. Default: json. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   prompt?: string | null,
>   ai_platform?: string | null,
>   tags?: string[] | null,
>   topic?: string | null,
>   primary_intent?: string | null,
>   secondary_intent?: string | null
> }[] | null
> ```

***

### responses

`promptTracking.responses`

Returns the full text of AI platform responses to the project’s tracked prompts for the selected date range.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.promptTracking.responses({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. An unknown workspace\_id returns a 404 error. |
| `project_id` | `string` | Yes | AIO tracking project ID (UUID), as returned by the Get AIO Projects endpoint. The project must belong to the specified workspace; otherwise, the request returns a 404 error. |
| `date_from` | `string` | Yes | Start date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-01-01 |
| `date_to` | `string` | Yes | End date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-12-01 |
| `ai_platform` | `string` | No | AI platform to return responses for. If omitted, results cover all tracked platforms. |
| `prompt` | `string` | No | Limits results to a single prompt, matched by its prompt text (not an internal ID). Example: best project management software |
| `fields` | `string[]` | No | Response fields to return. If omitted, all fields are returned. |
| `order_by` | `string` | No | Field to sort the results by. |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC. |
| `limit` | `number` | No | Number of results to return. Default: 10. Minimum: 1. Maximum: 1000. |
| `offset` | `number` | No | Number of results to skip. The sum of offset and limit must not exceed 50000. |
| `filter` | `string` | No | Filter expression. For the syntax, refer to Filtering. Filterable fields: tags. |
| `format` | `json` | No | Response format. Supported values: json, csv. Default: json. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   prompt?: string | null,
>   date?: string | null,
>   ai_platform?: string | null,
>   model_version?: string | null,
>   tags?: string[] | null,
>   response_text?: string | null
> }[] | null
> ```

***

### sentiment

`promptTracking.sentiment`

Returns how the brand is described in AI responses where it’s mentioned: counts of positive, neutral, and negative sentiment per prompt, AI platform, and date.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.promptTracking.sentiment({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. An unknown workspace\_id returns a 404 error. |
| `project_id` | `string` | Yes | AIO tracking project ID (UUID), as returned by the Get AIO Projects endpoint. The project must belong to the specified workspace; otherwise, the request returns a 404 error. |
| `date_from` | `string` | Yes | Start date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-01-01 |
| `date_to` | `string` | Yes | End date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-12-01 |
| `brand` | `string` | Yes | Name of the brand to measure, as returned by the Get Brands endpoint. An unknown brand returns an empty result rather than an error. Example: Acme |
| `ai_platform` | `string` | No | AI platform to return results for. If omitted, results cover all tracked platforms. |
| `prompt` | `string` | No | Limits results to a specific prompt. Pass the prompt text, not an internal ID.Example: best project management software |
| `fields` | `string[]` | No | Response fields to return. If omitted, all fields are returned. |
| `order_by` | `string` | No | Field to sort the results by. |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC. |
| `limit` | `number` | No | Number of results to return. Default: 100. Minimum: 1. Maximum: 10000. |
| `offset` | `number` | No | Number of results to skip. The sum of offset and limit must not exceed 50000. |
| `filter` | `string` | No | Filter expression. For the syntax, refer to Filtering. Filterable fields: tags. |
| `format` | `json` | No | Response format. Supported values: json, csv. Default: json. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   total_count?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   prompt?: string | null,
>   ai_platform?: string | null,
>   date?: string | null,
>   product_name?: string | null,
>   sentiment_positive_count?: number | null,
>   sentiment_neutral_count?: number | null,
>   sentiment_negative_count?: number | null,
>   sentiment_positive_rate?: number | null
> }[] | null
> ```

***

### sources

`promptTracking.sources`

Lists all domains cited in AI responses across tracked prompts, not only brand-owned domains. Unlike Get Brand Citations, results aren’t scoped to a brand.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.promptTracking.sources({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. An unknown workspace\_id returns a 404 error. |
| `project_id` | `string` | Yes | AIO tracking project ID (UUID), as returned by the Get AIO Projects endpoint. The project must belong to the specified workspace; otherwise, the request returns a 404 error. |
| `date_from` | `string` | Yes | Start date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-01-01 |
| `date_to` | `string` | Yes | End date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-12-01 |
| `ai_platform` | `string` | No | AI platform to return results for. If omitted, results cover all tracked platforms. |
| `prompt` | `string` | No | Limits results to a single tracked prompt, matched by the prompt text (not by an internal ID). Example: best running shoes for beginners |
| `domain_type` | `string` | No | Type of the cited domain’s owner. If omitted, all types are returned. Supported values: MAIN, BENCHMARK, OTHER. |
| `fields` | `string[]` | No | Response fields to return. If omitted, all fields are returned. |
| `order_by` | `string` | No | Field to sort the results by. |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC. |
| `limit` | `number` | No | Number of results to return. Default: 100. Minimum: 1. Maximum: 10000. |
| `offset` | `number` | No | Number of results to skip. The sum of offset and limit must not exceed 50000. |
| `filter` | `string` | No | Filter expression. For the syntax, refer to Filtering. Filterable fields: tags. |
| `format` | `json` | No | Response format. Supported values: json, csv. Default: json. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   domain?: string | null,
>   subdomain?: string | null,
>   url?: string | null,
>   title?: string | null,
>   domain_type?: string | null,
>   ai_platform?: string | null,
>   date?: string | null,
>   source_citation_count?: number | null,
>   source_response_count?: number | null
> }[] | null
> ```

***

### sourceVisibility

`promptTracking.sourceVisibility`

Returns citation coverage over time for the specified brand.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.promptTracking.sourceVisibility({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. An unknown workspace\_id returns a 404 error. |
| `project_id` | `string` | Yes | AIO tracking project ID (UUID), as returned by the Get AIO Projects endpoint. The project must belong to the specified workspace; otherwise, the request returns a 404 error. |
| `date_from` | `string` | Yes | Start date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-01-01 |
| `date_to` | `string` | Yes | End date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-12-01 |
| `brand` | `string` | Yes | Name of the brand to measure, as returned by the Get Brands endpoint. An unknown brand returns an empty result rather than an error. |
| `ai_platform` | `string` | No | AI platform to return results for. If omitted, results cover all tracked platforms. |
| `fields` | `string[]` | No | Response fields to return. If omitted, all fields are returned. |
| `order_by` | `string` | No | Field to sort the results by. |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC. |
| `limit` | `number` | No | Number of results to return. Default: 100. Minimum: 1. Maximum: 10000. |
| `offset` | `number` | No | Number of results to skip. The sum of offset and limit must not exceed 50000. |
| `filter` | `string` | No | Filter expression. For the syntax, refer to Filtering. Filterable fields: tags. |
| `format` | `json` | No | Response format. Supported values: json, csv. Default: json. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   date?: string | null,
>   ai_platform?: string | null,
>   source_visibility?: number | null,
>   responses_with_citation_count?: number | null,
>   total_response_count?: number | null
> }[] | null
> ```

***

### topics

`promptTracking.topics`

Returns the topics that the tracked prompts belong to, with topic volume and, optionally, brand visibility per topic.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.promptTracking.topics({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. An unknown workspace\_id returns a 404 error. |
| `project_id` | `string` | Yes | AIO tracking project ID (UUID), as returned by the Get AIO Projects endpoint. The project must belong to the specified workspace; otherwise, the request returns a 404 error. |
| `date_from` | `string` | Yes | Start date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-01-01 |
| `date_to` | `string` | Yes | End date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-12-01 |
| `brand` | `string` | No | Name of the brand to measure, as returned by the Get Brands endpoint. The topic\_visibility field is returned only when this parameter is passed. Example: Semrush |
| `ai_platform` | `string` | No | AI platform to return results for. If omitted, results cover all tracked platforms. |
| `fields` | `string[]` | No | Response fields to return. If omitted, all fields are returned. |
| `order_by` | `string` | No | Field to sort the results by. |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC. |
| `limit` | `number` | No | Number of results to return. Default: 100. Minimum: 1. Maximum: 10000. |
| `offset` | `number` | No | Number of results to skip. The sum of offset and limit must not exceed 50000. |
| `filter` | `string` | No | Filter expression. For the syntax, refer to Filtering. Filterable fields: tags, topic. |
| `format` | `json` | No | Response format. Supported values: json, csv. Default: json. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   topic_id?: string | null,
>   topic?: string | null,
>   topic_volume?: number | null,
>   topic_prompt_count?: number | null,
>   primary_intent?: string | null,
>   topic_visibility?: number | null
> }[] | null
> ```

***

### trackingDates

`promptTracking.trackingDates`

Returns the dates for which the project has data. Use them to choose date\_from and date\_to values for the other prompt tracking endpoints. The list of dates can have gaps.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.promptTracking.trackingDates({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. An unknown workspace\_id returns a 404 error. |
| `project_id` | `string` | Yes | AIO tracking project ID (UUID), as returned by the Get AIO Projects endpoint. The project must belong to the specified workspace; otherwise, the request returns a 404 error. |
| `ai_platform` | `string` | No | AI platform to return dates for. If omitted, the response includes dates with at least one successful run on any tracked platform. |
| `order_by` | `string` | No | Field to sort the results by. |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC. |
| `limit` | `number` | No | Number of results to return. Default: 100. Minimum: 1. Maximum: 10000. |
| `offset` | `number` | No | Number of results to skip. The sum of offset and limit must not exceed 50000. |
| `format` | `json` | No | Response format. Supported values: json, csv. Default: json. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   date?: string | null
> }[] | null
> ```

***

### visibility

`promptTracking.visibility`

Returns brand visibility over time. The numerator (mention\_count) and denominator (total\_response\_count) are returned alongside the ratio (visibility), so you can re-aggregate across platforms without double counting.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.promptTracking.visibility({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `workspace_id` | `string` | Yes | Workspace ID (UUID), as returned by the Get Workspaces endpoint. An unknown workspace\_id returns a 404 error. |
| `project_id` | `string` | Yes | AIO tracking project ID (UUID), as returned by the Get AIO Projects endpoint. The project must belong to the specified workspace; otherwise, the request returns a 404 error. |
| `date_from` | `string` | Yes | Start date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-01-01 |
| `date_to` | `string` | Yes | End date of the reporting period (ISO 8601 date, formatted as YYYY-MM-DD). Example: 2024-12-01 |
| `brand` | `string` | Yes | Name of the brand to measure, as returned by the Get Brands endpoint. An unknown brand returns an empty result rather than an error. Example: Acme |
| `ai_platform` | `string` | No | AI platform to return results for. If omitted, results cover all tracked platforms. |
| `fields` | `string[]` | No | Response fields to return. If omitted, all fields are returned. |
| `order_by` | `string` | No | Field to sort the results by. |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC. |
| `limit` | `number` | No | Number of results to return. Default: 100. Minimum: 1. Maximum: 10000. |
| `offset` | `number` | No | Number of results to skip. The sum of offset and limit must not exceed 50000. |
| `filter` | `string` | No | Filter expression. For the syntax, refer to Filtering. Filterable fields: tags. |
| `format` | `json` | No | Response format. Supported values: json, csv. Default: json. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   date?: string | null,
>   ai_platform?: string | null,
>   visibility?: number | null,
>   mention_count?: number | null,
>   total_response_count?: number | null
> }[] | null
> ```

***

## Shopping Ads

### competitorsMonthly

`shoppingAds.competitorsMonthly`

List monthly Google Shopping competitors sharing PLA keyword auctions with a domain

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.shoppingAds.competitorsMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   domain?: string | null,
>   competition_density?: number | null,
>   common_keywords?: number | null,
>   adwords_positions?: number | null,
>   adwords_traffic?: number | null,
>   adwords_traffic_cost?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   organic_positions?: number | null,
>   pla_positions?: number | null
> }[]
> ```

***

### competitorsMonthlyTotal

`shoppingAds.competitorsMonthlyTotal`

Get the total count of monthly Shopping Ads competitors

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.shoppingAds.competitorsMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### keywordMonthly

`shoppingAds.keywordMonthly`

List monthly Google Shopping product ads triggered by a specific keyword

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.shoppingAds.keywordMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `keyword` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `month` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   domain?: string | null,
>   url?: string | null,
>   price?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   title?: string | null,
>   shop_name?: string | null,
>   image?: string | null,
>   crawled_time?: string | null,
>   positions?: number | null
> }[]
> ```

***

### keywordMonthlyTotal

`shoppingAds.keywordMonthlyTotal`

Get the total count of monthly Shopping product ads for a keyword

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.shoppingAds.keywordMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `keyword` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `month` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### keywordsMonthly

`shoppingAds.keywordsMonthly`

List monthly Shopping Ads keyword positions, product prices, and merchants for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.shoppingAds.keywordsMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   keyword?: string | null,
>   url?: string | null,
>   position?: number | null,
>   volume?: number | null,
>   cpc?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   keyword_difficulty?: number | null,
>   competition_density?: number | null,
>   shop_name?: string | null,
>   title?: string | null,
>   results?: number | null,
>   price?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   image?: string | null,
>   trends?: number[] | null,
>   uniq_hash?: string | null
> }[]
> ```

***

### keywordsMonthlyTotal

`shoppingAds.keywordsMonthlyTotal`

Get the total count of monthly Shopping Ads keyword positions for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.shoppingAds.keywordsMonthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### monthly

`shoppingAds.monthly`

List monthly Google Shopping (PLA) advertisements, prices, and merchant titles for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.shoppingAds.monthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `order_by` | `string` | No | — |
| `direction` | `ASC \| DESC` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   url?: string | null,
>   title?: string | null,
>   positions?: number | null,
>   price?: {
>     value?: number | null,
>     currency?: string | null
>   } | null,
>   shop_name?: string | null
> }[]
> ```

***

### monthlyTotal

`shoppingAds.monthlyTotal`

Get the total count of monthly Shopping advertisements for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.shoppingAds.monthlyTotal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `month` | `string` | No | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   total?: number | null
> }
> ```

***

### overviewTrendMonthly

`shoppingAds.overviewTrendMonthly`

Get historical monthly Shopping Ads positions and ad count trends for a target

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.shoppingAds.overviewTrendMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | — |
| `scope` | `ROOT_DOMAIN \| SUBDOMAIN \| SUBFOLDER \| PAGE` | Yes | — |
| `date_from` | `string` | Yes | — |
| `date_to` | `string` | Yes | — |
| `country` | `string` | Yes | — |
| `device_type` | `DESKTOP \| MOBILE` | Yes | — |
| `filter` | `string` | No | — |
| `fields` | `string[]` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object` | Yes | — |
| `data` | `object[]` | Yes | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> }
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   month?: string | null,
>   positions?: number | null,
>   ads?: number | null
> }[]
> ```

***

## Site Audit

### abortAudit

`siteAudit.abortAudit`

This request aborts the campaign’s in-progress audit and discards its partial results. To stop the audit and keep the pages crawled so far, use the Stop Audit endpoint instead. Discards the partial results of the running audit. Cost: 0 API units per request.

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.semrush.api.siteAudit.abortAudit({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean \| null` | No | — |

***

### createCampaign

`siteAudit.createCampaign`

This request sets up Site Audit for a project by creating its campaign with the initial crawl settings. A successful call returns 201 Created. Cost: 0 API units per request.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.siteAudit.createCampaign({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `project_id` | `number` | Yes | ID of the project to create the campaign for. The new campaign’s campaign\_id is this project ID. Learn how to get your project ID › |
| `settings` | `object` | No | Crawl settings the campaign starts with. |

> [accordion] settings full type
>
> ```ts theme={null}
> {
>   domain: string,
>   page_limit: number,
>   scheme?: string,
>   crawl_source?: {
>     website?: Record<string, any>,
>     sitemap_on_site?: Record<string, any>,
>     custom_sitemap?: {
>       url: string
>     },
>     list_of_urls?: Record<string, any>
>   },
>   schedule?: string,
>   user_agent_type: string,
>   js_rendering?: string,
>   crawl_subdomains?: boolean,
>   email_notification_enabled?: boolean,
>   excluded_issues?: string[],
>   removed_parameters?: string[],
>   path_masks?: {
>     allow?: string[],
>     disallow?: string[]
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   campaign_id?: number | null,
>   name?: string | null,
>   initial_audit_url?: string | null,
>   settings?: {
>     domain?: string | null,
>     page_limit?: number | null,
>     scheme?: string | null,
>     crawl_source?: {
>       website?: {
>       } | null
>     } | null,
>     schedule?: string | null,
>     user_agent_type?: string | null,
>     js_rendering?: string | null,
>     crawl_subdomains?: boolean | null,
>     email_notification_enabled?: boolean | null,
>     excluded_issues?: string[] | null,
>     removed_parameters?: string[] | null
>   } | null,
>   basic_auth_configured?: boolean | null,
>   web_bot_auth_configured?: boolean | null
> } | null
> ```

***

### deleteBasicAuth

`siteAudit.deleteBasicAuth`

This request removes the campaign’s stored basic auth credentials. After that, the crawler reaches only publicly accessible content. The request is idempotent and does not affect web bot auth settings. Cost: 0 API units per request.

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.semrush.api.siteAudit.deleteBasicAuth({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean \| null` | No | — |

***

### deleteWebBotAuth

`siteAudit.deleteWebBotAuth`

This request removes the campaign’s stored Web Bot Auth signature. After that, the crawler crawls as unverified traffic. The request is idempotent and does not affect basic auth settings. Cost: 0 API units per request.

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.semrush.api.siteAudit.deleteWebBotAuth({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean \| null` | No | — |

***

### getCampaign

`siteAudit.getCampaign`

This request returns a campaign’s metadata: its identity, current state, last successful audit report, and audit schedule. To get the campaign’s crawl configuration, use the Get Campaign Settings endpoint. Cost: 0 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.siteAudit.getCampaign({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   campaign_id?: number | null,
>   name?: string | null,
>   domain?: string | null,
>   status?: string | null,
>   last_success_audit_report_id?: string | null,
>   last_audit_at?: string | null,
>   last_failed_audit_at?: string | null,
>   next_audit_at?: string | null
> } | null
> ```

***

### getProgress

`siteAudit.getProgress`

This request returns the stage and crawl counters of the campaign’s current audit. When no audit is running, it returns the final values of the latest audit. Cost: 0 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.siteAudit.getProgress({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   campaign_id?: number | null,
>   pages_crawled?: number | null,
>   pages_limit?: number | null,
>   precrawl_status?: string | null,
>   resources_crawled?: number | null,
>   resources_total?: number | null,
>   stage?: string | null,
>   stoppable?: boolean | null
> } | null
> ```

***

### getSettings

`siteAudit.getSettings`

This request returns the crawl settings of a Site Audit campaign. The response does not include crawl credentials, only whether HTTP basic auth and Web Bot Auth are configured. Cost: 0 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.siteAudit.getSettings({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   campaign_id?: number | null,
>   name?: string | null,
>   initial_audit_url?: string | null,
>   settings?: {
>     domain?: string | null,
>     scheme?: string | null,
>     crawl_source?: {
>       website?: {
>       } | null
>     } | null,
>     schedule?: string | null,
>     user_agent_type?: string | null,
>     js_rendering?: string | null,
>     page_limit?: number | null,
>     crawl_subdomains?: boolean | null,
>     email_notification_enabled?: boolean | null,
>     excluded_issues?: string[] | null,
>     removed_parameters?: string[] | null,
>     path_masks?: {
>       allow?: string[] | null,
>       disallow?: string[] | null
>     } | null
>   } | null,
>   basic_auth_configured?: boolean | null,
>   web_bot_auth_configured?: boolean | null
> } | null
> ```

***

### listCampaigns

`siteAudit.listCampaigns`

This request returns your Site Audit campaigns, one page at a time. Use statuses to filter campaigns by state, and order\_by and direction to sort them. Cost: 0 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.siteAudit.listCampaigns({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `offset` | `number` | No | Number of campaigns to skip before returning results. Defaults to 0. |
| `limit` | `number` | No | Maximum number of campaigns to return. Defaults to 10, maximum 100; a larger value is refused. |
| `statuses` | `string[]` | No | Return only campaigns in these states. Omit to return all campaigns.- IN\_PROGRESS: An audit is running, at any stage. - FINISHED: The audit finished successfully. - ERROR: The audit failed. |
| `order_by` | `string` | No | Field to sort campaigns by. Defaults to LAST\_AUDIT\_AT. Ties are broken by campaign ID, so paging is stable.- LAST\_AUDIT\_AT: When the last audit finished, successfully or not. |
| `direction` | `string` | No | Sort direction. Defaults to DESC. Supported values: ASC, DESC. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   statuses?: string[] | null,
>   order_by?: string | null,
>   direction?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   total_count?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   campaign_id?: number | null,
>   name?: string | null,
>   domain?: string | null,
>   status?: string | null,
>   last_success_audit_report_id?: string | null,
>   last_audit_at?: string | null,
>   last_failed_audit_at?: string | null,
>   next_audit_at?: string | null
> }[] | null
> ```

***

### listCrawlUrls

`siteAudit.listCrawlUrls`

This request returns the seed URLs configured for a campaign, one page at a time. The crawler uses this list only when the campaign’s crawl source is list\_of\_urls. To replace the list, use the Update Crawl URLs endpoint. Cost: 0 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.siteAudit.listCrawlUrls({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |
| `offset` | `number` | No | Number of URLs to skip before returning results. Defaults to 0. |
| `limit` | `number` | No | Maximum number of URLs to return. Defaults to 100, maximum 1000. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `string[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   limit?: number | null,
>   offset?: number | null,
>   total_count?: number | null
> } | null
> ```

***

### replaceCrawlUrls

`siteAudit.replaceCrawlUrls`

This request replaces a campaign’s seed URL list in full. The campaign’s crawl source must already be list\_of\_urls; otherwise the request is refused. Cost: 0 API units per request.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.siteAudit.replaceCrawlUrls({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |
| `urls` | `string[]` | Yes | New seed URL list, from 1 to 100,000 entries. Each entry is an absolute http or https URL on the campaign domain or one of its subdomains, or a path starting with /.Example: \["[https://example.com/](https://example.com/)", "... |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   campaign_id?: number | null,
>   total_count?: number | null,
>   limit?: number | null
> } | null
> ```

***

### replaceSettings

`siteAudit.replaceSettings`

This request replaces the crawl settings of a Site Audit campaign in full. Any settings field you omit, or send with its default or empty value, is reset to its default. Cost: 0 API units per request.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.siteAudit.replaceSettings({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |
| `settings` | `object` | No | Full crawl settings. They replace the stored settings as a whole. |

> [accordion] settings full type
>
> ```ts theme={null}
> {
>   domain: string,
>   scheme?: string,
>   crawl_source?: {
>     website?: Record<string, any>,
>     sitemap_on_site?: Record<string, any>,
>     custom_sitemap?: {
>       url: string
>     },
>     list_of_urls?: Record<string, any>
>   },
>   schedule?: string,
>   user_agent_type: string,
>   js_rendering?: string,
>   page_limit: number,
>   crawl_subdomains?: boolean,
>   email_notification_enabled?: boolean,
>   excluded_issues?: string[],
>   removed_parameters?: string[],
>   path_masks?: {
>     allow?: string[],
>     disallow?: string[]
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   campaign_id?: number | null,
>   name?: string | null,
>   initial_audit_url?: string | null,
>   settings?: {
>     domain?: string | null,
>     scheme?: string | null,
>     crawl_source?: {
>       website?: {
>       } | null
>     } | null,
>     schedule?: string | null,
>     user_agent_type?: string | null,
>     js_rendering?: string | null,
>     page_limit?: number | null,
>     crawl_subdomains?: boolean | null,
>     email_notification_enabled?: boolean | null,
>     excluded_issues?: string[] | null,
>     removed_parameters?: string[] | null,
>     path_masks?: {
>       allow?: string[] | null,
>       disallow?: string[] | null
>     } | null
>   } | null,
>   basic_auth_configured?: boolean | null,
>   web_bot_auth_configured?: boolean | null
> } | null
> ```

***

### setBasicAuth

`siteAudit.setBasicAuth`

This request sets the login and password the crawler uses to access a site behind an HTTP basic authentication prompt (RFC 7617), such as a staging environment. Cost: 0 API units per request.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.siteAudit.setBasicAuth({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |
| `basic_auth` | `object` | Yes | Credentials to store. Both fields must be non-empty. To stop sending credentials, use the Delete Basic Auth endpoint. |

> [accordion] basic\_auth full type
>
> ```ts theme={null}
> {
>   login?: string,
>   password?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean \| null` | No | — |

***

### setWebBotAuth

`siteAudit.setWebBotAuth`

This request sets the Web Bot Auth signature the crawler presents to a site’s bot protection, so the crawler is identified as the bot it claims to be and is not blocked. Cost: 0 API units per request.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.siteAudit.setWebBotAuth({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |
| `web_bot_auth` | `object` | Yes | Signature headers to store. All three fields must be non-empty. To stop sending them, use the Delete Web Bot Auth endpoint. |

> [accordion] web\_bot\_auth full type
>
> ```ts theme={null}
> {
>   signature_agent?: string,
>   signature_input?: string,
>   signature?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean \| null` | No | — |

***

### startAudit

`siteAudit.startAudit`

This request starts a new audit for the campaign. The campaign must have crawl settings configured. Spends API units and starts a crawl of the site. Cost: 100 API units per request.

**Risk:** `destructive`

```ts theme={null}
await corsair.semrush.api.siteAudit.startAudit({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |

Spends 100 API units and starts an asynchronous crawl. Poll `siteAudit.getProgress` (free) until it finishes.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   audit_report_id?: string | null
> } | null
> ```

***

### stopAudit

`siteAudit.stopAudit`

This request gracefully stops the campaign’s in-progress audit. Pages crawled so far are kept. To discard the partial results instead, use the Abort Audit endpoint. Cost: 0 API units per request.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.siteAudit.stopAudit({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean \| null` | No | — |

***

### updateSettings

`siteAudit.updateSettings`

This request updates selected crawl settings of a Site Audit campaign. Only the fields listed in update\_mask are applied; the other stored settings stay unchanged. Cost: 0 API units per request.

**Risk:** `write`

```ts theme={null}
await corsair.semrush.api.siteAudit.updateSettings({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |
| `update_mask` | `string[]` | Yes | Names of top-level settings fields to apply, such as domain, page\_limit, schedule, or excluded\_issues. |
| `settings` | `object` | No | Crawl settings carrying the new values for the fields listed in update\_mask . Fields not listed there are ignored. |

Only the fields named in `update_mask` are written; array and object fields are replaced as a whole.

> [accordion] settings full type
>
> ```ts theme={null}
> {
>   domain?: string,
>   scheme?: string,
>   crawl_source?: {
>     website?: Record<string, any>,
>     sitemap_on_site?: Record<string, any>,
>     custom_sitemap?: {
>       url: string
>     },
>     list_of_urls?: Record<string, any>
>   },
>   schedule?: string,
>   user_agent_type?: string,
>   js_rendering?: string,
>   page_limit?: number,
>   crawl_subdomains?: boolean,
>   email_notification_enabled?: boolean,
>   excluded_issues?: string[],
>   removed_parameters?: string[],
>   path_masks?: {
>     allow?: string[],
>     disallow?: string[]
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   campaign_id?: number | null,
>   name?: string | null,
>   initial_audit_url?: string | null,
>   settings?: {
>     domain?: string | null,
>     scheme?: string | null,
>     crawl_source?: {
>       website?: {
>       } | null
>     } | null,
>     schedule?: string | null,
>     user_agent_type?: string | null,
>     js_rendering?: string | null,
>     page_limit?: number | null,
>     crawl_subdomains?: boolean | null,
>     email_notification_enabled?: boolean | null,
>     excluded_issues?: string[] | null,
>     removed_parameters?: string[] | null,
>     path_masks?: {
>       allow?: string[] | null,
>       disallow?: string[] | null
>     } | null
>   } | null,
>   basic_auth_configured?: boolean | null,
>   web_bot_auth_configured?: boolean | null
> } | null
> ```

***

## Site Audit Reports

### get

`siteAuditReports.get`

This request returns the full details of a single audit report. It returns a not-found error when the ID belongs to an audit that has not finished successfully, or to a report already removed by data retention. Cost: 10000 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.siteAuditReports.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |
| `audit_report_id` | `string` | Yes | Audit report ID, as returned by the List Audit Reports endpoint. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   audit_report_id?: string | null,
>   start_date?: string | null,
>   finish_date?: string | null,
>   pages_crawled?: number | null,
>   pages_limit?: number | null,
>   is_pages_limit_reached?: boolean | null,
>   settings_changed?: boolean | null,
>   user_agent_type?: string | null,
>   js_rendering?: string | null,
>   total_score?: {
>     value?: number | null,
>     delta?: number | null
>   } | null,
>   ai_search_score?: {
>     value?: number | null,
>     delta?: number | null
>   } | null,
>   thematic_scores?: {
>     crawlability?: {
>       value?: number | null,
>       delta?: number | null
>     } | null,
>     https?: {
>       value?: number | null,
>       delta?: number | null
>     } | null,
>     int_seo?: {
>       value?: number | null,
>       delta?: number | null
>     } | null,
>     linking?: {
>       value?: number | null,
>       delta?: number | null
>     } | null,
>     markups?: {
>       value?: number | null,
>       delta?: number | null
>     } | null,
>     performance?: {
>       value?: number | null,
>       delta?: number | null
>     } | null
>   } | null,
>   status_code_groups?: {
>     group?: string | null,
>     count?: number | null
>   }[] | null,
>   errors?: {
>     issue_type?: string | null,
>     count?: number | null,
>     delta?: number | null,
>     checks?: number | null
>   }[] | null,
>   warnings?: {
>     issue_type?: string | null,
>     count?: number | null,
>     delta?: number | null,
>     checks?: number | null
>   }[] | null,
>   notices?: {
>     issue_type?: string | null,
>     count?: number | null,
>     delta?: number | null,
>     checks?: number | null
>   }[] | null,
>   new_issues?: {
>     issue_type?: string | null,
>     count?: number | null
>   }[] | null,
>   fixed_issues?: {
>     issue_type?: string | null,
>     count?: number | null
>   }[] | null,
>   hidden_issues?: {
>     issue_type?: string | null,
>     count?: number | null
>   }[] | null,
>   excluded_issues?: any[] | null,
>   top_issues?: string[] | null,
>   top_insights?: string[] | null,
>   blocked_page_stats?: {
>     ai_search?: {
>       agent?: string | null,
>       count?: number | null
>     }[] | null
>   } | null
> } | null
> ```

***

### getIssue

`siteAuditReports.getIssue`

Each returned issue occurrence counts as one line. This request returns the occurrences of a single issue type in the campaign’s latest successful audit, with pagination, sorting, and filtering. Cost: 100 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.siteAuditReports.getIssue({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |
| `issue_type` | `string` | Yes | Issue type. Supported values: HTTP\_5XX, HTTP\_4XX, TITLE\_EMPTY, BOT\_BLOCKED, TITLE\_DUPLICATE, CONTENT\_DUPLICATE, INTERNAL\_LINK\_BROKEN, CRAWLING\_BAD, CRAWLING\_DNS\_BAD, CRAWLING\_URL\_BAD, EXTERNAL\_LINK\_BR... |
| `offset` | `number` | No | Number of occurrences to skip before returning results. Defaults to 0. |
| `limit` | `number` | No | Maximum number of occurrences to return. Defaults to 10, maximum 100. |
| `order_by` | `string` | No | Field to sort by. Defaults to SOURCE\_URL.- SOURCE\_URL: URL of the page the issue was found on (the occurrence’s source\_url field). |
| `direction` | `string` | No | Sort direction: ASC or DESC. Defaults to ASC. |
| `filter` | `string` | No | Filter expression for occurrences. Available fields: source\_url and discovered. Combine conditions with AND, OR, and NOT. |
| `visibility` | `string[]` | No | Occurrences to return, by visibility. Defaults to VISIBLE only; pass VISIBLE,HIDDEN to return both.- VISIBLE: Visible occurrences. - HIDDEN: Occurrences hidden by the user. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   audit_report_id?: string | null,
>   offset?: number | null,
>   limit?: number | null,
>   order_by?: string | null,
>   direction?: string | null,
>   visibility?: string[] | null,
>   total_count?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   page_id?: string | null,
>   page_title?: string | null,
>   source_url?: string | null,
>   target_url?: string | null,
>   discovered?: string | null,
>   occurrence_number?: number | null,
>   visibility?: string | null,
>   info?: {
>     title_duplicate_info?: {
>       count?: number | null,
>       urls?: string[] | null
>     } | null
>   } | null
> }[] | null
> ```

***

### getPage

`siteAuditReports.getPage`

This request returns the full report for a single audited page: its summary stats, the internal pages that link to it, and the pages that declare it as canonical. Cost: 40 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.siteAuditReports.getPage({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |
| `page_id` | `string` | Yes | Unique identifier of the audited page. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   page?: {
>     page_id?: string | null,
>     url?: string | null,
>     title?: string | null,
>     meta_description?: string | null,
>     status_code?: number | null,
>     errors?: number | null,
>     warnings?: number | null,
>     notices?: number | null,
>     total?: number | null,
>     issues_sum?: {
>       issue_type?: string | null,
>       count?: number | null
>     }[] | null,
>     markups?: string[] | null,
>     markups_total?: number | null,
>     depth?: number | null,
>     issue_priority?: number | null,
>     is_auditing?: boolean | null,
>     with_amp?: boolean | null,
>     hreflangs?: number | null,
>     with_hreflang?: boolean | null,
>     hreflang_issues_count?: number | null,
>     canonicalization?: string | null,
>     canonical?: string | null,
>     page_group?: string | null,
>     type?: string | null,
>     page_load_time?: number | null,
>     js_css_amount?: number | null,
>     js_css_total_size?: number | null,
>     js_css_total_size_greater_than?: boolean | null,
>     ga?: {
>       page_views?: number | null
>     } | null,
>     incoming_internal_links?: number | null,
>     outgoing_internal_links_count?: number | null,
>     outgoing_external_links_count?: number | null,
>     page_rank_score?: number | null,
>     is_new_page?: boolean | null,
>     google_structured_data?: {
>       type?: string | null,
>       valid?: number | null,
>       invalid?: number | null
>     }[] | null,
>     blocked_stats?: {
>       ai_search?: {
>         blocked?: boolean | null,
>         reasons?: any[] | null
>       } | null
>     } | null
>   } | null,
>   linking_pages?: {
>     pages?: {
>       page_id?: string | null,
>       url?: string | null
>     }[] | null,
>     total?: number | null
>   } | null,
>   canonicalizing_pages?: {
>     pages?: {
>       page_id?: string | null,
>       url?: string | null
>     }[] | null,
>     total?: number | null
>   } | null
> } | null
> ```

***

### getPageIssues

`siteAuditReports.getPageIssues`

Each returned issue occurrence counts as one line, across all groups. This request returns the issues found on a single audited page, grouped by issue type. Cost: 100 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.siteAuditReports.getPageIssues({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |
| `page_id` | `string` | Yes | Unique identifier of the audited page. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   severity?: string | null,
>   issue_type?: string | null,
>   issues?: {
>     page_id?: string | null,
>     page_title?: string | null,
>     source_url?: string | null,
>     target_url?: string | null,
>     discovered?: string | null,
>     occurrence_number?: number | null,
>     info?: {
>       http_code_info?: {
>         code?: number | null
>       } | null
>     } | null,
>     visibility?: string | null
>   }[] | null,
>   total?: number | null
> }[] | null
> ```

***

### jsImpactChangedPages

`siteAuditReports.jsImpactChangedPages`

This request returns the number of pages in a Site Audit campaign whose content changed after JavaScript rendering. To check what changed on each page, use the Get JS Impact Details endpoint. Cost: 20 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.siteAuditReports.jsImpactChangedPages({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   changed_pages?: number | null
> } | null
> ```

***

### jsImpactDetails

`siteAuditReports.jsImpactDetails`

This request returns, page by page, how JavaScript rendering affects key page parameters in a Site Audit campaign. For each parameter, the response gives its value in the raw HTML (before JavaScript runs) and after rendering. Cost: 20 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.siteAuditReports.jsImpactDetails({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |
| `offset` | `number` | No | Number of pages to skip before returning results. Defaults to 0. |
| `limit` | `number` | No | Maximum number of pages to return. Defaults to 10, maximum 100. |
| `order_by` | `string` | No | Field to sort by. Defaults to URL. Supported values: URL. |
| `direction` | `string` | No | Sort direction. Defaults to ASC. Supported values: ASC, DESC. |
| `change_status` | `string` | No | Pages to return, by whether JavaScript rendering changed them. Defaults to ALL.- ALL: All pages. - CHANGED: Pages where at least one tracked parameter differs after JavaScript rendering. |
| `parameters` | `string[]` | No | Return only rows for the listed page parameters. Omit to return all.- TITLE: Page title. - WORDS\_COUNT: Word count of the body content. - LINKS\_COUNT: Number of outgoing links on the page. |
| `url_contains` | `string` | No | Return only pages whose URL contains this substring. Example: /blog/ |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   offset?: number | null,
>   limit?: number | null,
>   order_by?: string | null,
>   direction?: string | null,
>   change_status?: string | null,
>   url_contains?: string | null,
>   total_pages?: number | null,
>   changed_pages?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   url?: string | null,
>   changed?: boolean | null,
>   title?: {
>     value_before_js?: string | null,
>     value_after_js?: string | null
>   } | null,
>   words_count?: {
>     value_before_js?: number | null,
>     value_after_js?: number | null
>   } | null,
>   links_count?: {
>     value_before_js?: number | null,
>     value_after_js?: number | null
>   } | null,
>   canonical?: {
>     value_before_js?: string | null,
>     value_after_js?: string | null
>   } | null,
>   meta_description?: {
>     value_before_js?: string | null,
>     value_after_js?: string | null
>   } | null,
>   meta_robots?: {
>     value_before_js?: string | null,
>     value_after_js?: string | null
>   } | null,
>   client_side_redirect?: {
>     value_before_js?: string | null,
>     value_after_js?: string | null
>   } | null,
>   google_structured_data?: {
>     value_before_js?: number | null,
>     value_after_js?: number | null
>   } | null
> }[] | null
> ```

***

### linking

`siteAuditReports.linking`

This request returns the internal linking report of a Site Audit campaign. Cost: 20 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.siteAuditReports.linking({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   incoming_internal_links_groups?: {
>     lower_bound?: number | null,
>     upper_bound?: number | null,
>     pages_count?: number | null
>   }[] | null,
>   outgoing_internal_links_groups?: {
>     lower_bound?: number | null,
>     upper_bound?: number | null,
>     pages_count?: number | null
>   }[] | null,
>   internal_links_issues?: {
>     issue_type?: string | null,
>     count?: number | null,
>     checks?: number | null
>   }[] | null,
>   prospective_pages?: {
>     id?: string | null,
>     url?: string | null,
>     depth?: number | null,
>     page_rank_score?: number | null,
>     outgoing_links_total?: number | null,
>     ga?: {
>       page_views?: number | null
>     } | null
>   }[] | null,
>   link_distribution?: {
>     groups?: {
>       group?: string | null,
>       lower_bound?: number | null,
>       upper_bound?: number | null,
>       pages_count?: number | null,
>       incoming_links_count?: number | null
>     }[] | null,
>     pages_total?: number | null,
>     links_total?: number | null
>   } | null,
>   depths?: {
>     1?: number | null,
>     2?: number | null,
>     3?: number | null,
>     4?: number | null
>   } | null
> } | null
> ```

***

### list

`siteAuditReports.list`

This request returns a campaign’s audit reports, newest first by default. Only successfully finished audits produce a report: an audit that is still running or that failed is not listed. Cost: 10000 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.siteAuditReports.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |
| `offset` | `number` | No | Number of audit reports to skip before returning results. Defaults to 0. |
| `limit` | `number` | No | Maximum number of audit reports to return. Defaults to 10, maximum 100. |
| `order_by` | `string` | No | Field to sort by. Supported value: FINISH\_DATE (default), the date the audit finished. |
| `direction` | `string` | No | Sort direction: ASC or DESC. Defaults to DESC (newest first). |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   offset?: number | null,
>   limit?: number | null,
>   order_by?: string | null,
>   direction?: string | null,
>   total_count?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   audit_report_id?: string | null,
>   start_date?: string | null,
>   finish_date?: string | null,
>   pages_crawled?: number | null,
>   pages_limit?: number | null,
>   is_pages_limit_reached?: boolean | null,
>   settings_changed?: boolean | null,
>   user_agent_type?: string | null,
>   js_rendering?: string | null,
>   total_score?: {
>     value?: number | null,
>     delta?: number | null
>   } | null,
>   ai_search_score?: {
>     value?: number | null,
>     delta?: number | null
>   } | null,
>   thematic_scores?: {
>     crawlability?: {
>       value?: number | null,
>       delta?: number | null
>     } | null,
>     https?: {
>       value?: number | null,
>       delta?: number | null
>     } | null,
>     int_seo?: {
>       value?: number | null,
>       delta?: number | null
>     } | null,
>     linking?: {
>       value?: number | null,
>       delta?: number | null
>     } | null,
>     markups?: {
>       value?: number | null,
>       delta?: number | null
>     } | null,
>     performance?: {
>       value?: number | null,
>       delta?: number | null
>     } | null
>   } | null,
>   status_code_groups?: {
>     group?: string | null,
>     count?: number | null
>   }[] | null,
>   errors?: {
>     issue_type?: string | null,
>     count?: number | null,
>     delta?: number | null,
>     checks?: number | null
>   }[] | null,
>   warnings?: {
>     issue_type?: string | null,
>     count?: number | null,
>     delta?: number | null,
>     checks?: number | null
>   }[] | null,
>   notices?: {
>     issue_type?: string | null,
>     count?: number | null,
>     delta?: number | null,
>     checks?: number | null
>   }[] | null,
>   new_issues?: {
>     issue_type?: string | null,
>     count?: number | null
>   }[] | null,
>   fixed_issues?: {
>     issue_type?: string | null,
>     count?: number | null
>   }[] | null,
>   hidden_issues?: {
>     issue_type?: string | null,
>     count?: number | null
>   }[] | null,
>   excluded_issues?: any[] | null,
>   top_issues?: string[] | null,
>   top_insights?: string[] | null,
>   blocked_page_stats?: {
>     ai_search?: {
>       agent?: string | null,
>       count?: number | null
>     }[] | null
>   } | null
> }[] | null
> ```

***

### listIssues

`siteAuditReports.listIssues`

Each issue occurrence returned in the issues\_preview lists counts as one line. Cost: 100 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.siteAuditReports.listIssues({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |
| `visibility` | `string[]` | No | Occurrences to return, by visibility. Defaults to VISIBLE only; pass VISIBLE,HIDDEN to return both.- VISIBLE: Visible occurrences. - HIDDEN: Occurrences hidden by the user. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   audit_report_id?: string | null,
>   visibility?: string[] | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   issue_type?: string | null,
>   severity?: string | null,
>   total_issues_count?: number | null,
>   issues_preview?: {
>     page_id?: string | null,
>     page_title?: string | null,
>     source_url?: string | null,
>     target_url?: string | null,
>     discovered?: string | null,
>     occurrence_number?: number | null,
>     visibility?: string | null,
>     info?: {
>       title_duplicate_info?: {
>         count?: number | null,
>         urls?: string[] | null
>       } | null
>     } | null
>   }[] | null
> }[] | null
> ```

***

### listPages

`siteAuditReports.listPages`

This request returns the pages crawled in a campaign’s audit, with summary stats for each page. Use order\_by and direction to sort the list, filter to narrow it by URL or title, and limit and offset to page through it. Cost: 40 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.siteAuditReports.listPages({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `campaign_id` | `number \| string` | Yes | Campaign ID, the same as the project ID. |
| `offset` | `number` | No | Number of pages to skip before returning results. Defaults to 0. |
| `limit` | `number` | No | Maximum number of pages to return. Defaults to 10, maximum 100. |
| `order_by` | `string` | No | Field to sort pages by. Defaults to URL.- URL: Page URL. - ISSUE\_PRIORITY: Relative priority of the page’s issues. - MARKUPS\_TOTAL: Total number of markups detected on the page. |
| `direction` | `string` | No | Sort direction: ASC or DESC. Defaults to ASC. |
| `filter` | `string` | No | Filter expression for pages. Available fields: url and title. Combine conditions with AND, OR, and NOT. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   order_by?: string | null,
>   direction?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   total_count?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   page_id?: string | null,
>   url?: string | null,
>   title?: string | null,
>   meta_description?: string | null,
>   status_code?: number | null,
>   errors?: number | null,
>   warnings?: number | null,
>   notices?: number | null,
>   total?: number | null,
>   issues_sum?: {
>     issue_type?: string | null,
>     count?: number | null
>   }[] | null,
>   markups?: string[] | null,
>   markups_total?: number | null,
>   depth?: number | null,
>   issue_priority?: number | null,
>   is_auditing?: boolean | null,
>   with_amp?: boolean | null,
>   hreflangs?: number | null,
>   with_hreflang?: boolean | null,
>   hreflang_issues_count?: number | null,
>   canonicalization?: string | null,
>   canonical?: string | null,
>   page_group?: string | null,
>   type?: string | null,
>   page_load_time?: number | null,
>   js_css_amount?: number | null,
>   js_css_total_size?: number | null,
>   js_css_total_size_greater_than?: boolean | null,
>   ga?: {
>     page_views?: number | null
>   } | null,
>   incoming_internal_links?: number | null,
>   outgoing_internal_links_count?: number | null,
>   outgoing_external_links_count?: number | null,
>   page_rank_score?: number | null,
>   is_new_page?: boolean | null,
>   google_structured_data?: {
>     type?: string | null,
>     valid?: number | null,
>     invalid?: number | null
>   }[] | null,
>   blocked_stats?: {
>     ai_search?: {
>       blocked?: boolean | null,
>       reasons?: any[] | null
>     } | null
>   } | null,
>   in_sitemap?: boolean | null
> }[] | null
> ```

***

## Traffic Audience

### ageAndSex

`trafficAudience.ageAndSex`

Returns the age and sex distribution of the audience for a target. Use it to understand the demographic composition of your target audience by age groups and sex. Data is updated between the 7th and 10th of each month. Cost: 20 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficAudience.ageAndSex({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | Domain to analyze. Example: example.com |
| `month` | `string` | Yes | Month to analyze. Format: YYYY-MM.Example: 2024-06 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Default: worldwide if not set. |
| `fields` | `string[]` | No | Metric fields to include in the response. Default: all fields. Supported values: visitors, visitors\_share. The age\_sex\_group identity field is always returned and not selectable. |
| `format` | `json` | No | Response format. Use json (default) or csv. Supported values: json, csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   domain?: string | null,
>   effective_domain?: string | null,
>   month?: string | null,
>   country?: string | null,
>   device_type?: string | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   age_sex_group?: string | null,
>   visitors?: number | null,
>   visitors_share?: number | null
> }[] | null
> ```

***

### education

`trafficAudience.education`

The List Audience Education Distribution report returns education level data for a target’s audience. Use it to understand the educational background of your audience. Data is updated between the 7th and 10th of each month. Cost: 20 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficAudience.education({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | Domain to analyze. Example: example.com |
| `month` | `string` | Yes | Month to analyze. Format: YYYY-MM.Example: 2024-06 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Default: worldwide if not set. |
| `fields` | `string[]` | No | Metric fields to include in the response. Default: all fields. Supported values: visitors, visitors\_share. The education\_level identity field is always returned and not selectable. |
| `format` | `json` | No | Response format. Supported values: json (default), csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   domain?: string | null,
>   effective_domain?: string | null,
>   month?: string | null,
>   device_type?: string | null,
>   country?: string | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   education_level?: string | null,
>   visitors?: number | null,
>   visitors_share?: number | null
> }[] | null
> ```

***

### household

`trafficAudience.household`

Understand the household composition of your target audience by viewing the distribution of household sizes among visitors. Data is updated between the 7th and 10th of each month. Cost: API units per request. Cost: 20 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficAudience.household({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | Domain to analyze. Example: samplesite.com |
| `month` | `string` | Yes | Month to analyze. Format: YYYY-MM.Example: 2024-06 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Default: worldwide if not set. |
| `fields` | `string[]` | No | Metric fields to include in the response. Default: all fields. Supported values: visitors, visitors\_share. The household\_size identity field is always returned and not selectable. |
| `format` | `json` | No | Response format. Supported values: json (default), csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   domain?: string | null,
>   effective_domain?: string | null,
>   month?: string | null,
>   device_type?: string | null,
>   country?: string | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   household_size?: string | null,
>   visitors?: number | null,
>   visitors_share?: number | null
> }[] | null
> ```

***

### income

`trafficAudience.income`

Analyze the household income distribution of your target audience. Understand which income levels (LOW, MIDDLE, HIGH) comprise your visitors. Data is updated between the 7th and 10th of each month. Cost: API units per request. Cost: 20 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficAudience.income({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | Domain to analyze. Example: example.com |
| `month` | `string` | Yes | Month to analyze. Format: YYYY-MM.Example: 2024-06 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Default: worldwide if not set. |
| `fields` | `string[]` | No | Metric fields to include in the response. Default: all fields. Supported values: visitors, visitors\_share. The income\_level identity field is always returned and not selectable. |
| `format` | `json` | No | Response format. Supported values: json (default), csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   domain?: string | null,
>   effective_domain?: string | null,
>   month?: string | null,
>   country?: string | null,
>   device_type?: string | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   income_level?: string | null,
>   visitors?: number | null,
>   visitors_share?: number | null
> }[] | null
> ```

***

### interests

`trafficAudience.interests`

Returns the share of the target audience in each interest category. Use this to understand what topics engage your audience. Data is updated between the 7th and 10th of each month. Cost: API units per line returned. Cost: 20 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficAudience.interests({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | Domain to analyze. Example: example.com |
| `month` | `string` | Yes | Month to analyze. Format: YYYY-MM.Example: 2024-06 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Default: worldwide if not set. |
| `fields` | `string[]` | No | Metric fields to include in the response. Default: all fields. Supported values: visitors, visitors\_share. The category identity field is always returned and not selectable. |
| `order_by` | `string` | No | Field name to sort by. Supported values: visitors, visitors\_share. Default: visitors DESC.Example: visitors |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC.Example: DESC |
| `limit` | `number` | No | Maximum number of results to return. Default: 1000. Maximum: 5000. |
| `offset` | `number` | No | Number of results to skip. Default: 0. |
| `format` | `json` | No | Response format. Supported values: json (default), csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   domain?: string | null,
>   effective_domain?: string | null,
>   month?: string | null,
>   device_type?: string | null,
>   country?: string | null,
>   order_by?: string | null,
>   direction?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   total?: number | null,
>   total_count?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   category?: string | null,
>   visitors?: number | null,
>   visitors_share?: number | null
> }[] | null
> ```

***

### occupation

`trafficAudience.occupation`

Understand the occupational status distribution of your target audience. Cost: 20 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficAudience.occupation({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | Domain to analyze. Example: example.com |
| `month` | `string` | Yes | Month to analyze. Format: YYYY-MM.Example: 2024-06 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Default: worldwide if not set. |
| `fields` | `string[]` | No | Metric fields to include in the response. Default: all fields. Supported values: visitors, visitors\_share. The occupational\_status identity field is always returned and not selectable. |
| `format` | `json` | No | Response format. Supported values: json (default), csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   domain?: string | null,
>   effective_domain?: string | null,
>   month?: string | null,
>   country?: string | null,
>   device_type?: string | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   occupational_status?: string | null,
>   visitors?: number | null,
>   visitors_share?: number | null
> }[] | null
> ```

***

### socialMedia

`trafficAudience.socialMedia`

The List Audience Social Media report returns traffic distribution data by social media platform for a target. Use it to understand which social media platforms your target audience visits. Cost: 20 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficAudience.socialMedia({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | Target domain to analyze. Example: example.com |
| `month` | `string` | Yes | Month to analyze. Format: YYYY-MM.Example: 2024-08 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Default: worldwide if not set. |
| `fields` | `string[]` | No | Response fields to include. Default: all fields. Supported values: visitors, visitors\_share, root\_domain. The social\_media\_name identity field is always returned and not selectable. |
| `order_by` | `string` | No | Field name to sort by. Supported values: visitors, visitors\_share. Default: visitors DESC.Example: visitors |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC.Example: DESC |
| `limit` | `number` | No | Maximum number of results to return. Default: 1000. Maximum: 5000. |
| `offset` | `number` | No | Number of results to skip. Default: 0. |
| `format` | `json` | No | Response format. Supported values: json (default), csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   domain?: string | null,
>   effective_domain?: string | null,
>   month?: string | null,
>   device_type?: string | null,
>   country?: string | null,
>   direction?: string | null,
>   order_by?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   total?: number | null,
>   total_count?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   social_media_name?: string | null,
>   root_domain?: string | null,
>   visitors?: number | null,
>   visitors_share?: number | null
> }[] | null
> ```

***

### visitedDomains

`trafficAudience.visitedDomains`

Returns domains visited by the audience defined by the provided targets and criteria. Use it to discover audience overlap and find new market opportunities by analyzing what other sites your audience visits. Cost: 80 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficAudience.visitedDomains({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string[]` | No | Root domains to analyze. Example: example.com |
| `selected_domains` | `string[]` | Yes | Root domains on which to apply the operation. The domains must be unique and correspond to those provided in domain. |
| `operation` | `string` | No | Set operation to apply to the target audiences. Default: UNION. Supported values: UNION, INTERSECTION, DIFFERENCE.Example: UNION |
| `month` | `string` | Yes | Month to analyze. Format: YYYY-MM.Example: 2024-01 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Default: worldwide if not set. |
| `categories` | `string[]` | No | Filter domains by industry categories. Only domains matching at least one category are included. |
| `fields` | `string[]` | No | Response fields to include. Default: all fields. Supported values: visitors, intersection\_visitors, intersection\_visitors\_share, categories. |
| `order_by` | `string` | No | Field name to sort by. Supported values: visitors, intersection\_visitors, intersection\_visitors\_share. Default: intersection\_visitors\_share DESC.Example: intersection\_visitors |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC.Example: DESC |
| `limit` | `number` | No | Maximum number of results to return. Default: 1000. Maximum: 5000. |
| `offset` | `number` | No | Number of results to skip. Default: 0. |
| `format` | `json` | No | Response format. Supported values: json (default), csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   domains?: string[] | null,
>   effective_domains?: string[] | null,
>   selected_domains?: string[] | null,
>   operation?: string | null,
>   month?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   total?: number | null,
>   total_count?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   root_domain?: string | null,
>   visitors?: number | null,
>   intersection_visitors?: number | null,
>   intersection_visitors_share?: number | null,
>   categories?: string[] | null
> }[] | null
> ```

***

## Traffic Market

### destinations

`trafficMarket.destinations`

The List Destinations report returns data on the most popular exit destinations. Use it to discover where your market audience goes after visiting a target. Data is updated between the 7th and 10th of each month. Cost: 80 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficMarket.destinations({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | Target URL to query. The length must not exceed 2000 characters. Accepts values both with the protocol (`https://`) and without it. Example: [https://example.com](https://example.com) |
| `scope` | `string` | Yes | Which part of the URL to analyze. Supported values: ROOT\_DOMAIN, SUBDOMAIN, SUBFOLDER.Example: ROOT\_DOMAIN |
| `month` | `string` | Yes | Month to analyze. Format: YYYY-MM.Example: 2024-01 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Mutually exclusive with subregion and state. Default: worldwide if no region parameter is set. |
| `subregion` | `string` | No | Geographic subregion to filter by, using the UN geoscheme name in snake\_case (for example, northern\_africa, western\_europe). Mutually exclusive with country and state. |
| `state` | `string` | No | US state to filter by, using the ISO 3166-2 code with the country prefix (for example, US\_CA, US\_NY). Mutually exclusive with country and subregion. Default: worldwide if no region parameter is set. |
| `categories` | `string[]` | No | Filter destinations by industry categories. Only results matching at least one category are included. |
| `fields` | `string[]` | No | Response fields to include. Default: all fields. Supported values: entrances, entrances\_share, categories. Identity fields, such as destination\_url, are always returned and not selectable. |
| `order_by` | `string` | No | Field name to sort by. Supported values: entrances, entrances\_share. Default: entrances DESC.Example: entrances |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC.Example: DESC |
| `limit` | `number` | No | Maximum number of results to return. Default: 1000. Maximum: 5000. |
| `offset` | `number` | No | Number of results to skip. Default: 0. |
| `format` | `json` | No | Response format. Supported values: json (default), csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   country?: string | null,
>   month?: string | null,
>   device_type?: string | null,
>   direction?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   order_by?: string | null,
>   scope?: string | null,
>   url?: string | null,
>   effective_url?: string | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   destination_url?: string | null,
>   entrances?: number | null,
>   entrances_share?: number | null,
>   categories?: string[] | null
> }[] | null
> ```

***

### domainCategories

`trafficMarket.domainCategories`

Get the industry categories assigned to a domain, ordered by relevance. The same category values are used in the categories filter across Traffic & Market endpoints. Cost: 20 API units per request.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficMarket.domainCategories({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | Domain to look up. Accepts values both with the protocol (`https://`) and without it. The value is reduced to its root domain (e.g., [https://blog.example.com/page](https://blog.example.com/page) is looked up as example.com). |
| `format` | `json` | No | Response format. Use json (default) or csv. Supported values: json, csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   domain?: string | null,
>   effective_domain?: string | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   category?: string | null
> }[] | null
> ```

***

### pages

`trafficMarket.pages`

The List Pages report returns pages data for a target. Use it to identify the most visited pages. Data is updated between the 7th and 10th of each month. Cost: API units per line returned. Cost: 20 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficMarket.pages({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | Target URL to query. The length must not exceed 2000 characters. Accepts values both with the protocol (`https://`) and without it. Example: [https://samplesite.com](https://samplesite.com) |
| `scope` | `string` | Yes | Which part of the URL to analyze. Supported values: ROOT\_DOMAIN, SUBDOMAIN, SUBFOLDER.Example: ROOT\_DOMAIN |
| `month` | `string` | Yes | Month to analyze. Format: YYYY-MM.Example: 2024-06 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Mutually exclusive with subregion and state. Default: worldwide if no region parameter is set. |
| `subregion` | `string` | No | Geographic subregion to filter by, using the UN geoscheme name in snake\_case (for example, northern\_africa, western\_europe). Mutually exclusive with country and state. |
| `state` | `string` | No | US state to filter by, using the ISO 3166-2 code with the country prefix (for example, US\_CA, US\_NY). Mutually exclusive with country and subregion. Default: worldwide if no region parameter is set. |
| `path_contains` | `string` | No | Path substring to filter pages. Example: blog |
| `fields` | `string[]` | No | Metric fields to include in the response. Default: all fields. |
| `order_by` | `string` | No | Field name to sort by. Supported values: visitors, visits, entrances, entrances\_share, entrances\_direct, entrances\_search\_organic, entrances\_search\_paid, entrances\_social\_organic, entrances\_social\_pai... |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC.Example: DESC |
| `limit` | `number` | No | Maximum number of results to return. Default: 1000. Maximum: 5000. |
| `offset` | `number` | No | Number of results to skip. Default: 0. |
| `format` | `json` | No | Response format. Supported values: json (default), csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   url?: string | null,
>   scope?: string | null,
>   month?: string | null,
>   country?: string | null,
>   device_type?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   order_by?: string | null,
>   direction?: string | null,
>   effective_url?: string | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   page_url?: string | null,
>   visitors?: number | null,
>   visits?: number | null,
>   entrances?: number | null
> }[] | null
> ```

***

### regions

`trafficMarket.regions`

The List Regions report returns traffic regions data for a target. Use it to understand which regions contribute the most traffic. Data is updated between the 7th and 10th of each month. Cost: API units per line returned. Cost: 20 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficMarket.regions({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | Target URL to query. The length must not exceed 2000 characters. Accepts values both with the protocol (`https://`) and without it. Example: [https://samplesite.com](https://samplesite.com) |
| `scope` | `string` | Yes | Which part of the URL to analyze. Supported values: ROOT\_DOMAIN, SUBDOMAIN, SUBFOLDER, PAGE.Example: ROOT\_DOMAIN |
| `month` | `string` | Yes | Month to analyze. Format: YYYY-MM.Example: 2024-06 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `region_type` | `string` | Yes | Type of regional grouping for the results. Supported values: COUNTRY, SUBREGION, STATE. |
| `fields` | `string[]` | No | Metric fields to include in the response. Default: all fields. Supported values: visitors, visits, entrances, entrances\_share, page\_views\_per\_visit, bounces\_per\_visit, avg\_visit\_duration. |
| `order_by` | `string` | No | Field name to sort by. Supported values: visitors, visits, entrances, entrances\_share, page\_views\_per\_visit, bounces\_per\_visit, avg\_visit\_duration. Default: entrances DESC.Example: visitors |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC.Example: DESC |
| `limit` | `number` | No | Maximum number of results to return. Default: 1000. Maximum: 5000. |
| `offset` | `number` | No | Number of results to skip. Default: 0. |
| `format` | `json` | No | Response format. Supported values: json (default), csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   url?: string | null,
>   scope?: string | null,
>   month?: string | null,
>   region_type?: string | null,
>   device_type?: string | null,
>   order_by?: string | null,
>   direction?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   effective_url?: string | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   region_code?: string | null,
>   visitors?: number | null,
>   visits?: number | null,
>   entrances?: number | null
> }[] | null
> ```

***

### sources

`trafficMarket.sources`

The List Sources report returns a detailed breakdown of traffic sources with entrance counts and shares. Use it to understand how visitors reach a website and analyze traffic distribution across sources. Cost: 80 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficMarket.sources({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | Target URL to query. The length must not exceed 2000 characters. Accepts values both with the protocol (`https://`) and without it. Example: [https://example.com](https://example.com) |
| `scope` | `string` | Yes | Which part of the URL to analyze. Supported values: ROOT\_DOMAIN, SUBDOMAIN, SUBFOLDER.Example: ROOT\_DOMAIN |
| `month` | `string` | Yes | Month to analyze. Format: YYYY-MM.Example: 2024-01 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Mutually exclusive with subregion and state. Default: worldwide if no region parameter is set. |
| `subregion` | `string` | No | Geographic subregion to filter by, using the UN M49 geoscheme name in snake\_case (for example, northern\_africa, western\_europe). Mutually exclusive with country and state. |
| `state` | `string` | No | US state to filter by, using the ISO 3166-2 code with the country prefix (for example, US\_CA, US\_NY). Mutually exclusive with country and subregion. Default: worldwide if no region parameter is set. |
| `channel` | `string` | No | Traffic channel to filter by. Default: ALL.Supported values: DIRECT, SEARCH\_ORGANIC, SEARCH\_PAID, SOCIAL\_ORGANIC, SOCIAL\_PAID, REFERRAL, MAIL, DISPLAY\_AD, AI\_ASSISTANTS, ALL. |
| `categories` | `string[]` | No | Filter sources by industry categories. Only results matching at least one category are included. |
| `fields` | `string[]` | No | Response fields to include. Default: all fields. Supported values: entrances, entrances\_share, categories. |
| `order_by` | `string` | No | Field name to sort by. Supported values: entrances, entrances\_share. Default: entrances DESC.Example: entrances |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC.Example: DESC |
| `limit` | `number` | No | Maximum number of results to return. Default: 1000. Maximum: 5000. Example: 100 |
| `offset` | `number` | No | Number of results to skip. Default: 0. Example: 0 |
| `format` | `json` | No | Response format. Supported values: json (default), csv. Example: json |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   url?: string | null,
>   scope?: string | null,
>   month?: string | null,
>   device_type?: string | null,
>   country?: string | null,
>   channel?: string | null,
>   direction?: string | null,
>   order_by?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   effective_url?: string | null,
>   total?: number | null,
>   total_count?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   source_url?: string | null,
>   source_display_name?: string | null,
>   channel?: string | null,
>   entrances?: number | null,
>   entrances_share?: number | null,
>   categories?: string[] | null
> }[] | null
> ```

***

### subdomains

`trafficMarket.subdomains`

The List Subdomains report returns detailed traffic metrics for each subdomain, including visitor counts, page views, and traffic sources. Use it to discover how traffic is distributed across the subdomains of a target. Cost: 20 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficMarket.subdomains({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | Target URL to query. The length must not exceed 2000 characters. Accepts values both with the protocol (`https://`) and without it. Example: example.com |
| `scope` | `string` | Yes | Which part of the URL to analyze. Supported values: ROOT\_DOMAIN, SUBDOMAIN.Example: ROOT\_DOMAIN |
| `month` | `string` | Yes | Month to analyze. Format: YYYY-MM.Example: 2024-01 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Mutually exclusive with subregion and state. Default: worldwide if no region parameter is set. |
| `subregion` | `string` | No | Geographic subregion to filter by, using the UN geoscheme name in snake\_case (for example, northern\_africa, western\_europe). Mutually exclusive with country and state. |
| `state` | `string` | No | US state to filter by, using the ISO 3166-2 code with the country prefix (for example, US\_CA, US\_NY). Mutually exclusive with country and subregion. Default: worldwide if no region parameter is set. |
| `fields` | `string[]` | No | Metric fields to include in the response. Default: all fields. |
| `order_by` | `string` | No | Field name to sort by. Supported values: visitors, visits, entrances, entrances\_share, entrances\_direct, entrances\_search\_organic, entrances\_search\_paid, entrances\_social\_organic, entrances\_social\_pai... |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC.Example: DESC |
| `limit` | `number` | No | Maximum number of results to return. Default: 1000. Maximum: 5000. Example: 10 |
| `offset` | `number` | No | Number of results to skip. Default: 0. Example: 0 |
| `format` | `json` | No | Response format. Supported values: json (default), csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   url?: string | null,
>   scope?: string | null,
>   month?: string | null,
>   device_type?: string | null,
>   country?: string | null,
>   direction?: string | null,
>   order_by?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   effective_url?: string | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   subdomain_url?: string | null,
>   visitors?: number | null,
>   visits?: number | null,
>   avg_visit_duration?: number | null
> }[] | null
> ```

***

### subfolders

`trafficMarket.subfolders`

The List Subfolders report returns traffic data for the subfolders of a target domain. Use it to understand how traffic is distributed across different sections of a website. Cost: 20 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficMarket.subfolders({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | Target URL to query. The length must not exceed 2000 characters. Accepts values both with the protocol (`https://`) and without it. Example: [https://samplesite.com](https://samplesite.com) |
| `scope` | `string` | Yes | Which part of the URL to analyze. Supported values: ROOT\_DOMAIN, SUBDOMAIN, SUBFOLDER.Example: ROOT\_DOMAIN |
| `month` | `string` | Yes | Month to analyze. Format: YYYY-MM.Example: 2024-06 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE.Example: DESKTOP |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Mutually exclusive with subregion and state. Default: worldwide if no region parameter is set. |
| `subregion` | `string` | No | Geographic subregion to filter by, using the UN geoscheme name in snake\_case (for example, northern\_africa, western\_europe). Mutually exclusive with country and state. |
| `state` | `string` | No | US state to filter by, using the ISO 3166-2 code with the country prefix (for example, US\_CA, US\_NY). Mutually exclusive with country and subregion. Default: worldwide if no region parameter is set. |
| `path_contains` | `string` | No | Path substring to filter subfolders by (for example, products to match /products/, /products/electronics/, etc.). Example: products |
| `fields` | `string[]` | No | Metric fields to include in the response. Default: all fields. |
| `order_by` | `string` | No | Field name to sort by. Supported values: visitors, visits, entrances, entrances\_share, entrances\_direct, entrances\_search\_organic, entrances\_search\_paid, entrances\_social\_organic, entrances\_social\_pai... |
| `direction` | `string` | No | Sort direction. Supported values: ASC, DESC.Example: DESC |
| `limit` | `number` | No | Maximum number of results to return. Default: 1000. Maximum: 5000. Example: 100 |
| `offset` | `number` | No | Number of results to skip. Default: 0. Example: 0 |
| `format` | `json` | No | Response format. Supported values: json (default), csv. Example: json |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   country?: string | null,
>   month?: string | null,
>   device_type?: string | null,
>   scope?: string | null,
>   url?: string | null,
>   direction?: string | null,
>   order_by?: string | null,
>   limit?: number | null,
>   offset?: number | null,
>   effective_url?: string | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   subfolder_url?: string | null,
>   visitors?: number | null,
>   visits?: number | null,
>   entrances?: number | null
> }[] | null
> ```

***

### trendDaily

`trafficMarket.trendDaily`

The Get Trend Daily report returns traffic metrics for a target over a date range, grouped by day. Use it to monitor traffic fluctuations, identify trends, and compare performance across time. Cost: 80 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficMarket.trendDaily({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | Target URL to query. The length must not exceed 2000 characters. Accepts values both with the protocol (`https://`) and without it. Example: [https://samplesite.com](https://samplesite.com) |
| `scope` | `string` | Yes | Which part of the URL to analyze. Supported values: ROOT\_DOMAIN, SUBDOMAIN, SUBFOLDER, PAGE.Example: ROOT\_DOMAIN |
| `date_from` | `string` | Yes | Start of the range. Format: YYYY-MM. Must not be earlier than 2017-01. The maximum range is 12 months. Example: 2024-01 |
| `date_to` | `string` | Yes | End of the range. Format: YYYY-MM. The maximum range is 12 months. Example: 2024-12 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Mutually exclusive with subregion and state. Default: worldwide if no region parameter is set. |
| `subregion` | `string` | No | Geographic subregion to filter by, using the UN geoscheme name in snake\_case (for example, northern\_africa, western\_europe). Mutually exclusive with country and state. |
| `state` | `string` | No | US state to filter by, using the ISO 3166-2 code with the country prefix (for example, US\_CA, US\_NY). Mutually exclusive with country and subregion. Default: worldwide if no region parameter is set. |
| `fields` | `string[]` | No | Metric fields to include in the response. Default: all fields. |
| `include_forecast` | `boolean` | No | Whether to include forecasted data in the response. |
| `format` | `json` | No | Response format. Supported values: json (default), csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   url?: string | null,
>   scope?: string | null,
>   date_from?: string | null,
>   date_to?: string | null,
>   device_type?: string | null,
>   country?: string | null,
>   effective_url?: string | null,
>   include_forecast?: boolean | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   date_from?: string | null,
>   date_to?: string | null,
>   is_forecast?: boolean | null,
>   metrics?: {
>     visitors?: number | null,
>     visits?: number | null,
>     entrances?: number | null,
>     entrances_direct?: number | null,
>     entrances_search_organic?: number | null,
>     entrances_search_paid?: number | null,
>     entrances_social_organic?: number | null,
>     entrances_social_paid?: number | null,
>     entrances_referral?: number | null,
>     entrances_mail?: number | null,
>     entrances_display_ad?: number | null,
>     entrances_ai_assistants?: number | null,
>     exits?: number | null,
>     page_views_per_visit?: number | null,
>     bounces_per_visit?: number | null,
>     purchases_per_visit?: number | null,
>     avg_visit_duration?: number | null
>   } | null
> }[] | null
> ```

***

### trendMonthly

`trafficMarket.trendMonthly`

The Get Trend Monthly report returns traffic metrics for a target over a date range, grouped by month. Use it to identify trends and compare performance across months. Cost: 80 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficMarket.trendMonthly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | Target URL to query. The length must not exceed 2000 characters. Accepts values both with the protocol (`https://`) and without it. Example: [https://samplesite.com](https://samplesite.com) |
| `scope` | `string` | Yes | Which part of the URL to analyze. Supported values: ROOT\_DOMAIN, SUBDOMAIN, SUBFOLDER, PAGE.Example: ROOT\_DOMAIN |
| `date_from` | `string` | Yes | Start of the range. Format: YYYY-MM. Must not be earlier than 2017-01. The maximum range is 12 months. Example: 2024-01 |
| `date_to` | `string` | Yes | End of the range. Format: YYYY-MM. The maximum range is 12 months. Example: 2024-12 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Mutually exclusive with subregion and state. Default: worldwide if no region parameter is set. |
| `subregion` | `string` | No | Geographic subregion to filter by, using the UN geoscheme name in snake\_case (for example, northern\_africa, western\_europe). Mutually exclusive with country and state. |
| `state` | `string` | No | US state to filter by, using the ISO 3166-2 code with the country prefix (for example, US\_CA, US\_NY). Mutually exclusive with country and subregion. Default: worldwide if no region parameter is set. |
| `fields` | `string[]` | No | Metric fields to include in the response. Default: all fields. |
| `include_forecast` | `boolean` | No | Whether to include forecasted data in the response. Example: true |
| `format` | `json` | No | Response format. Supported values: json (default), csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   country?: string | null,
>   date_from?: string | null,
>   date_to?: string | null,
>   device_type?: string | null,
>   request_id?: string | null,
>   scope?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   effective_url?: string | null,
>   include_forecast?: boolean | null,
>   total?: number | null,
>   url?: string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   date_from?: string | null,
>   date_to?: string | null,
>   is_forecast?: boolean | null,
>   metrics?: {
>     visitors?: number | null,
>     visits?: number | null,
>     entrances?: number | null,
>     page_views_per_visit?: number | null
>   } | null
> }[] | null
> ```

***

### trendWeekly

`trafficMarket.trendWeekly`

The Get Trend Weekly report returns traffic metrics for a target over a date range, grouped by week. Use it to monitor traffic fluctuations and identify trends across weeks. Only complete Monday–Sunday weeks are included. Cost: 80 API units per line.

**Risk:** `read`

```ts theme={null}
await corsair.semrush.api.trafficMarket.trendWeekly({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | Target URL to query. The length must not exceed 2000 characters. Accepts values both with the protocol (`https://`) and without it. Example: example.com |
| `scope` | `string` | Yes | Which part of the URL to analyze. Supported values: ROOT\_DOMAIN, SUBDOMAIN, SUBFOLDER, PAGE.Example: ROOT\_DOMAIN |
| `date_from` | `string` | Yes | Start of the range. Format: YYYY-MM. Must not be earlier than 2017-01. The maximum range is 12 months. Weeks are attributed to the month in which they end (Sunday). |
| `date_to` | `string` | Yes | End of the range. Format: YYYY-MM. The maximum range is 12 months. Week attribution follows the same end-of-week (Sunday) rule as date\_from. Example: 2024-12 |
| `device_type` | `string` | No | Device type to filter by. Default: ALL when the parameter is omitted. Supported values: DESKTOP, MOBILE. |
| `country` | `string` | No | Country to filter by, using the ISO 3166-1 alpha-2 code, uppercased. Mutually exclusive with subregion and state. Default: worldwide if no region parameter is set. |
| `subregion` | `string` | No | Geographic subregion to filter by, using the UN geoscheme name in snake\_case (for example, northern\_africa, western\_europe). Mutually exclusive with country and state. |
| `state` | `string` | No | US state to filter by, using the ISO 3166-2 code with the country prefix (for example, US\_CA, US\_NY). Mutually exclusive with country and subregion. Default: worldwide if no region parameter is set. |
| `fields` | `string[]` | No | Metric fields to include in the response. Default: all fields. |
| `include_forecast` | `boolean` | No | Whether to include forecasted data in the response. |
| `format` | `json` | No | Response format. Supported values: json (default), csv. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `meta` | `object \| null` | No | — |
| `data` | `object[] \| null` | No | — |

> [accordion] meta full type
>
> ```ts theme={null}
> {
>   request_id?: string | null,
>   status_code?: number | null,
>   success?: boolean | null,
>   url?: string | null,
>   scope?: string | null,
>   date_from?: string | null,
>   date_to?: string | null,
>   device_type?: string | null,
>   effective_url?: string | null,
>   include_forecast?: boolean | null,
>   total?: number | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   date_from?: string | null,
>   date_to?: string | null,
>   is_forecast?: boolean | null,
>   metrics?: {
>     visitors?: number | null,
>     visits?: number | null,
>     page_views_per_visit?: number | null,
>     avg_visit_duration?: number | null
>   } | null
> }[] | null
> ```

***


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