Codelist get
curl --request POST \
--url https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agency": "OECD",
"id": "CL_SECTOR"
}
'import requests
url = "https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get"
payload = {
"agency": "OECD",
"id": "CL_SECTOR"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({agency: 'OECD', id: 'CL_SECTOR'})
};
fetch('https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agency' => 'OECD',
'id' => 'CL_SECTOR'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get"
payload := strings.NewReader("{\n \"agency\": \"OECD\",\n \"id\": \"CL_SECTOR\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agency\": \"OECD\",\n \"id\": \"CL_SECTOR\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agency\": \"OECD\",\n \"id\": \"CL_SECTOR\"\n}"
response = http.request(request)
puts response.read_body{
"agency_id": "OECD",
"attribution": "Source: OECD Data Explorer, https://data-explorer.oecd.org/ (SDMX API https://sdmx.oecd.org/public/rest/). OECD terms: https://www.oecd.org/en/about/terms-conditions.html; cite the OECD and the dataflow; check the dataflow metadata for third-party owners.",
"codelist_ref": "OECD:CL_SECTOR(1.2)",
"codes": [
{
"code": "_Z",
"name": "Not applicable",
"parent": null
},
{
"code": "S1",
"name": "Total economy",
"parent": null
},
{
"code": "S11",
"name": "Non-financial corporations",
"parent": "S1"
},
{
"code": "S11A",
"name": "Post office giro",
"parent": "S11"
},
{
"code": "S11003",
"name": "Foreign controlled non-financial corporations",
"parent": "S11"
},
{
"code": "S1100P",
"name": "Private non-financial corporations",
"parent": "S11"
},
{
"code": "S11B",
"name": "Head offices of non-financial corporations",
"parent": "S11"
},
{
"code": "S11DO",
"name": "Domestically controlled non-financial corporations",
"parent": "S11"
},
{
"code": "S11001",
"name": "Public non-financial corporations",
"parent": "S11DO"
},
{
"code": "S110011",
"name": "Public non-financial corporations, which are part of domestic multinationals",
"parent": "S11001"
},
{
"code": "S11001C",
"name": "Public non-financial corporations controlled by central government",
"parent": "S11001"
},
{
"code": "S11002",
"name": "National private non-financial corporations",
"parent": "S11DO"
},
{
"code": "S110021",
"name": "National private non-financial corporations, which are part of domestic multinationals",
"parent": "S11002"
},
{
"code": "S12",
"name": "Financial corporations",
"parent": "S1"
},
{
"code": "S12003",
"name": "Foreign controlled financial corporations",
"parent": "S12"
},
{
"code": "S1200P",
"name": "Private financial corporations",
"parent": "S12"
},
{
"code": "S121",
"name": "Central bank",
"parent": "S12"
},
{
"code": "S122",
"name": "Deposit taking corporations, except the Central Bank",
"parent": "S12"
},
{
"code": "S122C",
"name": "Credit institutions",
"parent": "S122"
},
{
"code": "S12201",
"name": "Public deposit taking corporations, except the Central Bank",
"parent": "S122"
}
],
"count": 20,
"id": "CL_SECTOR",
"is_partial": false,
"name": "Codelist for institutional sectors",
"next_cursor": "20",
"observed_at_ms": 1792360050053,
"retrieved_at": "2026-10-18T21:47:30Z",
"source_url": "https://sdmx.oecd.org/public/rest/codelist/OECD/CL_SECTOR/1.2",
"total": 216,
"version": "1.2"
}OECD Data Explorer SDMX API
Codelist get
To label codes seen in records (SECTOR S1311 = Central government, STANDARD_REVENUE T_1100 = Taxes on income, profits and capital gains of individuals, …).
POST
https://api.aisa.one
/
apis
/
v1
/
sdmx-oecd-org
/
datasets
/
codelist-get
Codelist get
curl --request POST \
--url https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agency": "OECD",
"id": "CL_SECTOR"
}
'import requests
url = "https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get"
payload = {
"agency": "OECD",
"id": "CL_SECTOR"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({agency: 'OECD', id: 'CL_SECTOR'})
};
fetch('https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agency' => 'OECD',
'id' => 'CL_SECTOR'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get"
payload := strings.NewReader("{\n \"agency\": \"OECD\",\n \"id\": \"CL_SECTOR\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agency\": \"OECD\",\n \"id\": \"CL_SECTOR\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agency\": \"OECD\",\n \"id\": \"CL_SECTOR\"\n}"
response = http.request(request)
puts response.read_body{
"agency_id": "OECD",
"attribution": "Source: OECD Data Explorer, https://data-explorer.oecd.org/ (SDMX API https://sdmx.oecd.org/public/rest/). OECD terms: https://www.oecd.org/en/about/terms-conditions.html; cite the OECD and the dataflow; check the dataflow metadata for third-party owners.",
"codelist_ref": "OECD:CL_SECTOR(1.2)",
"codes": [
{
"code": "_Z",
"name": "Not applicable",
"parent": null
},
{
"code": "S1",
"name": "Total economy",
"parent": null
},
{
"code": "S11",
"name": "Non-financial corporations",
"parent": "S1"
},
{
"code": "S11A",
"name": "Post office giro",
"parent": "S11"
},
{
"code": "S11003",
"name": "Foreign controlled non-financial corporations",
"parent": "S11"
},
{
"code": "S1100P",
"name": "Private non-financial corporations",
"parent": "S11"
},
{
"code": "S11B",
"name": "Head offices of non-financial corporations",
"parent": "S11"
},
{
"code": "S11DO",
"name": "Domestically controlled non-financial corporations",
"parent": "S11"
},
{
"code": "S11001",
"name": "Public non-financial corporations",
"parent": "S11DO"
},
{
"code": "S110011",
"name": "Public non-financial corporations, which are part of domestic multinationals",
"parent": "S11001"
},
{
"code": "S11001C",
"name": "Public non-financial corporations controlled by central government",
"parent": "S11001"
},
{
"code": "S11002",
"name": "National private non-financial corporations",
"parent": "S11DO"
},
{
"code": "S110021",
"name": "National private non-financial corporations, which are part of domestic multinationals",
"parent": "S11002"
},
{
"code": "S12",
"name": "Financial corporations",
"parent": "S1"
},
{
"code": "S12003",
"name": "Foreign controlled financial corporations",
"parent": "S12"
},
{
"code": "S1200P",
"name": "Private financial corporations",
"parent": "S12"
},
{
"code": "S121",
"name": "Central bank",
"parent": "S12"
},
{
"code": "S122",
"name": "Deposit taking corporations, except the Central Bank",
"parent": "S12"
},
{
"code": "S122C",
"name": "Credit institutions",
"parent": "S122"
},
{
"code": "S12201",
"name": "Public deposit taking corporations, except the Central Bank",
"parent": "S122"
}
],
"count": 20,
"id": "CL_SECTOR",
"is_partial": false,
"name": "Codelist for institutional sectors",
"next_cursor": "20",
"observed_at_ms": 1792360050053,
"retrieved_at": "2026-10-18T21:47:30Z",
"source_url": "https://sdmx.oecd.org/public/rest/codelist/OECD/CL_SECTOR/1.2",
"total": 216,
"version": "1.2"
}Request contract
- Method and path: POST /apis/v1/sdmx-oecd-org/datasets/codelist-get
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get
{
"operationId": "sdmx-oecd-org.datasets.codelist-get",
"method": "POST",
"path": "/apis/v1/sdmx-oecd-org/datasets/codelist-get",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"agency": "OECD",
"id": "CL_SECTOR",
"page_size": 20,
"version": "1.2"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"agency": {
"description": "Codelist agency, e.g. OECD, OECD.CTP.TPS, SDMX. Pattern: ^[A-Za-z0-9_.]{1,64}$.",
"type": "string"
},
"cursor": {
"description": "cursor",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"id": {
"description": "Codelist id, e.g. CL_SECTOR, CL_STANDARD_REVENUE, CL_AREA. Pattern: ^[A-Za-z0-9_@-]{1,120}$.",
"type": "string"
},
"page_size": {
"default": 500,
"description": "page_size\n\nProvider reference: minimum 1; maximum 1000; default 500.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 1000,
"min": 1
}
},
"version": {
"default": "latest",
"description": "Pattern: ^(latest|[0-9]+(\\.[0-9]+){0,2})$.\n\nProvider reference: default \"latest\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"required": [
"agency",
"id"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Response
Codes and labels of one SDMX codelist from GET codelist/{agency}/{id}/{version}: code, English name and parent code. Codelist references come from structure_get (dimensions[].codelist, attributes[].codelist). Paginated client-side.
The response contains the tool result directly.
The provider identifies codes as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
code | string | |
name | string | |
parent | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.