# API response lacks unit attribute for series

**URL:** <https://dbnomics.discourse.group/t/api-response-lacks-unit-attribute-for-series/758>\
**Category:** Data Issues\
**Created:** [March 7, 2024, 7:47pm UTC](https://dbnomics.discourse.group/t/api-response-lacks-unit-attribute-for-series/758 "2024-03-07T19:47:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonke](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sonke](https://dbnomics.discourse.group/u/sonke)\
**Post date:** [March 7, 2024, 7:47pm UTC](https://dbnomics.discourse.group/t/api-response-lacks-unit-attribute-for-series/758/1 "2024-03-07T19:47:15Z")

</div>

Hi,

Take [https://api.db.nomics.world/v22/series/DESTATIS/42121BM001/DG.GP19-A1004.PRO006?observations=1](https://api.db.nomics.world/v22/series/DESTATIS/42121BM001/DG.GP19-A1004.PRO006?observations=1) as an example. This is currently the second line in `destatis-json-data-master/42121BM001/series.jsonl` which starts with

```json
  "attributes": {
    "unit": "t"
  },

```

The API response however does not include the information that this particular series has the unit “t/Tonnes”. The API response only includes the information from the `dataset.json` file, but since there are multiple different units used in this dataset,

```json
    "attributes_values_labels": {
      "unit": {
        "eur-1000": "Thousands of euros",
        "kg": "Kilograms",
        "number": "Number",
        "pc": "Pieces",
        "t": "Tonnes",
        "unit-app": "Unit as applicable"
      }
    },

```

that alone is not enough to link the series’ values back to the attribute.
