As we expand the scope of Rhapsody Web Services, we've come to realize that the single numeric space that we've been using to identify content isn't broad enough for all the kinds of data that we use. And it's been confusing to boot. For example, artists, albums and tracks have all shared one numeric space, but genres have had their own space. We've got an answer that will let us grow far into the future, but unfortunately it might require a few code changes for existing applications.
RCID values take the following format: an alphanumeric string moniker followed by a period and then an identifier which is unique within the namespace defined by that moniker. How about a few examples?
- g.5 is Rock/Pop
- g.299 is Jazz
- g.407 is Country
The "g." identifies it as a genre and the numeric portion identifies which genre. How about artists? They start with "art."
- art.153 is U2
- art.299 is Redman
- art.44068 is Neil Young
Note that 299 can be either the rapper Redman or the genre Jazz depending on the moniker. For example:
http://www.rhapsody.com/artist?artistId=art.299 redirects to http://www.rhapsody.com/redman
and
http://www.rhapsody.com/genre?genreId=g.299 redirects to http://www.rhapsody.com/jazz
As I've said, albums, artists and tracks share a namespace and won't collide, but with the new system you really won't notice. For completeness, here's a list of monikers you'll be seeing:
- alb. refers to an album
- art. refers to an artist
- g. refers to a genre
- tra. refers to a track
You'll be seeing more of these as we expand the scope of the API. But for now that's all we need. These new RCID types are now live across the site. Enjoy!
-LPD
Recent Comments