The WhoSampled Partnership

The Echo Nest has partnered with WhoSampled to provide easy access to information on related samples, covers and remixes for over 207,000 tracks and 74,000 artists. With this integration, developers can obtain WhoSampled artist and track IDs, deeplinking to any artist page on the WhoSampled website or iPhone app.

Available Assets

WhoSampled has related sample, cover and remix data for:

  • Over 207K tracks
  • 74K artists

Getting Started

You can retrieve the WhoSampled artist IDs by using the id:whosampled bucket when making calls that return artist info. For example you can get the WhoSampled ID for Radiohead with a call:

The response includes a foreign_ids block that includes the WhoSampled ID for Radiohead so:

            {
                "catalog": "whosampled",
                "foreign_id": "whosampled:artist:3309"
            }
        

Note that the foreign_id is of the form catalog:entity:id; in this case, 'whosampled' is the catalog; 'artist' is the entity, and '3309' is the artist ID in the WhoSampled catalog.

Using this ID you can generate a URL to the WhoSampled page for Radiohead like so:

Similarly, you can retrieve the WhoSampled songs IDs by using the id:whosampled bucket when making calls that return song info. For example you can get the WhoSampled ID for Karma Police with a call:

The response includes a foreign_ids block in the tracks list that includes the WhoSampled ID for the song:

                {
                    "catalog": "whosampled",
                    "foreign_id": "whosampled:track:8482",
                    "id": "TRNBVAJ13B438E8E0E"
                }
        

Note that the foreign_id is of the form catalog:entity:id; in this case, 'whosampled' is the catalog; 'track' is the entity, and '8482' is the track ID in the WhoSampled catalog.

You can use the track ID to retrieve WhoSampled track page:

 http://www.whosampled.com/track/view/TRACK_ID/ 
For example: You can use the track ID to retrieve track pages for the WhoSampled iPhone app. The URL to use for that is:
 whosampled://track/TRACK_ID 
Similarly, you can use artist IDs to link to their iPhone app pages using:
 whosampled://artist/ARTIST_ID 

You can use a WhoSampled ID in any call that accepts an artist or song ID. As an example, Radiohead has an WhoSampled ID of 3309. To find biographies for Radiohead using our API and the WhoSampled ID, you would issue a query like this: