Deep Roots Remix Event

Sample Pool API 2.0 [BETA]

The Sample Pool API allows two media hosting servers to keep track of when one uses samples from another. It is a RESTful API meaning URL goes in and XML comes out. The returning XML is in the form of a feed (RSS or Atom) with enclosures for downloading media.

Passive Sample Pools

To be a 'passive' sample pool means that you make sources available for sampling, but you don't care to keep track of how those samples are being used. In that case you only need to implement two URLs:

ccHost installations (like will keep a detailed sample history of your material with links back to your site (Example.)

URLQuery stringReturns
/info The general info for a pool. Just return a channel info without any items. (Example:
/search query search terms RSS or Atom feed of matching results. The 'guid' (or 'id') element in these are used for further inquiries like '/file' and '/ubeensampled'. Default type of search is 'any' if none is specified. (Example:
type One of:
anyMatch any terms
allMatch all terms
phraseMatch exact phrase
limit* Limits the number of items returned (e.g. limit=20)
offset* Return items starting at a given zero-based offset (e.g. offset=40)
format* One of:
rssReturn a RSS 2.0 feed (default)
atomReturn an ATOM 1.0 feed
countReturn a count of times
*Proposed for version 2.0

Tracking Sample Pools

If you do want to keep track of who is remixing material on your site, then you need to implement two more:

URLQuery stringReturns
/file guid file_guid An RSS feed with a single item in it as identified by 'guid' (Example:
/ubeensampled guid source_guid Returns nothing (or an 'OK' xml status if you like) -- This is strictly a notification to let you know that something on your site has been remixed. The ccHost implementation will call back to the pool site to get information about the remix so it can display this information in the 'Sampled from this have been used in' user interface.
  • 'guid' refers to an upload on your server
  • 'remixguid' refers to the remote remix
  • 'poolsite' base API URL of the remote pool.
Use the form poolsite/file?guid=remixguid to find out more about the remix.
remixguid remix_guid
poolsite url to calling pool


Assume that has source media for an artist called 'Brad Sucks' that a user at has downloaded, remixed and wants to upload to Assume that base API url for both is at /api/pool. calls to to query for the exact information: responds with an RSS feed with all sources matching the phrase 'brad sucks'.

The user at selects the matching source and extracts the guid for that source, combines it with the new guid for the user's upload and notifies of that the remix has occured (URL has been broken across lines for readability): ?guid= &remixid= &pootsite=

The actual guids are extracted from the RSS feed results from '/search' so it does not matter what format they are. In this case both servers use URLs but that is totally up to each implementation.

Sample Feed

When exchanging media information a standard, validing RSS or ATOM is expected (the same thing you're already putting out for podcasts in the case of music sites). Creative Commons license information should be included:

<?xml version="1.0" encoding="utf-8" ?> <rss version="2.0" xmlns:content="" xmlns:cc="" xmlns:dc="" xmlns:itunes=""> <channel> <title>ccMixter (spoken_word)</title> <link></link> <description>Download, Sample, Cut-up, Share.</description> <language>en-us</language> <pubDate>Mon, 06 Feb 2006 19:34:55 PST</pubDate> <lastBuildDate>Mon, 06 Feb 2006 19:34:55 PST</lastBuildDate> <item> <title>Generation Defects</title> <link></link> <pubDate>Tue, 20 Dec 2005 21:32:04 PST</pubDate> <dc:creator>aerosolspray</dc:creator> <description> A piece of music by me.</description> <content:encoded><![CDATA[A piece of music by me.]]></content:encoded> <enclosure url="" length="952466" type="audio/x-ms-wma"></enclosure> <category>media</category> <category>remix</category> <category>non_commercial</category> <category>audio</category> <category>wma</category> <category>44k</category> <category>stereo</category> <category>CBR</category> <category>chill</category> <category>drums</category> <category>electronic</category> <category>spoken_word</category> <category>synth</category> <guid></guid> <cc:license></cc:license> </item> </channel> </rss>

The ATOM version is still being tested but this is the current format that should work:

<?xml version="1.0" encoding="utf-8"?> <feed xmlns=""> <title>ccMixter (spoken_word) [BETA]</title> <link rel="self" href=""></link> <link rel="alternate" href=""></link> <updated>2006-02-06T19:34:55-08:00</updated> <id></id> <entry> <id></id> <title>Generation Defects</title> <author> <name>aerosolspray</name> </author> <link rel="alternate" href="" type="text/html"> </link> <link rel="enclosure" href="" length="952466" type="audio/x-ms-wma"> </link> <category term="media"></category> <category term="remix"></category> <category term="non_commercial"></category> <category term="audio"></category> <category term="wma"></category> <category term="44k"></category> <category term="stereo"></category> <category term="CBR"></category> <category term="chill"></category> <category term="drums"></category> <category term="electronic"></category> <category term="spoken_word"></category> <category term="synth"></category> <updated>2005-12-20T21:32:04-08:00</updated> <content type="text/plain"> A piece of music by me.</content> <link rel="license" href="" type="text/html"> </link> </entry> </feed>