/dimension-search/datasets/{id}/editions/{edition}/versions/{version}/dimensions/{name}

GET

Perform a search on dimension options which are within a hierarchy of a published version of a dataset by the ONS.

Parameters

Name Type Description
id path Id that represents a dataset
edition path An edition of a dataset
version path A version of a dataset
name path A dimension from a dataset.
limit query The number of items requested, defaulted to 50 and limited to 1000.
offset query The first row of resources to retrieve, starting at 0. Use this parameter as a pagination mechanism along with the limit parameter.
q query The query text to search datasets with.

Responses

200: A json list containing search results of dimension options which are within a hierarchy of a published version of a dataset by the ONS.

Example value
{
  "count": 0,
  "items": [
    {
      "code": "string",
      "dimension_option_url": "string",
      "has_data": true,
      "label": "string",
      "matches": {
        "code": [
          {
            "end": 8,
            "start": 3
          }
        ],
        "label": [
          {
            "end": 8,
            "start": 3
          }
        ]
      },
      "number_of_children": 0
    }
  ],
  "limit": 0,
  "offset": 0
}

400: Failed to process the request due to invalid request.

404: Dimension or option not found.

500: Failed to process the request due to an internal error.