Logo

Docs

Artists

Artist Models

The artist resource types used across the OpenMusic API.

BaseArtist

Minimal artist resource shape used for view=minimal and nested relationships.

interface BaseArtist extends ResourceBase {
  type: "artists";
  meta: {
    omm_id: string | null;
  };
  relationships?: {
    albums?: (Album | BaseAlbum)[];
    songs?: (Song | BaseSong)[];
  };
}

Artist

Full artist resource returned when attributes are requested; extends BaseArtist.

interface Artist extends BaseArtist {
  attributes: ArtistAttributes;
}

ArtistAttributes

Full metadata fields attached to Artist.

interface ArtistAttributes {
  name: string;
  artwork_url: string | null;
  genres: string[];
}

On this page