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

# RAWG API reference

> API reference for the RAWG plugin in Corsair: every `rawg.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).

## Creator Roles

### list

`creatorRoles.list`

List the creator positions RAWG uses (writer, composer, director...).

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.creatorRoles.list({});
```

**Input**

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

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   name?: string | null,
>   slug?: string | null
> }[]
> ```

***

## Creators

### get

`creators.get`

Get one creator by id or slug, with description, rating and game count.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.creators.get({ id: 'erik-wolpaw' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `number \| string` | Yes | — |
| `name` | `string \| null` | No | — |
| `slug` | `string \| null` | No | — |
| `image` | `string \| null` | No | — |
| `image_background` | `string \| null` | No | — |
| `games_count` | `number \| null` | No | — |
| `positions` | `object[] \| null` | No | — |
| `games` | `any[] \| null` | No | — |
| `description` | `string \| null` | No | — |
| `reviews_count` | `number \| null` | No | — |
| `rating` | `number \| string \| null` | No | — |
| `rating_top` | `number \| null` | No | — |
| `updated` | `string \| null` | No | — |

> [accordion] positions full type
>
> ```ts theme={null}
> {
>   id?: number | string,
>   name?: string | null,
>   slug?: string | null
> }[] | null
> ```

***

### list

`creators.list`

List game creators (people) with their positions and best-known games.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.creators.list({ page_size: 10 });
```

**Input**

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

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   name?: string | null,
>   slug?: string | null,
>   image?: string | null,
>   image_background?: string | null,
>   games_count?: number | null,
>   positions?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   }[] | null,
>   games?: any[] | null
> }[]
> ```

***

## Developers

### get

`developers.get`

Get one developer by id or slug, with description and game count.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.developers.get({ id: 'valve-software' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `number \| string` | Yes | — |
| `name` | `string \| null` | No | — |
| `slug` | `string \| null` | No | — |
| `games_count` | `number \| null` | No | — |
| `image_background` | `string \| null` | No | — |
| `image` | `string \| null` | No | — |
| `domain` | `string \| null` | No | — |
| `language` | `string \| null` | No | — |
| `year_start` | `number \| null` | No | — |
| `year_end` | `number \| null` | No | — |
| `games` | `any[] \| null` | No | — |
| `description` | `string \| null` | No | — |

***

### list

`developers.list`

List game developers with game counts.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.developers.list({ page_size: 10 });
```

**Input**

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

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   name?: string | null,
>   slug?: string | null,
>   games_count?: number | null,
>   image_background?: string | null,
>   image?: string | null,
>   domain?: string | null,
>   language?: string | null,
>   year_start?: number | null,
>   year_end?: number | null,
>   games?: any[] | null
> }[]
> ```

***

## Games

### achievements

`games.achievements`

List a game's achievements with name, description, image and the percent of players who earned each.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.games.achievements({ id: 4200, page_size: 10 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   name?: string | null,
>   description?: string | null,
>   image?: string | null,
>   percent?: number | string | null
> }[]
> ```

***

### additions

`games.additions`

List a game's DLCs, GOTY and other editions, and companion apps.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.games.additions({ id: 3498 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   slug?: string | null,
>   name?: string | null,
>   released?: string | null,
>   tba?: boolean | null,
>   background_image?: string | null,
>   rating?: number | null,
>   rating_top?: number | null,
>   ratings?: {
>     id?: number | string,
>     title?: string | null,
>     count?: number | null,
>     percent?: number | null
>   }[] | Record<string, any> | null,
>   ratings_count?: number | null,
>   reviews_text_count?: number | string | null,
>   added?: number | null,
>   added_by_status?: Record<string, any> | null,
>   metacritic?: number | null,
>   playtime?: number | null,
>   suggestions_count?: number | null,
>   updated?: string | null,
>   esrb_rating?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   } | null,
>   platforms?: {
>     platform?: {
>       id?: number | string,
>       name?: string | null,
>       slug?: string | null,
>       image?: string | null,
>       year_end?: number | null,
>       year_start?: number | null,
>       games_count?: number | null,
>       image_background?: string | null
>     } | null,
>     released_at?: string | null,
>     requirements?: {
>       minimum?: string | null,
>       recommended?: string | null
>     } | any[] | null
>   }[] | null,
>   parent_platforms?: any[] | null,
>   genres?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   }[] | null,
>   stores?: any[] | null,
>   tags?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   }[] | null,
>   short_screenshots?: any[] | null
> }[]
> ```

***

### developmentTeam

`games.developmentTeam`

List the people credited on a game's development team, with their positions.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.games.developmentTeam({ id: 4200 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |
| `ordering` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   name?: string | null,
>   slug?: string | null,
>   image?: string | null,
>   image_background?: string | null,
>   games_count?: number | null,
>   positions?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   }[] | null,
>   games?: any[] | null
> }[]
> ```

