BBC Audio & Music Interactive at Hackday

This is a temporary site for apps, data and feeds from BBC Audio & Music Interactive for the BBC/Yahoo Hackday. All apps, data and feeds are provided as is and with no support. But you can find us at Hackday if you need any help.

Update: I've just updated this page for Mashed 08 to remove any feeds that are no longer available. But we will have more feeds - check BBC Radio Labs for updates.

Our Things to make and do presentation is also available in PDF and HTML.

Our applications, feeds and APIs

Below you'll find some (hopefully) useful stuff for Hackday:

Tristan Ferne tristan.ferne@bbc.co.uk

Who are we?

We're the interactive team for BBC Audio & Music - that's the people who do BBC radio and music.

Top of the Pops (TOTP)

This is a comprehensive data set covering all appearances on and episodes of Top of the Tops until the year 2000. TOTP was a long-running chart countdown on BBC television. All tracks and artists featured are, where possible, linked to MusicBrainz.

This data is presented in a Rails application which is easily scrapeable. The application and the data are also available to download separately.

Code: Michael Smethurst
Thanks to: Rob Cooper and Kim Plowright
Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

John Peel

2274 artists, 30 festive 50s and 3976 sessions.

This is a comprehensive data set covering all the Peel Sessions and all the Festive 50s from arguably the greatest radio DJ of all time, John Peel [en.wikipedia.org/wiki/John_Peel].

This data is presented in a Ruby application which is easily scrapeable. The application and the data are also available to download separately.

Code: Michael Smethurst
Thanks to: The Peel family and Dan Heaf in Radio 1
Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Now playing

We are providing a number of alternative mechanisms for finding out what track is now playing on our radio networks (see Clickable Tracklistings).

RSS feeds

Last.fm feeds

Our now playing (and previously played) data is also on last.fm. Some of these feeds go back, intermittently, for 3 years.

Live site usage

We've got some live feeds of approximately how many users are currently on our sites. They're based on Flash widgets that are on some of our pages so obviously they aren't completely accurate. Each feed is a small XML file with a timestamp and the current number of users, they are updated every 5 minutes.

Thanks to: Monterosa

LiveText

LiveText is the live, updating, scrolling text featured on all our radio networks on DAB and digital TV. For Hackday we have created some JSON feeds for this data.

where NETWORK is "all", "dab", "rds", or a list of network numbers joined with "+", eg "101+201".

The DAB network numbers are:

And the RDS network numbers are:

The response will look like this:

([1181664133.3313041, [{'t': 'On air now: Scott Mills', 'n': 101}]])

or more generally:

([timestamp, [result, result, ...]])

Each "result" is a hash with two keys:

If you append ?last=timestamp (where timestamp comes from an earlier result) the HTTP GET will hang until there's a new result.

You can also add a "callback" query value, like

http://developer.yahoo.com/common/json.html#callbackparam

which will prefix the result with the given string, eg

http://bbc-hackday.dyndns.org:8000/text/101?callback=foo

would give you something like:

foo([1181664133.1, [{'t': 'On air now: Scott Mills', 'n': 101}]])