---
title: "Get XML schemas"
method: GET
path: "/schema/{context}/{agencyID}/{resourceID}/{version}"
tags: ["Schema queries"]
---

# Get XML schemas

`GET /schema/{context}/{agencyID}/{resourceID}/{version}`

## Request

- Base URL: `https://sdw-wsrest.ecb.europa.eu/service`
- URL: `https://sdw-wsrest.ecb.europa.eu/service/schema/{context}/{agencyID}/{resourceID}/{version}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/oecd/apis/sdmx-restful-api-v1-5-0/docs/schema/:context/:agencyID/:resourceID/:version/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `context` 'datastructure' | 'metadatastructure' | 'dataflow' | 'metadataflow' | 'provisionagreement', required
- `agencyID` string, required
- `resourceID` string, required
- `version` string, required

## Query parameters

- `dimensionAtObservation` string
- `explicitMeasure` boolean

## Headers

- `Accept-Encoding` 'br' | 'compress' | 'deflate' | 'exi' | 'gzip' | 'identity' | 'pack200-gzip' | 'zstd'
- `If-Modified-Since` string, date-time

## Response `200`

OK

- string

## Other responses

- `304`: No changes
- `400`: Bad syntax
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `406`: Not acceptable
- `414`: URI too long
- `500`: Internal server error
- `501`: Not implemented
- `503`: Service unavailable

---

[API](https://skmtc.dev/oecd/apis/sdmx-restful-api-v1-5-0.md) - [All operations](https://skmtc.dev/oecd/apis/sdmx-restful-api-v1-5-0/llms.txt) - [OpenAPI document](https://skmtc.dev/oecd/apis/sdmx-restful-api-v1-5-0/revisions/328bd4a98bba?raw)
