# Reference data

> Genres, languages, contributor roles, countries, stores and the other code lists the API accepts, with the endpoint that returns each one. Fetch them, cache them, and build your pickers from them.

Source: https://docs.releaseapi.com/reference-data.html

**At a glance**

- Every list lives under `GET /v1/core/data/{list}` and works with any key.
- Send the `code` values exactly as returned. The names are only for display.
- The lists rarely change, so fetch them at start-up or once a day and cache them, rather than on every form load.
- Store, reporting-store and reporting-service codes are separate lists and aren’t mapped to each other.

## How to use reference data

Wherever the API takes a value from a fixed list, it expects a **code**: an upper-snake-case string such as `ELECTRONIC_HOUSE`, `BASS_GUITAR` or `APPLE_MUSIC`. Each list has an endpoint under `/v1/core/data` that returns every code together with a human-readable name and any extra attributes. Show the name in your interface, and send the code to the API.

- All endpoints are `GET`, need the `ENUM_READ` permission (every role has it), and work with client and tenant keys.
- They return a plain JSON array, not a paginated wrapper.
- Short fixed lists have no endpoint. `explicit`, `countriesMode`, `youtubeClaimPolicy`, `syncRequestPriority` and file statuses are documented next to their field, in [Build a release › Field reference](https://docs.releaseapi.com/drafts.html#field-reference) and on [Upload files](https://docs.releaseapi.com/files.html).
- The lists change only when ReleaseAPI adds a store, genre or role. Fetch them when you deploy or once a day and cache them. Don’t hardcode them, because new values can be added after you copy a list.

The cURL examples on this page use `$BASE` for `https://api-sandbox.releaseapi.com/v1` and `$RELEASEAPI_KEY` for your key, as set up in the [Quickstart](https://docs.releaseapi.com/quickstart.html#before-you-start).

`GET /v1/core/data/genres`

**cURL**

```bash
curl "$BASE/core/data/genres" \
  -H "X-API-KEY: $RELEASEAPI_KEY"
```

**Response**

```json
[
  { "code": "ELECTRONIC", "name": "Electronic", "mainGenre": "Electronic" },
  { "code": "ELECTRONIC_HOUSE", "name": "Electronic / House", "mainGenre": "Electronic", "subGenre": "House" },
  { "code": "ELECTRONIC_TECHNO", "name": "Electronic / Techno", "mainGenre": "Electronic", "subGenre": "Techno" },
  "…"
]
```

## Endpoints

Every list is a `GET` on `/v1/core/data/{list}`. The tables give the `{list}` part, grouped by where you use it.

### Catalog and distribution

| List | Item | Used for |
| --- | --- | --- |
| `genres` | `code`, `name`, `mainGenre`, `subGenre` | Release and track genres. |
| `languages` | `code`, `name`, `i18n` | Metadata language and the language of the lyrics or audio. |
| `contributors` | `code`, `name`, `roleGroup` | The `role` of each contributor on a release or track. |
| `countries` | `code`, `name`, `continentCode`, `continentName` | Territory selection on a release. |
| `stores` | `code`, `name`, `isActive`, `specialRules`, `supportsVideo` | The stores a release goes to. See [Stores and providers](https://docs.releaseapi.com/delivery.html#stores-and-providers). |
| `delivery-providers` | `code`, `supportedStores`, `requiredConfigAttributes` | Delivery profiles. |
| `pricing-tier` | `code`, `trackPriceEur`, `releasePriceEurForTracks` | Download pricing on a release. |
| `release-media-types` | `code` | The format of a release (single, EP, album, …). |
| `video-rating-agencies` | `code` | Age ratings on music videos. |
| `quality-file-types` | `code` | Quality reports on catalog releases. |

### Reporting and analytics

These are the codes you’ll see in statements, trends and analytics:

| List | Item | Used for |
| --- | --- | --- |
| `reporting-stores` | `code` | Store dimension in analytics and exports. |
| `reporting-services` | `code`, `hasTrendData`, `hasVideoTrendData` | Which services deliver daily trend data. |
| `trends-providers` | `code`, `requiredConfigAttributes` | Daily trend imports. See [Reports and exports › Daily trends](https://docs.releaseapi.com/reports.html#daily-trends). |
| `trends-report-types` | `code` | Trend reports. |
| `statements-providers` | `code` | Who sent a statement, which isn’t always where the music was heard. Appears as `reporting_provider` in statement reports. |
| `statements-report-types` | `code` | Statement reports. |
| `export-report-types` | `reportType`, `allowedFilters` | Which filters each export type accepts. See [Exports](https://docs.releaseapi.com/reports.html#exports). |
| `reporting-purchase-types` | `code` | Purchase type dimension. |
| `reporting-media-types` | `code` | Media type dimension. |
| `reporting-transaction-types` | `code` | Transaction type dimension. |
| `reporting-device-types` | `code` | Device type dimension. |
| `reporting-device-ecosystems` | `code` | Device ecosystem dimension. |
| `reporting-genders` | `code` | Listener gender dimension. |

Three of these lists describe where a figure comes from. A **reporting store** is the company (`APPLE`), a **reporting service** is one of its products (`APPLE_MUSIC`, `APPLE_ITUNES`), and a **provider** is the feed the data came through. They are separate lists that have codes but no display names, and there’s no endpoint that maps one to another. Every report row carries both `store` and `service`, so build the store-to-service mapping from your own data (the distinct pairs) and keep your own display names and icons next to it. The distribution store codes ([Stores and providers](https://docs.releaseapi.com/delivery.html#stores-and-providers)) are a fourth list, so don’t assume a reporting code equals a delivery code.

## Genres

Genres have two levels. Each code is either a main genre on its own (`ELECTRONIC`) or a main genre with a sub-genre (`ELECTRONIC_HOUSE`, `HIP_HOP_TRAP`). There are about 470 codes across these main genres:

African · Alternative · Asian · Audiobook · Blues · Children’s Music · Christian · Classical · Comedy · Country · Electronic · European · Folk · Hip Hop · Holiday · Jazz · Latin · Metal · New Age · Other · Pop · R&B · Reggae · Rock · Soundtrack · Spoken Word · Vocal · World

ReleaseAPI translates each code into every store’s own genre taxonomy when it delivers, so you pick one code and don’t need to know Apple’s or Amazon’s lists. A few stores restrict genres: Beatport and Juno Download take electronic releases only, and Apple doesn’t accept audiobooks. The `specialRules` field on each store lists these.

## Contributor roles

Every contributor on a release or track has a `role`. There are close to a thousand roles, from `ARTIST` and `FEATURING` to `BASS_GUITAR` and `PRODUCER`. Each belongs to one of four groups, which is the natural way to structure a role picker:

| `roleGroup` | Contains | Examples |
| --- | --- | --- |
| `MAIN_ARTIST_GROUP` | The artists a release is credited to. | `ARTIST`, `FEATURING` |
| `PERFORMER_GROUP` | Musicians and vocalists. | `BASS_GUITAR`, `CELLO`, `CHORUS` |
| `COMPOSER_AND_LYRICIST_GROUP` | Writers. | `COMPOSER`, `LYRICIST`, `ARRANGER` |
| `PRODUCTION_AND_ENGINEERING_GROUP` | Producers and engineers. | `PRODUCER`, `ENGINEER`, `ADDITIONAL_PRODUCER` |

`GET /v1/core/data/contributors`

```json
[
  { "code": "ARTIST", "name": "Artist", "roleGroup": "MAIN_ARTIST_GROUP" },
  { "code": "FEATURING", "name": "Featuring", "roleGroup": "MAIN_ARTIST_GROUP" },
  { "code": "COMPOSER", "name": "Composer", "roleGroup": "COMPOSER_AND_LYRICIST_GROUP" },
  { "code": "BASS_GUITAR", "name": "Bass Guitar", "roleGroup": "PERFORMER_GROUP" },
  "…"
]
```

## Languages

Language codes are ISO 639-1 two-letter codes in upper case (`EN`, `DE`, `ES`), plus a few codes for languages that have no two-letter code. `ZXX` means “no linguistic content” and is the right value for instrumentals. Each entry includes `i18n`, a list of translated names. Currently it holds the German name, for use in German-language pickers.

`GET /v1/core/data/languages`

```json
[
  {
    "code": "DE",
    "name": "German",
    "i18n": [ { "language": "DE", "name": "Deutsch" } ]
  },
  "…"
]
```

## Countries

Countries use ISO 3166-1 alpha-2 codes (`AT`, `DE`, `US`). Each entry has the continent, which is useful for building “all of Europe” shortcuts in a territory picker.

`GET /v1/core/data/countries`

```json
[
  { "code": "AT", "name": "Austria", "continentCode": "EU", "continentName": "Europe" },
  {
    "code": "AU", "name": "Australia",
    "continentCode": "OC", "continentName": "Australia and Oceania"
  },
  "…"
]
```

## Stores and delivery providers

`/core/data/stores` lists every store ReleaseAPI can deliver to, and `/core/data/delivery-providers` lists the feeds that carry releases to them. The full table, with each store’s rules, is under [All stores](https://docs.releaseapi.com/delivery.html#store-list).

`GET /v1/core/data/stores`

```json
[
  { "code": "SPOTIFY", "name": "Spotify", "isActive": true, "supportsVideo": true },
  {
    "code": "BEATPORT",
    "name": "Beatport",
    "isActive": true,
    "specialRules": "Must be electronic genre",
    "supportsVideo": false
  },
  "…"
]
```

## Release media types

This list describes the format of a release. A release has no media-type field of its own. Instead, the list is used by the release’s `overwrites.spotifyReleaseType`, an optional override of the release type sent to Spotify. The full list is short:

`SINGLE` · `EP` · `ALBUM` · `COMPILATION` · `LIVE` · `SOUNDTRACK` · `CLASSICAL` · `KARAOKE` · `TRIBUTE` · `PUBLIC_DOMAIN` · `AUDIO_BOOK_RELEASE` · `AUDIO_DRAMA_RELEASE` · `VIDEO_SINGLE`

## Pricing tiers

Pricing tiers set the download prices listeners pay on stores that sell downloads, such as iTunes and Amazon. They have nothing to do with what ReleaseAPI charges you, which you’ll find on [releaseapi.com](https://releaseapi.com/#pricing). There are three track prices — `LOW` (€0.69), `MID` (€0.99) and `HIGH` (€1.29) — each with variants `_MINUS_1` to `_MINUS_14` that keep the track price but step the price of the full release down through the allowed bundle prices. For every tier, `releasePriceEurForTracks` lists the release price for releases of 1 to 20 tracks, so you can show the buyer’s price in your interface.

`GET /v1/core/data/pricing-tier`

```json
[
  {
    "code": "MID",
    "trackPriceEur": 0.99,
    "releasePriceEurForTracks": [0.99, 1.49, "…"]
  },
  "…"
]
```

## Video rating agencies

Music videos can carry age ratings from national classification bodies, for example `BBFC` (United Kingdom), `CNC` (France) or `EIRIN` (Japan). `USER_DEFINED` is for your own age restriction when no agency has rated the video. See [Music videos](https://docs.releaseapi.com/videos.html).

## Export report types

Each export type accepts its own set of filters. This list names them, so you can offer only the filters that apply when someone orders an export. Sending a filter the type doesn’t allow fails with `<FILTER>_FILTER_NOT_ALLOWED`.

The names here are `snake_case`, while the export request uses camelCase: `customer_ids` is the `customerIds` filter, `sold_at_from` is `soldAtFrom`. The required `reportedAtFrom` and `reportedAtTo` aren’t listed. See [Export filters](https://docs.releaseapi.com/reports.html#filters).

`GET /v1/core/data/export-report-types`

```json
[
  {
    "reportType": "TRENDS_PROCESSED_DUMP",
    "allowedFilters": [
      "tenant_id", "sold_at_from", "sold_at_to",
      "customer_ids", "release_ids", "track_ids",
      "stores", "countries", "…"
    ]
  },
  "…"
]
```

## Validation codes

Two lists explain the codes you meet in [validation findings](https://docs.releaseapi.com/review.html#check-before-you-submit) and [rejection reasons](https://docs.releaseapi.com/review.html#handle-a-rejection). Both need `DRAFT_READ`, and each entry carries an English `explanation` of what the code means and a `fix`. Load them once, cache them, and look up codes from there.

- **`GET /v1/distribution/drafts/validations`** lists every check a release or video draft runs, with its `severity` (see [Severities](https://docs.releaseapi.com/review.html#severities)). `name` is the code you find in `check.name`, and `description` is a short developer note.
- **`GET /v1/distribution/drafts/rejection-reasons`** lists every reason a reviewer can give. `kind` says where it comes from. `CHECK` is a validation check that a reviewer can also give, `REVIEW` is a reason only a reviewer sets, and `ACCEPTANCE` is a reason ReleaseAPI sets when acceptance fails.
- **The texts are written for developers.** Field names appear in backticks. Use them as a starting point for your own wording, and translate them if your users need another language.
- **Codes are stable**, but new ones appear as checks are added. Fall back to a generic message for a code you don’t know.

`GET /v1/distribution/drafts/validations`

```json
[
  {
    "severity": "ERROR",
    "name": "TRACK_CONTRIBUTIONS_NO_COMPOSER",
    "description": "no composer defined for track",
    "explanation": "The track has no composer.",
    "fix": "Add a contributor with the role `COMPOSER`."
  }
]
```

`GET /v1/distribution/drafts/rejection-reasons`

```json
[
  {
    "name": "RELEASE_COVER_IS_GENERIC",
    "kind": "REVIEW",
    "explanation": "The cover is a stock or generic image that doesn't identify the release.",
    "fix": "Use artwork specific to the release."
  }
]
```

## Next steps

- [Build a release](https://docs.releaseapi.com/drafts.html): Where genres, languages, roles and countries go on a draft.
- [Deliver to stores](https://docs.releaseapi.com/delivery.html#stores-and-providers): See every store, the providers that deliver to it and its rules.
- [API basics](https://docs.releaseapi.com/api-basics.html): How codes, ids, dates and money are formatted everywhere.
