# describeInseeDataset

**Identifier:** `insee_describeInseeDataset`

**Provider:** [INSEE Statistics](https://kirha.com/providers/insee.md)

List the dimensions of an INSEE dataset and their codes, to build the filters of getInseeData.

## Run it with the CLI

```bash
kirha tools run insee_describeInseeDataset \
  --input '{
    "datasetId": "DS_TOUR_FREQ"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "insee_describeInseeDataset",
  "input": {
    "datasetId": "DS_TOUR_FREQ"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "datasetId": {
      "description": "e.g., DS_TOUR_FREQ",
      "minLength": 3,
      "type": "string"
    }
  },
  "required": [
    "datasetId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "datasetId": {
      "type": "string"
    },
    "dimensions": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "values": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "code",
          "label",
          "values"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "datasetId",
    "dimensions"
  ],
  "type": "object"
}
```

## Related tools

Other INSEE Statistics tools that this tool refers to, or that refer to it.

- [`searchInseeDatasets`](https://kirha.com/providers/insee/searchInseeDatasets.md)
- [`getInseeData`](https://kirha.com/providers/insee/getInseeData.md)

-----

[All INSEE Statistics tools](https://kirha.com/providers/insee.md) · [< Back to tools list](https://kirha.com/tools.md)