# `ExDisco.Labels.Label`
[🔗](https://github.com/bo1ta/ex_disco/blob/main/lib/ex_disco/labels/label.ex#L1)

A record label (publisher) from Discogs.

Labels represent record companies, publishers, or other entities that release
music. They can range from major corporations to independent publishers and
can have sublabels.

## Fields

- `:id` — Unique Discogs label ID
- `:name` — Label name
- `:profile` — Label description and history
- `:contact_info` — Contact information (phone, email, etc.)
- `:urls` — Official website and social media URLs
- `:images` — Label logo and other images
- `:releases_url` — API endpoint for this label's releases
- `:data_quality` — Discogs data quality rating

## Examples

Fetch label information:

    {:ok, label} = ExDisco.Labels.get(1)
    IO.inspect(label.name)
    IO.inspect(label.profile)

Get releases from a label:

    {:ok, releases} = ExDisco.Labels.get_releases(1)
    Enum.each(releases, &IO.inspect(&1.title))

See `ExDisco.Types.Image` for image field details.

# `t`

```elixir
@type t() :: %ExDisco.Labels.Label{
  contact_info: String.t() | nil,
  data_quality: String.t(),
  id: pos_integer(),
  images: [ExDisco.Types.Image.t()],
  name: String.t(),
  profile: String.t(),
  releases_url: String.t(),
  resource_url: String.t(),
  uri: String.t(),
  urls: [String.t()]
}
```

# `from_api`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
