Skip to content

Internal API Specification

ericw edited this page Sep 13, 2010 · 7 revisions

Available internal API calls. Return format is JSON:
Return track for track id
api/tracks/{track_id}

Return all latest tracks
api/tracks
api/tracks/?genre=all

Return latest track from the genre
api/tracks/?genre={genre_name}

Return all tracks from the location (from the genre …)
api/tracks/?location={location_id}
api/tracks/?location={location_id}&genre={genre_name}

Return location for location id
api/locations/{location_id}

Return locations where recent tracks are (from the genre …) order by number of tracks per
api/locations
api/locations/?genre=house

Return maximal number of tracks in most-recent updated locations
api/locations/maxtracks
api/locations/maxtracks/?genre=house

Global parameters:
Have limited returning tracks or locations. Overrides default value from settings.py.
?limit={integer}
Use offset for pagination. Default is 0.
?offset={integer}

Clone this wiki locally