We have created a simple API for developers to use Sixteen Colors data within their applications. The data provided by the API will expand as the data contained within the site expands. Currently there are four methods within the API:
-The starting point for Sixteen Colors data is a year. The data that is returned is a simple array of years.
-http://sixteencolors.net/api/pack-
{ - "years": [ - 2009, - 2008, - 2007, - 2006, - 2005, - 2004, - 2003, - 2002, - 2001, - 2000, - 1999, - 1998, - 1997, - 1996, - 1995, - 1994, - 1993 - ] -}-
http://sixteencolors.net/api/pack?year=[year]-
Each pack in the year will be returned. The data for each year is:
-{ - "packs": [ - { - "filename": "legion01.zip", - "month": null, - "name": "legion01", - "year": 1998 - }, - { - "filename": "legion02.zip", - "month": null, - "name": "legion02", - "year": 1998 - }, - { - "filename": "legion03.zip", - "month": null, - "name": "legion03", - "year": 1998 - }, - { - "filename": "legion04.zip", - "month": null, - "name": "legion04", - "year": 1998 - } - ] -}-
http://sixteencolors.net/api/pack/[canonical pack name]-
{ - "pack": { - "pack_file_location": "/static/packs/1998/legion01.zip", - "filename": "legion01.zip", - "files": [ - { - "fullsize": "/pack/legion01/AOH-JAAP.ANS/fullscale", - "thumbnail": "/pack/legion01/AOH-JAAP.ANS/preview", - "filename": "AOH-JAAP.ANS", - "pack": { - "filename": "legion01.zip", - "name": "legion01", - "uri": "/pack/legion01" - }, - "file_location": "/pack/legion01/AOH-JAAP.ANS/download", - "uri": "/pack/legion01/AOH-JAAP.ANS" - }, - { - "fullsize": "/pack/legion01/AOH-JEW.ANS/fullscale", - "thumbnail": "/pack/legion01/AOH-JEW.ANS/preview", - "filename": "AOH-JEW.ANS", - "pack": { - "filename": "legion01.zip", - "name": "legion01", - "uri": "/pack/legion01" - }, - "file_location": "/pack/legion01/AOH-JEW.ANS/download", - "uri": "/pack/legion01/AOH-JEW.ANS" - }, - { - "fullsize": "/pack/legion01/AOH-OOZE.ANS/fullscale", - "thumbnail": "/pack/legion01/AOH-OOZE.ANS/preview", - "filename": "AOH-OOZE.ANS", - "pack": { - "filename": "legion01.zip", - "name": "legion01", - "uri": "/pack/legion01" - }, - "file_location": "/pack/legion01/AOH-OOZE.ANS/download", - "uri": "/pack/legion01/AOH-OOZE.ANS" - }, - ], - "month": null, - "name": "legion01", - "uri": "/pack/legion01", - "year": 1998 - } -}+