A.P.I.

 
 

The URL of the REST interface is:

http://commoneras.ecs.soton.ac.uk/eras.format?parameters

Where format is one of .xml .json .html or .csv and parameters are a & separated list of some of the following.

from (ISO format) start of date range of interest.
to (ISO format) end of date range of interest. If not specified then defaults to the same as "from".
tag tag or comma-separated tags to limit by
category category or comma-separated categories to limit by
name era name contains the given string
limit maximum number of results to return
callback .json format only. This turns the json into a function call on the named function.

Examples

Presidents of the nineteenth century (in HTML):
http://commoneras.ecs.soton.ac.uk/eras.html?from=1800&to=1900&category=USA+Administration

Who was Dr Who on Christmas Day, 1974? (in XML):
http://commoneras.ecs.soton.ac.uk/eras.xml?category=Doctor+Who&from=1974-12-25

All Eras intersecting with 2004-2008, as a javascript function call to function show_eras:
http://commoneras.ecs.soton.ac.uk/eras.json?from=2005&to+2008&callback=show_eras

http://commoneras.ecs.soton.ac.uk/api.html
Edit | View as HTML