simple api for getting results, form, goals for or against etc from thechels.co.uk (version 2.0.1)

you'll need to get a api key (try 1905 for testing purposes) from @chelseastats Get your key here:

api.thechels.co.uk?user=[apikey]

you can then access the api and choose how many results you want (date descending i.e. most recent first, default is 6):

api.thechels.co.uk?user=[apikey]&num=6

then you can choose a Competition:

api.thechels.co.uk?user=[apikey]&num=6&comp=PREM

and a team (all spaces in names need to include underscores, full names are required so QPR, for example, won't work!

A list of teams are available:

api.thechels.co.uk?user=[apikey]&num=6&comp=PREM&team=ARSENAL

Why not try various combinations, number + team without a competition for example or number and competition without a team...

Example

If you can can write code, you could do something in PHP with the JSON to produce a nice little thing...

Try this:

$json='http://api.thechels.co.uk?user=1905&num=6&comp=PREM&team=ARSENAL'; $ch = curl_init(); $timeout = 5; // set to zero for no timeout curl_setopt($ch, CURLOPT_URL, $json); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); ob_start(); curl_exec($ch); $json=ob_get_contents(); ob_end_clean(); $json = json_decode($json,true); print_r($json); curl_close($ch);