***

### get

`games.get`

Get one game by id or slug: description, release date, ratings, Metacritic score and URL, website, platforms with requirements, developers, publishers, genres, tags and counts of screenshots, trailers and achievements.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.games.get({ id: 'portal-2' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `number \| string` | Yes | — |
| `slug` | `string \| null` | No | — |
| `name` | `string \| null` | No | — |
| `released` | `string \| null` | No | — |
| `tba` | `boolean \| null` | No | — |
| `background_image` | `string \| null` | No | — |
| `rating` | `number \| null` | No | — |
| `rating_top` | `number \| null` | No | — |
| `ratings` | `object[] \| Record<string, any> \| null` | No | — |
| `ratings_count` | `number \| null` | No | — |
| `reviews_text_count` | `number \| string \| null` | No | — |
| `added` | `number \| null` | No | — |
| `added_by_status` | `Record<string, any> \| null` | No | — |
| `metacritic` | `number \| null` | No | — |
| `playtime` | `number \| null` | No | — |
| `suggestions_count` | `number \| null` | No | — |
| `updated` | `string \| null` | No | — |
| `esrb_rating` | `object \| null` | No | — |
| `platforms` | `object[] \| null` | No | — |
| `parent_platforms` | `any[] \| null` | No | — |
| `genres` | `object[] \| null` | No | — |
| `stores` | `any[] \| null` | No | — |
| `tags` | `object[] \| null` | No | — |
| `short_screenshots` | `any[] \| null` | No | — |
| `name_original` | `string \| null` | No | — |
| `description` | `string \| null` | No | — |
| `description_raw` | `string \| null` | No | — |
| `metacritic_platforms` | `any[] \| null` | No | — |
| `background_image_additional` | `string \| null` | No | — |
| `website` | `string \| null` | No | — |
| `reactions` | `Record<string, any> \| null` | No | — |
| `screenshots_count` | `number \| null` | No | — |
| `movies_count` | `number \| null` | No | — |
| `creators_count` | `number \| null` | No | — |
| `achievements_count` | `number \| null` | No | — |
| `parent_achievements_count` | `number \| string \| null` | No | — |
| `reddit_url` | `string \| null` | No | — |
| `reddit_name` | `string \| null` | No | — |
| `reddit_description` | `string \| null` | No | — |
| `reddit_logo` | `string \| null` | No | — |
| `reddit_count` | `number \| null` | No | — |
| `twitch_count` | `number \| string \| null` | No | — |
| `youtube_count` | `number \| string \| null` | No | — |
| `alternative_names` | `string[] \| null` | No | — |
| `metacritic_url` | `string \| null` | No | — |
| `parents_count` | `number \| null` | No | — |
| `additions_count` | `number \| null` | No | — |
| `game_series_count` | `number \| null` | No | — |
| `developers` | `object[] \| null` | No | — |
| `publishers` | `object[] \| null` | No | — |

> [accordion] ratings full type
>
> ```ts theme={null}
> {
>   id?: number | string,
>   title?: string | null,
>   count?: number | null,
>   percent?: number | null
> }[] | Record<string, any> | null
> ```

> [accordion] esrb\_rating full type
>
> ```ts theme={null}
> {
>   id?: number | string,
>   name?: string | null,
>   slug?: string | null
> } | null
> ```

> [accordion] platforms full type
>
> ```ts theme={null}
> {
>   platform?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null,
>     image?: string | null,
>     year_end?: number | null,
>     year_start?: number | null,
>     games_count?: number | null,
>     image_background?: string | null
>   } | null,
>   released_at?: string | null,
>   requirements?: {
>     minimum?: string | null,
>     recommended?: string | null
>   } | any[] | null
> }[] | null
> ```

> [accordion] genres full type
>
> ```ts theme={null}
> {
>   id?: number | string,
>   name?: string | null,
>   slug?: string | null
> }[] | null
> ```

> [accordion] tags full type
>
> ```ts theme={null}
> {
>   id?: number | string,
>   name?: string | null,
>   slug?: string | null
> }[] | null
> ```

> [accordion] developers full type
>
> ```ts theme={null}
> {
>   id?: number | string,
>   name?: string | null,
>   slug?: string | null
> }[] | null
> ```

> [accordion] publishers full type
>
> ```ts theme={null}
> {
>   id?: number | string,
>   name?: string | null,
>   slug?: string | null
> }[] | null
> ```

***

### list

`games.list`

Search and filter the game catalog (by name, platform, store, genre, tag, developer, publisher, creator, release date, Metacritic score), one page at a time. Returns each game with rating, release date, platforms, genres, tags and stores.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.games.list({ search: 'portal', page_size: 5 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |
| `search` | `string` | No | — |
| `search_precise` | `boolean` | No | — |
| `search_exact` | `boolean` | No | — |
| `parent_platforms` | `string` | No | — |
| `platforms` | `string` | No | — |
| `stores` | `string` | No | — |
| `developers` | `string` | No | — |
| `publishers` | `string` | No | — |
| `genres` | `string` | No | — |
| `tags` | `string` | No | — |
| `creators` | `string` | No | — |
| `dates` | `string` | No | — |
| `updated` | `string` | No | — |
| `platforms_count` | `number` | No | — |
| `metacritic` | `string` | No | — |
| `exclude_collection` | `number` | No | — |
| `exclude_additions` | `boolean` | No | — |
| `exclude_parents` | `boolean` | No | — |
| `exclude_game_series` | `boolean` | No | — |
| `exclude_stores` | `string` | No | — |
| `ordering` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   slug?: string | null,
>   name?: string | null,
>   released?: string | null,
>   tba?: boolean | null,
>   background_image?: string | null,
>   rating?: number | null,
>   rating_top?: number | null,
>   ratings?: {
>     id?: number | string,
>     title?: string | null,
>     count?: number | null,
>     percent?: number | null
>   }[] | Record<string, any> | null,
>   ratings_count?: number | null,
>   reviews_text_count?: number | string | null,
>   added?: number | null,
>   added_by_status?: Record<string, any> | null,
>   metacritic?: number | null,
>   playtime?: number | null,
>   suggestions_count?: number | null,
>   updated?: string | null,
>   esrb_rating?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   } | null,
>   platforms?: {
>     platform?: {
>       id?: number | string,
>       name?: string | null,
>       slug?: string | null,
>       image?: string | null,
>       year_end?: number | null,
>       year_start?: number | null,
>       games_count?: number | null,
>       image_background?: string | null
>     } | null,
>     released_at?: string | null,
>     requirements?: {
>       minimum?: string | null,
>       recommended?: string | null
>     } | any[] | null
>   }[] | null,
>   parent_platforms?: any[] | null,
>   genres?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   }[] | null,
>   stores?: any[] | null,
>   tags?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   }[] | null,
>   short_screenshots?: any[] | null
> }[]
> ```

***

### movies

`games.movies`

List a game's trailers with preview image and video URLs.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.games.movies({ id: 3498 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   name?: string | null,
>   preview?: string | null,
>   data?: Record<string, any> | null
> }[]
> ```

