---
title: "Export data structure JSON"
method: GET
path: "/data_structures/export/{segment}"
tags: ["Data Structures"]
---

# Export data structure JSON

`GET /data_structures/export/{segment}`

Returns import-ready interchange JSON per `data-structure-schema.json`: `data_structure` includes nested `components[]`; dimension/geography components embed inline `codelist` objects with `items` (not `codelist_reference` only). Suitable for `POST .../import_json` on this editor or NADA without a separate codelist export step.

## Path parameters

- `segment` string, required

## Query parameters

- `download` boolean

## Response `200`

Export payload or file download

## Other responses

- `400` — Bad request

---

[API](https://skmtc.net/worldbank/apis/metadata-editor-api.md) · [All operations](https://skmtc.net/worldbank/apis/metadata-editor-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/worldbank/metadata-editor-api/versions/f4c8258bab5a/schema)
