The Artists API exposes your Crate library at the artist level. An artist record is created whenever you watch a full discography (viaDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/TheOutdoorProgrammer/crate/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/watch/artist/{id}) or as a side-effect of watching an individual album or track. The endpoints here let you inspect the library, control per-artist settings, trigger bulk downloads, and remove entries you no longer want.
The Artist Object
Every endpoint that returns an artist uses the following shape:Crate’s internal auto-increment artist ID. Use this for all
/api/artists/{id} calls.Artist display name as returned by the provider at watch time.
The provider this artist is linked to (e.g.
deezer, musicbrainz, local).The provider-specific artist ID used for re-fetching discography data.
Artist photo URL. Omitted from JSON when
null.One of
watched (full discography tracked), partial (added as a stub when watching an album/track), or owned (imported from local files, not yet linked to a provider).Whether Crate will automatically add newly released albums for this artist.
RFC 3339 timestamp. Only albums released after this date trigger auto-add. Omitted when
watch_new_releases is false.RFC 3339 timestamp when this artist was first added to the library.
RFC 3339 timestamp of the most recent modification.
Only populated by
GET /api/artists/{id}. Contains full album objects with nested tracks[].Total number of tracks across all watched albums for this artist.
Number of tracks with files on disk (status
owned).true when the artist’s provider is currently unreachable. Orphaned artists still function — you can queue and download tracks — but browsing and relinking require the provider to be healthy.GET /api/artists/
Returns all artists in the library as an array. Each entry includestotal_tracks and owned_tracks counts. Albums and tracks are not nested here — use GET /api/artists/{id} for that level of detail. The orphaned flag is set per-artist based on a live provider health check (results are cached per request to avoid N provider pings per call).
Example
[] when the library has no artists.
GET /api/artists/
Returns a single artist by Crate’s internal ID, with full album and track data nested. This is the most complete artist view — every album is included with itstracks[] array populated.
Path Parameters
Crate’s internal artist ID. Obtain from
GET /api/artists/ or from a watch response.PUT /api/artists//new-releases
Enables or disables automatic new-release detection for this artist. When enabled, Crate’s scheduled scanner adds any album released afterwatch_new_releases_since (set to the current time when first enabled). Returns the updated boolean.
Path Parameters
Crate’s internal artist ID.
true to enable new-release detection; false to disable it.POST /api/artists//queue
Queues allwanted tracks for this artist across every album. Only tracks with status wanted are enqueued — owned, downloading, and ignored tracks are skipped. Returns the count of newly enqueued entries.
Path Parameters
Crate’s internal artist ID.
DELETE /api/artists/
Removes an artist from the library entirely. The deletion cascades: all albums and tracks belonging to the artist are deleted. Downloaded files on disk are not removed — only the database records. Path ParametersCrate’s internal artist ID.
400 is returned if the id is not a valid integer; a 500 is returned if the deletion fails.
POST /api/relink/artist/
Reassigns an artist to a different provider ID without losing any library data. This is commonly used after importing a local library: thelocal artist is linked to a real provider match, triggering a background discography reconciliation that folds owned files into the provider’s album/track structure and marks the gaps as wanted.
Path Parameters
Crate’s internal artist ID.
The new provider-specific artist ID to link to. The provider is always the configured primary provider.
Always
"relinked" on success.true when Crate has started a background reconciliation (e.g., relinking from local to a real provider). The process runs asynchronously — poll the artist endpoint to track progress.When relinking a
local artist to a real provider, Crate fetches the full discography, matches albums by title and year and tracks by title, preserves all owned file paths, and marks any unmatched gaps as wanted. Unmatched items are flagged for manual review on the album page.