***

### parentGames

`games.parentGames`

List the parent games of a DLC or edition.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.games.parentGames({ id: 347853 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   slug?: string | null,
>   name?: string | null,
>   released?: string | null,
>   tba?: boolean | null,
>   background_image?: string | null,
>   rating?: number | null,
>   rating_top?: number | null,
>   ratings?: {
>     id?: number | string,
>     title?: string | null,
>     count?: number | null,
>     percent?: number | null
>   }[] | Record<string, any> | null,
>   ratings_count?: number | null,
>   reviews_text_count?: number | string | null,
>   added?: number | null,
>   added_by_status?: Record<string, any> | null,
>   metacritic?: number | null,
>   playtime?: number | null,
>   suggestions_count?: number | null,
>   updated?: string | null,
>   esrb_rating?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   } | null,
>   platforms?: {
>     platform?: {
>       id?: number | string,
>       name?: string | null,
>       slug?: string | null,
>       image?: string | null,
>       year_end?: number | null,
>       year_start?: number | null,
>       games_count?: number | null,
>       image_background?: string | null
>     } | null,
>     released_at?: string | null,
>     requirements?: {
>       minimum?: string | null,
>       recommended?: string | null
>     } | any[] | null
>   }[] | null,
>   parent_platforms?: any[] | null,
>   genres?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   }[] | null,
>   stores?: any[] | null,
>   tags?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   }[] | null,
>   short_screenshots?: any[] | null
> }[]
> ```

***

### reddit

`games.reddit`

List the newest posts from the game's subreddit.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.games.reddit({ id: 3498 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   name?: string | null,
>   text?: string | null,
>   image?: string | null,
>   url?: string | null,
>   username?: string | null,
>   username_url?: string | null,
>   created?: string | null
> }[]
> ```

