---
title: "Get Genre by ID"
method: GET
path: "/api/genres/{id}"
tags: ["Genre"]
---

# Get Genre by ID

`GET /api/genres/{id}`

## Request

- Base URL: `https://api.chartmetric.com`
- URL: `https://api.chartmetric.com/api/genres/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/chartmetric/apis/chartmetric-developer-api/docs/api/genres/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch a single Chartmetric genre by its ID.

## Path parameters

- `id` integer, required: Chartmetric genre ID.

## Response `200`

Success

- object
  - `obj` object, nullable
    - `id` integer, required: Chartmetric genre ID.
    - `name` string, required: Genre name (e.g. `K-Pop`).
    - `type` 'genre' | 'genre_v2', required: Taxonomy the genre belongs to: `genre_v2` is the modern Chartmetric taxonomy, `genre` is the legacy taxonomy.
    - `source` string, required: Origin of the genre record (e.g. `cm` for Chartmetric-curated, `spotify` for Spotify-derived sub-genres).

---

[API](https://skmtc.dev/chartmetric/apis/chartmetric-developer-api.md) - [All operations](https://skmtc.dev/chartmetric/apis/chartmetric-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/chartmetric/apis/chartmetric-developer-api/revisions/94dac96833a3?raw)
