---
title: "Fetches genres from the instance"
method: GET
path: "/api/Metadata/genres"
tags: ["Metadata"]
---

# Fetches genres from the instance

`GET /api/Metadata/genres`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/Metadata/genres`
- Auth: API key in header `x-api-key`

## Query parameters

- `libraryIds` string
- `context` 1 | 2 | 4: Members: - `1` — None - `2` — Search - `4` — Dashboard

## Response `200`

OK

- GenreTagDto[]
  - `id` integer
  - `title` string, nullable, required

## Changes

- **2026-04-16** `3ca5068a5435`: 1 breaking
  - removed the enum value `3.00` from the `query` request parameter `context`
- **2026-04-13** `eb711fdfe620`: 1 breaking
  - for the `query` request parameter `context`, default value `1` was removed

[Operation history](https://skmtc.dev/kareadita/apis/kavita/changes/api/Metadata/genres/get.md)

---

[API](https://skmtc.dev/kareadita/apis/kavita.md) - [All operations](https://skmtc.dev/kareadita/apis/kavita/llms.txt) - [OpenAPI document](https://skmtc.dev/kareadita/apis/kavita/revisions/d266465eeb67?raw)
