List Dataset

List all available dataset for a metric

Endpoint: /api/metrics/modelModeDataset

Request

Parameter Type Position Required Sample
Content-Type string Header Yes application/json
Accept string Header Yes application/json
Authorization string Header Yes Bearer eyJ0eXAiOiJKV1QiLCJhbGci...
query json Body Yes JSON.stringify('[{ "metric": "air_quality", "year": "2019" }]')

Success Response

{
    "data": {
        "name": "Air Quality",
        "dataset": [
            "Air Quality",
            "Estimated Life Days Lost or Gained",
            "Harmonised Score"
        ],
        "dataset_descriptor": {
            "Harmonised Score": {
                "title": "This is a relative score out of 100 which ordinally scales a neighbourhood's air quality. A score of one indicates the poorest air quality available in London whilst a score of 100 indicates the best.",
                "chart_type": "line_chart"
            },
            "Air Quality": {
                "title": "This shows you the postcode's level of PM2.5 particulates per cubic metre on average",
                "chart_type": "line_chart"
            },
            "Estimated Life Days Lost or Gained": {
                "title": "This value shows you an estimate of the number of days the average London resident's life will be extended or shortened by, because of the air quality of their neighbourhood",
                "chart_type": "line_chart"
            }
            ...
        }
    }
}