I have created two functions, one that builds the endpoint, and another that sends the request. Much of the docs speak of the Census, but I am looking for a different type of data.
To begin with I am looking to find unemployment figures from different parts of the UK. With that data I would like to filter based on unemployment status, Jobseekers, ESA, Disability etc.
Before I can even look at how the data is received I need to know how to send the request. Here is the builder function:
function buildUrl(c, r, q) {
var api_domain ="http://data.ons.gov.uk/";
var api_contextRoot = c ? c : "ons/api/data/";
var api_resource = r ?r : "collections.json";
var api_Key = "?apikey=**0**0**&";
var api_query = q ? q :"context=Census";
return api_domain+api_contextRoot+api_resource+api_Key+api_query;
}
Perhaps I have not looked enough at the docs, but I cannot find a context that would match what I need?
Can anyone help ?
Thanks