20140425 - image endpoint

5 views
Skip to first unread message

Dan Gravell

unread,
Apr 25, 2014, 7:50:14 AM4/25/14
to onemusicapi-...@googlegroups.com
This release of OneMusicAPI adds a new image endpoint. This means OMA can be used to proxy images from the various databases it aggregates.

Currently, Discogs and MusicBrainz are supported. Requests take the form of:

http://onemusicapi-beta.elasticbeanstalk.com/20140425/image/[source]/[source release id]/[image num]

Where all items in square brackets are required and:
source: "musicbrainz" or "discogs"
source release id: the release ID on the source, e.g. a MBID or a Discogs release ID
image num: the 1-based integer index of the image. If in doubt, use "1".

Examples:


(Note currently the image URLs hardcode api.onemusicapi.com - that's fine for release but when working with the beta you'll have to change those to onemusicapi-beta.elasticbeanstalk.com)

Results from metadata queries to /release/ and /disc/ for the 20140425 version will also begin to return these URLs where appropriate. This means all Discogs images will be returned with OMA image URLs, and some MusicBrainz URLs (see below). When used against a released version of OMA, the client's user_key will need to be specified to fetch the image. For versions earlier than 20140425 the original source URL will continue to be returned.

The MusicBrainz images that will be proxied by OMA are all those provided by Amazon. This version also re-introduces Amazon cover art support for the first time in two years... a change that should see a 10% improvement (roughly) in cover art coverage. Cover Art Archive URLs will continue to be returned as-is.

Dan
Reply all
Reply to author
Forward
0 new messages