***

### screenshots

`games.screenshots`

List a game's screenshots (image URL, width, height).

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.games.screenshots({ id: 'portal-2' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |
| `ordering` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id?: number | string | null,
>   image?: string | null,
>   hidden?: boolean | null,
>   width?: number | null,
>   height?: number | null
> }[]
> ```

***

### series

`games.series`

List the other games in the same series.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.games.series({ id: 4200 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   slug?: string | null,
>   name?: string | null,
>   released?: string | null,
>   tba?: boolean | null,
>   background_image?: string | null,
>   rating?: number | null,
>   rating_top?: number | null,
>   ratings?: {
>     id?: number | string,
>     title?: string | null,
>     count?: number | null,
>     percent?: number | null
>   }[] | Record<string, any> | null,
>   ratings_count?: number | null,
>   reviews_text_count?: number | string | null,
>   added?: number | null,
>   added_by_status?: Record<string, any> | null,
>   metacritic?: number | null,
>   playtime?: number | null,
>   suggestions_count?: number | null,
>   updated?: string | null,
>   esrb_rating?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   } | null,
>   platforms?: {
>     platform?: {
>       id?: number | string,
>       name?: string | null,
>       slug?: string | null,
>       image?: string | null,
>       year_end?: number | null,
>       year_start?: number | null,
>       games_count?: number | null,
>       image_background?: string | null
>     } | null,
>     released_at?: string | null,
>     requirements?: {
>       minimum?: string | null,
>       recommended?: string | null
>     } | any[] | null
>   }[] | null,
>   parent_platforms?: any[] | null,
>   genres?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   }[] | null,
>   stores?: any[] | null,
>   tags?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   }[] | null,
>   short_screenshots?: any[] | null
> }[]
> ```

***

### stores

`games.stores`

List links to the stores that sell the game (store id and URL).

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.games.stores({ id: 'portal-2' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |
| `ordering` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   game_id?: number | string | null,
>   store_id?: number | string | null,
>   url?: string | null
> }[]
> ```

***

### suggested

`games.suggested`

List games that look like this one. RAWG serves this to business and enterprise API plans only; other keys get an error.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.games.suggested({ id: 3498 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   slug?: string | null,
>   name?: string | null,
>   released?: string | null,
>   tba?: boolean | null,
>   background_image?: string | null,
>   rating?: number | null,
>   rating_top?: number | null,
>   ratings?: {
>     id?: number | string,
>     title?: string | null,
>     count?: number | null,
>     percent?: number | null
>   }[] | Record<string, any> | null,
>   ratings_count?: number | null,
>   reviews_text_count?: number | string | null,
>   added?: number | null,
>   added_by_status?: Record<string, any> | null,
>   metacritic?: number | null,
>   playtime?: number | null,
>   suggestions_count?: number | null,
>   updated?: string | null,
>   esrb_rating?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   } | null,
>   platforms?: {
>     platform?: {
>       id?: number | string,
>       name?: string | null,
>       slug?: string | null,
>       image?: string | null,
>       year_end?: number | null,
>       year_start?: number | null,
>       games_count?: number | null,
>       image_background?: string | null
>     } | null,
>     released_at?: string | null,
>     requirements?: {
>       minimum?: string | null,
>       recommended?: string | null
>     } | any[] | null
>   }[] | null,
>   parent_platforms?: any[] | null,
>   genres?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   }[] | null,
>   stores?: any[] | null,
>   tags?: {
>     id?: number | string,
>     name?: string | null,
>     slug?: string | null
>   }[] | null,
>   short_screenshots?: any[] | null
> }[]
> ```

***

### twitch

`games.twitch`

List Twitch streams linked to the game. RAWG serves this to business and enterprise API plans only; other keys get an error.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.games.twitch({ id: 3498 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   count?: number | null,
>   next?: string | null,
>   previous?: string | null,
>   next_page?: number | null,
>   results: {
>     id: number | string,
>     external_id?: number | string | null,
>     name?: string | null,
>     description?: string | null,
>     created?: string | null,
>     published?: string | null,
>     thumbnail?: string | null,
>     view_count?: number | null,
>     language?: string | null
>   }[]
> } | {
>   id: number | string,
>   external_id?: number | string | null,
>   name?: string | null,
>   description?: string | null,
>   created?: string | null,
>   published?: string | null,
>   thumbnail?: string | null,
>   view_count?: number | null,
>   language?: string | null
> }
> ```

***

### youtube

`games.youtube`

List YouTube videos linked to the game. RAWG serves this to business and enterprise API plans only; other keys get an error.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.games.youtube({ id: 3498 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   count?: number | null,
>   next?: string | null,
>   previous?: string | null,
>   next_page?: number | null,
>   results: {
>     id: number | string,
>     external_id?: string | null,
>     channel_id?: string | null,
>     channel_title?: string | null,
>     name?: string | null,
>     description?: string | null,
>     created?: string | null,
>     view_count?: number | null,
>     comments_count?: number | null,
>     like_count?: number | null,
>     dislike_count?: number | null,
>     favorite_count?: number | null,
>     thumbnails?: Record<string, any> | null
>   }[]
> } | {
>   id: number | string,
>   external_id?: string | null,
>   channel_id?: string | null,
>   channel_title?: string | null,
>   name?: string | null,
>   description?: string | null,
>   created?: string | null,
>   view_count?: number | null,
>   comments_count?: number | null,
>   like_count?: number | null,
>   dislike_count?: number | null,
>   favorite_count?: number | null,
>   thumbnails?: Record<string, any> | null
> }
> ```

***

## Genres

### get

`genres.get`

Get one genre by id or slug, with description and game count.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.genres.get({ id: 'action' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `number \| string` | Yes | — |
| `name` | `string \| null` | No | — |
| `slug` | `string \| null` | No | — |
| `games_count` | `number \| null` | No | — |
| `image_background` | `string \| null` | No | — |
| `image` | `string \| null` | No | — |
| `domain` | `string \| null` | No | — |
| `language` | `string \| null` | No | — |
| `year_start` | `number \| null` | No | — |
| `year_end` | `number \| null` | No | — |
| `games` | `any[] \| null` | No | — |
| `description` | `string \| null` | No | — |

***

### list

`genres.list`

List genres with game counts and a few top games each.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.genres.list({ ordering: '-games_count' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |
| `ordering` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   name?: string | null,
>   slug?: string | null,
>   games_count?: number | null,
>   image_background?: string | null,
>   image?: string | null,
>   domain?: string | null,
>   language?: string | null,
>   year_start?: number | null,
>   year_end?: number | null,
>   games?: any[] | null
> }[]
> ```

***

## Platforms

### get

`platforms.get`

Get one platform by id or slug, with description, game count and release years.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.platforms.get({ id: 4 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `number \| string` | Yes | — |
| `name` | `string \| null` | No | — |
| `slug` | `string \| null` | No | — |
| `games_count` | `number \| null` | No | — |
| `image_background` | `string \| null` | No | — |
| `image` | `string \| null` | No | — |
| `domain` | `string \| null` | No | — |
| `language` | `string \| null` | No | — |
| `year_start` | `number \| null` | No | — |
| `year_end` | `number \| null` | No | — |
| `games` | `any[] \| null` | No | — |
| `description` | `string \| null` | No | — |

***

### list

`platforms.list`

List platforms (PC, PlayStation 5, Nintendo Switch...) with game counts and release years.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.platforms.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |
| `ordering` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   name?: string | null,
>   slug?: string | null,
>   games_count?: number | null,
>   image_background?: string | null,
>   image?: string | null,
>   domain?: string | null,
>   language?: string | null,
>   year_start?: number | null,
>   year_end?: number | null,
>   games?: any[] | null
> }[]
> ```

***

### parents

`platforms.parents`

List parent platforms (PlayStation, Xbox, Nintendo...) with the platforms under each.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.platforms.parents({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |
| `ordering` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   name?: string | null,
>   slug?: string | null,
>   platforms?: {
>     id: number | string,
>     name?: string | null,
>     slug?: string | null,
>     games_count?: number | null,
>     image_background?: string | null,
>     image?: string | null,
>     domain?: string | null,
>     language?: string | null,
>     year_start?: number | null,
>     year_end?: number | null,
>     games?: any[] | null
>   }[] | null
> }[]
> ```

***

## Publishers

### get

`publishers.get`

Get one publisher by id or slug, with description and game count.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.publishers.get({ id: 'electronic-arts' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `number \| string` | Yes | — |
| `name` | `string \| null` | No | — |
| `slug` | `string \| null` | No | — |
| `games_count` | `number \| null` | No | — |
| `image_background` | `string \| null` | No | — |
| `image` | `string \| null` | No | — |
| `domain` | `string \| null` | No | — |
| `language` | `string \| null` | No | — |
| `year_start` | `number \| null` | No | — |
| `year_end` | `number \| null` | No | — |
| `games` | `any[] \| null` | No | — |
| `description` | `string \| null` | No | — |

***

### list

`publishers.list`

List game publishers with game counts.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.publishers.list({ page_size: 10 });
```

**Input**

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

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   name?: string | null,
>   slug?: string | null,
>   games_count?: number | null,
>   image_background?: string | null,
>   image?: string | null,
>   domain?: string | null,
>   language?: string | null,
>   year_start?: number | null,
>   year_end?: number | null,
>   games?: any[] | null
> }[]
> ```

***

## Stores

### get

`stores.get`

Get one store by id or slug, with description, domain and game count.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.stores.get({ id: 'steam' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `number \| string` | Yes | — |
| `name` | `string \| null` | No | — |
| `slug` | `string \| null` | No | — |
| `games_count` | `number \| null` | No | — |
| `image_background` | `string \| null` | No | — |
| `image` | `string \| null` | No | — |
| `domain` | `string \| null` | No | — |
| `language` | `string \| null` | No | — |
| `year_start` | `number \| null` | No | — |
| `year_end` | `number \| null` | No | — |
| `games` | `any[] \| null` | No | — |
| `description` | `string \| null` | No | — |

***

### list

`stores.list`

List storefronts (Steam, PlayStation Store, GOG...) with domains and game counts.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.stores.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `page` | `number` | No | — |
| `page_size` | `number` | No | — |
| `ordering` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   name?: string | null,
>   slug?: string | null,
>   games_count?: number | null,
>   image_background?: string | null,
>   image?: string | null,
>   domain?: string | null,
>   language?: string | null,
>   year_start?: number | null,
>   year_end?: number | null,
>   games?: any[] | null
> }[]
> ```

***

## Tags

### get

`tags.get`

Get one tag by id or slug, with description and game count.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.tags.get({ id: 'singleplayer' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| number` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `number \| string` | Yes | — |
| `name` | `string \| null` | No | — |
| `slug` | `string \| null` | No | — |
| `games_count` | `number \| null` | No | — |
| `image_background` | `string \| null` | No | — |
| `image` | `string \| null` | No | — |
| `domain` | `string \| null` | No | — |
| `language` | `string \| null` | No | — |
| `year_start` | `number \| null` | No | — |
| `year_end` | `number \| null` | No | — |
| `games` | `any[] \| null` | No | — |
| `description` | `string \| null` | No | — |

***

### list

`tags.list`

List tags (singleplayer, open world...) with game counts.

**Risk:** `read`

```ts theme={null}
await corsair.rawg.api.tags.list({ page_size: 10 });
```

**Input**

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

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `count` | `number \| null` | No | — |
| `next` | `string \| null` | No | — |
| `previous` | `string \| null` | No | — |
| `next_page` | `number \| null` | No | — |
| `results` | `object[]` | Yes | — |

> [accordion] results full type
>
> ```ts theme={null}
> {
>   id: number | string,
>   name?: string | null,
>   slug?: string | null,
>   games_count?: number | null,
>   image_background?: string | null,
>   image?: string | null,
>   domain?: string | null,
>   language?: string | null,
>   year_start?: number | null,
>   year_end?: number | null,
>   games?: any[] | null
> }[]
> ```

***


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