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.

At a glance

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.

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.

curl "$BASE/core/data/genres" \
  -H "X-API-KEY: $RELEASEAPI_KEY"
[
  { "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

ListItemUsed for
genrescode, name, mainGenre, subGenreRelease and track genres.
languagescode, name, i18nMetadata language and the language of the lyrics or audio.
contributorscode, name, roleGroupThe role of each contributor on a release or track.
countriescode, name, continentCode, continentNameTerritory selection on a release.
storescode, name, isActive, specialRules, supportsVideoThe stores a release goes to. See Stores and providers.
delivery-providerscode, supportedStores, requiredConfigAttributesDelivery profiles.
pricing-tiercode, trackPriceEur, releasePriceEurForTracksDownload pricing on a release.
release-media-typescodeThe format of a release (single, EP, album, …).
video-rating-agenciescodeAge ratings on music videos.
quality-file-typescodeQuality reports on catalog releases.

Reporting and analytics

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

ListItemUsed for
reporting-storescodeStore dimension in analytics and exports.
reporting-servicescode, hasTrendData, hasVideoTrendDataWhich services deliver daily trend data.
trends-providerscode, requiredConfigAttributesDaily trend imports. See Reports and exports › Daily trends.
trends-report-typescodeTrend reports.
statements-providerscodeWho sent a statement, which isn’t always where the music was heard. Appears as reporting_provider in statement reports.
statements-report-typescodeStatement reports.
export-report-typesreportType, allowedFiltersWhich filters each export type accepts. See Exports.
reporting-purchase-typescodePurchase type dimension.
reporting-media-typescodeMedia type dimension.
reporting-transaction-typescodeTransaction type dimension.
reporting-device-typescodeDevice type dimension.
reporting-device-ecosystemscodeDevice ecosystem dimension.
reporting-genderscodeListener 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) 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:

AfricanAlternativeAsianAudiobookBluesChildren’s MusicChristianClassicalComedyCountryElectronicEuropeanFolkHip HopHolidayJazzLatinMetalNew AgeOtherPopR&BReggaeRockSoundtrackSpoken WordVocalWorld

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:

roleGroupContainsExamples
MAIN_ARTIST_GROUPThe artists a release is credited to.ARTIST, FEATURING
PERFORMER_GROUPMusicians and vocalists.BASS_GUITAR, CELLO, CHORUS
COMPOSER_AND_LYRICIST_GROUPWriters.COMPOSER, LYRICIST, ARRANGER
PRODUCTION_AND_ENGINEERING_GROUPProducers and engineers.PRODUCER, ENGINEER, ADDITIONAL_PRODUCER
[
  { "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.

[
  {
    "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.

[
  { "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.

[
  { "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:

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

[
  {
    "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.

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.

[
  {
    "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 and rejection reasons. 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.

[
  {
    "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`."
  }
]
[
  {
    "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

Where genres, languages, roles and countries go on a draft.

Read the guide →

Deliver to stores

See every store, the providers that deliver to it and its rules.

See the list →

API basics

How codes, ids, dates and money are formatted everywhere.

Read the reference →