1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-21 23:32:27 +00:00
2 Images
TChilderhose edited this page 2019-06-09 11:06:43 -04:00

GET

Summary

You can get images from Lidarr using either API key authentication or the authentication method set in Settings: General (including None).

Parameters

id int - The artist ID the image belongs to

albumId int - The album ID the image belongs to

Images are available in a few different sizes (based on the height), as long as Lidarr was able to resize them, which may not be available on all systems. If A particular size is unavailable the original file will be returned.

Append /api/v1 to the URL to use API key authentication (after the URL Base) and add/adjust what type of id you are passing to the path after MediaCover.

  • Artist
    • /MediaCover/{id}/poster.jpg becomes /api/v1/MediaCover/Artist/{id}/poster.jpg
    • /lidarr/MediaCover/{id}/poster.jpg becomes /lidarr/api/v1/MediaCover/Artist/{id}/poster.jpg
  • Album (Note: Albums -> Album)
    • /MediaCover/Albums/{albumId}/cover.jpg becomes /api/v1/MediaCover/Album/{albumId}/cover.jpg
    • /lidarr/MediaCover/Albums/{albumId}/cover.jpg becomes /lidarr/api/v1/MediaCover/Album/{albumId}/cover.jpg

Replace the extension with -{size}.{extension}

  • /MediaCover/{id}/poster.jpg becomes /MediaCover/{id}/poster-250.jpg
Available Sizes

Posters:

  • 500px
  • 250px

Banners:

  • 70px
  • 35px

Fanart:

  • 360px
  • 180px

Cover:

  • 500px
  • 250px