---
title: "Get external metadata for a label"
method: GET
path: "/labels/{label_id}/fetch-metadata"
tags: ["Labels", "Utilities"]
---

# Get external metadata for a label

`GET /labels/{label_id}/fetch-metadata`

Return External plugin metadata searching by object id and type

## Path parameters

- `label_id` string, required

## Response `200`

External metadata array

- union — Returns the plugin payloads when at least one metadata plugin answered, and the empty list envelope for the requested type when none did.
  - ExternalMetadataObject — `plugin` is keyed by metadata-retriever plugin name; each value is that plugin's payload.
    - `object_id` string, required
    - `object_type` string, required — The kind of object referenced, as a bare string. The set is intentionally open so a new media type is not a breaking change; values seen today include `song`, `album`, `artist`, `playlist`, `podcast`, `podcast_episode` and `video`.
    - `plugin` PluginMap, required
  - EmptyListResponse — The standard empty envelope, with an empty list keyed by the requested type.
    - `total_count` integer, required
    - `md5` string, required

## Other responses

- `400` — HTTP 400 Bad Request (errors 4705, 4710).
- `401` — HTTP 401 Unauthorized (error 4701).
- `403` — HTTP 403 Forbidden (errors 4700, 4703, 4742).
- `404` — HTTP 404 Not Found (error 4704).
- `500` — HTTP 500 Internal Server Error (error 4702).

## Changes

- **2026-07-22** `e8e6b266ea29` — 5 info
  - api operation id `getExternalMetadataLabelsFetchMetadata` was added
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
  - …1 more
- **2026-07-21** `2ff18e50dcc1` — 2 breaking
  - added `#/components/schemas/ExternalMetadataObject, #/components/schemas/EmptyListResponse` to the response body `oneOf` list for the response status `200`
  - the response's body type/format changed from `object`/`` to ``/`` for status `200`
- **2026-07-17** `9abb9bf6d3bf` — 1 info
  - removed the non-success response with the status `400`
- **2026-06-25** `7ed7a764efd9` — 1 info
  - added the non-success response with the status `400`
- **2026-02-26** `c3f202b17eb7` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/ampache/apis/ampache-rest-api/changes/labels/:label_id/fetch-metadata/get.md)

---

[API](https://skmtc.dev/ampache/apis/ampache-rest-api.md) · [All operations](https://skmtc.dev/ampache/apis/ampache-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ampache/ampache-rest-api/revisions/42d304fb6867/schema)
