curl --request POST \
--url https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/structure-get \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dataflow": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)"
}
'import requests
url = "https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/structure-get"
payload = { "dataflow": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)" }
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({dataflow: 'OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)'})
};
fetch('https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/structure-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/structure-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([
'dataflow' => 'OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)'
]),
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/structure-get"
payload := strings.NewReader("{\n \"dataflow\": \"OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)\"\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/structure-get")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"dataflow\": \"OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/structure-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 \"dataflow\": \"OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)\"\n}"
response = http.request(request)
puts response.read_body{
"agency_id": "OECD.CTP.TPS",
"attributes": [
{
"assignment_status": "Mandatory",
"attached_to": [
"OBS_VALUE"
],
"codelist": {
"agency_id": "SDMX",
"id": "CL_OBS_STATUS",
"url": "https://sdmx.oecd.org/public/rest/codelist/SDMX/CL_OBS_STATUS/2.2",
"version": "2.2"
},
"id": "OBS_STATUS"
},
{
"assignment_status": "Mandatory",
"attached_to": [
"REF_AREA",
"UNIT_MEASURE"
],
"codelist": {
"agency_id": "SDMX",
"id": "CL_UNIT_MULT",
"url": "https://sdmx.oecd.org/public/rest/codelist/SDMX/CL_UNIT_MULT/1.1",
"version": "1.1"
},
"id": "UNIT_MULT"
},
{
"assignment_status": "Mandatory",
"attached_to": [
"STANDARD_REVENUE",
"CTRY_SPECIFIC_REVENUE",
"REF_AREA"
],
"codelist": null,
"id": "REVENUE_CODE"
},
{
"assignment_status": "Mandatory",
"attached_to": [
"REF_AREA",
"UNIT_MEASURE"
],
"codelist": {
"agency_id": "SDMX",
"id": "CL_DECIMALS",
"url": "https://sdmx.oecd.org/public/rest/codelist/SDMX/CL_DECIMALS/1.0",
"version": "1.0"
},
"id": "DECIMALS"
},
{
"assignment_status": "Conditional",
"attached_to": [
"UNIT_MEASURE",
"REF_AREA"
],
"codelist": {
"agency_id": "OECD",
"id": "CL_CURRENCY",
"url": "https://sdmx.oecd.org/public/rest/codelist/OECD/CL_CURRENCY/1.2",
"version": "1.2"
},
"id": "CURRENCY"
}
],
"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.",
"availability_url": "https://sdmx.oecd.org/public/rest/availableconstraint/OECD.CTP.TPS,DSD_REV_COMP_OECD@DF_RSOECD,2.0/all?mode=available&references=none",
"data_structure": {
"agency_id": "OECD.CTP.TPS",
"id": "DSD_REV_COMP_OECD",
"name": "DSD comparative series of OECD member countries",
"version": "2.0"
},
"dataflow_ref": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"description": "<p>Internationally comparable tax revenue data for OECD countries presented as a percentage of GDP and as a share of total tax or non-tax revenues as well as in national currency and US dollars. Tax revenues are harmonised according to the OECD classification of taxes.</p><p>Related topics: Tax-to-GDP, Taxation, Tax structure, Tax mix, Regional average – change for each region, Domestic resource mobilisation, Public finance, Income tax, Social security contributions, Goods and services, Value added tax, VAT, Excise, Customs, Property tax.</p>",
"dimensions": [
{
"available_codes": [
"AUS",
"AUT",
"BEL",
"CAN",
"CHE",
"CHL",
"COL",
"CRI",
"CZE",
"DEU",
"DNK",
"ESP",
"EST",
"FEDOECD",
"FIN",
"FRA",
"GBR",
"GRC",
"HUN",
"IRL",
"ISL",
"ISR",
"ITA",
"JPN",
"KOR",
"LTU",
"LUX",
"LVA",
"MEX",
"NLD",
"NOR",
"NZL",
"OECD_REP",
"POL",
"PRT",
"SVK",
"SVN",
"SWE",
"TUR",
"UNIOECD",
"USA"
],
"codelist": {
"agency_id": "OECD",
"id": "CL_AREA",
"url": "https://sdmx.oecd.org/public/rest/codelist/OECD/CL_AREA/1.7",
"version": "1.7"
},
"id": "REF_AREA",
"position": 0
},
{
"available_codes": [
"TAX_REV"
],
"codelist": {
"agency_id": "OECD.CTP.TPS",
"id": "CL_MEASURE_REV",
"url": "https://sdmx.oecd.org/public/rest/codelist/OECD.CTP.TPS/CL_MEASURE_REV/1.0",
"version": "1.0"
},
"id": "MEASURE",
"position": 1
},
{
"available_codes": [
"S13",
"S1311",
"S1312",
"S1313",
"S1314",
"S1315"
],
"codelist": {
"agency_id": "OECD",
"id": "CL_SECTOR",
"url": "https://sdmx.oecd.org/public/rest/codelist/OECD/CL_SECTOR/1.2",
"version": "1.2"
},
"id": "SECTOR",
"position": 2
},
{
"available_codes": [
"_O",
"_T",
"T_1000",
"T_1100",
"T_1110",
"T_1120",
"T_1200",
"T_1210",
"T_1220",
"T_1300",
"T_2000",
"T_2100",
"T_2110",
"T_2120",
"T_2200",
"T_2210",
"T_2220",
"T_2300",
"T_2310",
"T_2320",
"T_2400",
"T_2410",
"T_2420",
"T_3000",
"T_4000",
"T_4100",
"T_4110",
"T_4120",
"T_4200",
"T_4210",
"T_4220",
"T_4300",
"T_4310",
"T_4320",
"T_4400",
"T_4500",
"T_4510",
"T_4520",
"T_4600",
"T_5000",
"T_5100",
"T_5110",
"T_5111",
"T_5112",
"T_5113",
"T_5120",
"T_5121",
"T_5122",
"T_5123",
"T_5124",
"T_5125",
"T_5126",
"T_5127",
"T_5128",
"T_5130",
"T_5200",
"T_5210",
"T_5211",
"T_5212",
"T_5213",
"T_5220",
"T_5300",
"T_6000",
"T_6100",
"T_6200",
"T_AA",
"T_AB",
"T_AC",
"T_AD",
"T_AE",
"T_AF",
"T_AG",
"T_AH",
"T_AI",
"T_AJ",
"T_AK",
"T_CUS",
"T_EUC",
"T_GROSS",
"T_NES_SUPRA",
"T_NET",
"T_NW1",
"T_NW1EXP",
"T_NW1TRAN",
"T_NW2",
"T_NW2EXP",
"T_NW2TRAN",
"T_NW3",
"T_NW3EXP",
"T_NW3TRAN",
"T_NWEXP",
"T_NWTOT",
"T_NWTRAN",
"T_SPLIT",
"T_SRF"
],
"codelist": {
"agency_id": "OECD.CTP.TPS",
"id": "CL_STANDARD_REVENUE",
"url": "https://sdmx.oecd.org/public/rest/codelist/OECD.CTP.TPS/CL_STANDARD_REVENUE/1.2",
"version": "1.2"
},
"id": "STANDARD_REVENUE",
"position": 3
},
{
"available_codes": [
"_T"
],
"codelist": {
"agency_id": "OECD.CTP.TPS",
"id": "CL_CTRY_SPECIFIC_REVENUE",
"url": "https://sdmx.oecd.org/public/rest/codelist/OECD.CTP.TPS/CL_CTRY_SPECIFIC_REVENUE/2.6",
"version": "2.6"
},
"id": "CTRY_SPECIFIC_REVENUE",
"position": 4
},
{
"available_codes": [
"PT_B1GQ",
"PT_OTR_REV_CAT",
"PT_OTR_SECTOR",
"USD",
"XDC"
],
"codelist": {
"agency_id": "OECD",
"id": "CL_UNIT_MEASURE",
"url": "https://sdmx.oecd.org/public/rest/codelist/OECD/CL_UNIT_MEASURE/1.20",
"version": "1.20"
},
"id": "UNIT_MEASURE",
"position": 5
},
{
"available_codes": [
"A"
],
"codelist": {
"agency_id": "SDMX",
"id": "CL_FREQ",
"url": "https://sdmx.oecd.org/public/rest/codelist/SDMX/CL_FREQ/2.1",
"version": "2.1"
},
"id": "FREQ",
"position": 6
}
],
"id": "DSD_REV_COMP_OECD@DF_RSOECD",
"is_final": true,
"name": "Revenue Statistics in OECD member countries - Comparative tax revenues",
"obs_count": 2940766,
"observed_at_ms": 1792360043908,
"primary_measure": "OBS_VALUE",
"publication_id": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"retrieved_at": "2026-10-18T21:47:23Z",
"source_url": "https://sdmx.oecd.org/public/rest/dataflow/OECD.CTP.TPS/DSD_REV_COMP_OECD@DF_RSOECD/2.0?references=none",
"structure_url": "https://sdmx.oecd.org/public/rest/datastructure/OECD.CTP.TPS/DSD_REV_COMP_OECD/2.0?references=none",
"time_dimension": "TIME_PERIOD",
"time_range": {
"end": "2024-12-31",
"start": "1965-01-01"
},
"version": "2.0"
}Structure get
Before building a key for source_status, records_list or records_get: positions follow dimensions order; available_codes are the values that return data.
curl --request POST \
--url https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/structure-get \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dataflow": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)"
}
'import requests
url = "https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/structure-get"
payload = { "dataflow": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)" }
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({dataflow: 'OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)'})
};
fetch('https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/structure-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/structure-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([
'dataflow' => 'OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)'
]),
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/structure-get"
payload := strings.NewReader("{\n \"dataflow\": \"OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)\"\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/structure-get")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"dataflow\": \"OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/structure-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 \"dataflow\": \"OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)\"\n}"
response = http.request(request)
puts response.read_body{
"agency_id": "OECD.CTP.TPS",
"attributes": [
{
"assignment_status": "Mandatory",
"attached_to": [
"OBS_VALUE"
],
"codelist": {
"agency_id": "SDMX",
"id": "CL_OBS_STATUS",
"url": "https://sdmx.oecd.org/public/rest/codelist/SDMX/CL_OBS_STATUS/2.2",
"version": "2.2"
},
"id": "OBS_STATUS"
},
{
"assignment_status": "Mandatory",
"attached_to": [
"REF_AREA",
"UNIT_MEASURE"
],
"codelist": {
"agency_id": "SDMX",
"id": "CL_UNIT_MULT",
"url": "https://sdmx.oecd.org/public/rest/codelist/SDMX/CL_UNIT_MULT/1.1",
"version": "1.1"
},
"id": "UNIT_MULT"
},
{
"assignment_status": "Mandatory",
"attached_to": [
"STANDARD_REVENUE",
"CTRY_SPECIFIC_REVENUE",
"REF_AREA"
],
"codelist": null,
"id": "REVENUE_CODE"
},
{
"assignment_status": "Mandatory",
"attached_to": [
"REF_AREA",
"UNIT_MEASURE"
],
"codelist": {
"agency_id": "SDMX",
"id": "CL_DECIMALS",
"url": "https://sdmx.oecd.org/public/rest/codelist/SDMX/CL_DECIMALS/1.0",
"version": "1.0"
},
"id": "DECIMALS"
},
{
"assignment_status": "Conditional",
"attached_to": [
"UNIT_MEASURE",
"REF_AREA"
],
"codelist": {
"agency_id": "OECD",
"id": "CL_CURRENCY",
"url": "https://sdmx.oecd.org/public/rest/codelist/OECD/CL_CURRENCY/1.2",
"version": "1.2"
},
"id": "CURRENCY"
}
],
"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.",
"availability_url": "https://sdmx.oecd.org/public/rest/availableconstraint/OECD.CTP.TPS,DSD_REV_COMP_OECD@DF_RSOECD,2.0/all?mode=available&references=none",
"data_structure": {
"agency_id": "OECD.CTP.TPS",
"id": "DSD_REV_COMP_OECD",
"name": "DSD comparative series of OECD member countries",
"version": "2.0"
},
"dataflow_ref": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"description": "<p>Internationally comparable tax revenue data for OECD countries presented as a percentage of GDP and as a share of total tax or non-tax revenues as well as in national currency and US dollars. Tax revenues are harmonised according to the OECD classification of taxes.</p><p>Related topics: Tax-to-GDP, Taxation, Tax structure, Tax mix, Regional average – change for each region, Domestic resource mobilisation, Public finance, Income tax, Social security contributions, Goods and services, Value added tax, VAT, Excise, Customs, Property tax.</p>",
"dimensions": [
{
"available_codes": [
"AUS",
"AUT",
"BEL",
"CAN",
"CHE",
"CHL",
"COL",
"CRI",
"CZE",
"DEU",
"DNK",
"ESP",
"EST",
"FEDOECD",
"FIN",
"FRA",
"GBR",
"GRC",
"HUN",
"IRL",
"ISL",
"ISR",
"ITA",
"JPN",
"KOR",
"LTU",
"LUX",
"LVA",
"MEX",
"NLD",
"NOR",
"NZL",
"OECD_REP",
"POL",
"PRT",
"SVK",
"SVN",
"SWE",
"TUR",
"UNIOECD",
"USA"
],
"codelist": {
"agency_id": "OECD",
"id": "CL_AREA",
"url": "https://sdmx.oecd.org/public/rest/codelist/OECD/CL_AREA/1.7",
"version": "1.7"
},
"id": "REF_AREA",
"position": 0
},
{
"available_codes": [
"TAX_REV"
],
"codelist": {
"agency_id": "OECD.CTP.TPS",
"id": "CL_MEASURE_REV",
"url": "https://sdmx.oecd.org/public/rest/codelist/OECD.CTP.TPS/CL_MEASURE_REV/1.0",
"version": "1.0"
},
"id": "MEASURE",
"position": 1
},
{
"available_codes": [
"S13",
"S1311",
"S1312",
"S1313",
"S1314",
"S1315"
],
"codelist": {
"agency_id": "OECD",
"id": "CL_SECTOR",
"url": "https://sdmx.oecd.org/public/rest/codelist/OECD/CL_SECTOR/1.2",
"version": "1.2"
},
"id": "SECTOR",
"position": 2
},
{
"available_codes": [
"_O",
"_T",
"T_1000",
"T_1100",
"T_1110",
"T_1120",
"T_1200",
"T_1210",
"T_1220",
"T_1300",
"T_2000",
"T_2100",
"T_2110",
"T_2120",
"T_2200",
"T_2210",
"T_2220",
"T_2300",
"T_2310",
"T_2320",
"T_2400",
"T_2410",
"T_2420",
"T_3000",
"T_4000",
"T_4100",
"T_4110",
"T_4120",
"T_4200",
"T_4210",
"T_4220",
"T_4300",
"T_4310",
"T_4320",
"T_4400",
"T_4500",
"T_4510",
"T_4520",
"T_4600",
"T_5000",
"T_5100",
"T_5110",
"T_5111",
"T_5112",
"T_5113",
"T_5120",
"T_5121",
"T_5122",
"T_5123",
"T_5124",
"T_5125",
"T_5126",
"T_5127",
"T_5128",
"T_5130",
"T_5200",
"T_5210",
"T_5211",
"T_5212",
"T_5213",
"T_5220",
"T_5300",
"T_6000",
"T_6100",
"T_6200",
"T_AA",
"T_AB",
"T_AC",
"T_AD",
"T_AE",
"T_AF",
"T_AG",
"T_AH",
"T_AI",
"T_AJ",
"T_AK",
"T_CUS",
"T_EUC",
"T_GROSS",
"T_NES_SUPRA",
"T_NET",
"T_NW1",
"T_NW1EXP",
"T_NW1TRAN",
"T_NW2",
"T_NW2EXP",
"T_NW2TRAN",
"T_NW3",
"T_NW3EXP",
"T_NW3TRAN",
"T_NWEXP",
"T_NWTOT",
"T_NWTRAN",
"T_SPLIT",
"T_SRF"
],
"codelist": {
"agency_id": "OECD.CTP.TPS",
"id": "CL_STANDARD_REVENUE",
"url": "https://sdmx.oecd.org/public/rest/codelist/OECD.CTP.TPS/CL_STANDARD_REVENUE/1.2",
"version": "1.2"
},
"id": "STANDARD_REVENUE",
"position": 3
},
{
"available_codes": [
"_T"
],
"codelist": {
"agency_id": "OECD.CTP.TPS",
"id": "CL_CTRY_SPECIFIC_REVENUE",
"url": "https://sdmx.oecd.org/public/rest/codelist/OECD.CTP.TPS/CL_CTRY_SPECIFIC_REVENUE/2.6",
"version": "2.6"
},
"id": "CTRY_SPECIFIC_REVENUE",
"position": 4
},
{
"available_codes": [
"PT_B1GQ",
"PT_OTR_REV_CAT",
"PT_OTR_SECTOR",
"USD",
"XDC"
],
"codelist": {
"agency_id": "OECD",
"id": "CL_UNIT_MEASURE",
"url": "https://sdmx.oecd.org/public/rest/codelist/OECD/CL_UNIT_MEASURE/1.20",
"version": "1.20"
},
"id": "UNIT_MEASURE",
"position": 5
},
{
"available_codes": [
"A"
],
"codelist": {
"agency_id": "SDMX",
"id": "CL_FREQ",
"url": "https://sdmx.oecd.org/public/rest/codelist/SDMX/CL_FREQ/2.1",
"version": "2.1"
},
"id": "FREQ",
"position": 6
}
],
"id": "DSD_REV_COMP_OECD@DF_RSOECD",
"is_final": true,
"name": "Revenue Statistics in OECD member countries - Comparative tax revenues",
"obs_count": 2940766,
"observed_at_ms": 1792360043908,
"primary_measure": "OBS_VALUE",
"publication_id": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"retrieved_at": "2026-10-18T21:47:23Z",
"source_url": "https://sdmx.oecd.org/public/rest/dataflow/OECD.CTP.TPS/DSD_REV_COMP_OECD@DF_RSOECD/2.0?references=none",
"structure_url": "https://sdmx.oecd.org/public/rest/datastructure/OECD.CTP.TPS/DSD_REV_COMP_OECD/2.0?references=none",
"time_dimension": "TIME_PERIOD",
"time_range": {
"end": "2024-12-31",
"start": "1965-01-01"
},
"version": "2.0"
}Request contract
- Method and path: POST /apis/v1/sdmx-oecd-org/datasets/structure-get
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/structure-get
{
"operationId": "sdmx-oecd-org.datasets.structure-get",
"method": "POST",
"path": "/apis/v1/sdmx-oecd-org/datasets/structure-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": {
"dataflow": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"dataflow": {
"description": "AGENCY:ID(VERSION), AGENCY:ID (latest), or the data-URL form AGENCY,ID,VERSION / AGENCY,ID, (latest). Example: OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0).",
"type": "string"
}
},
"required": [
"dataflow"
],
"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
Response
Describe one dataflow: dimension ids in key order, the codelist of each, the codes that actually carry data per dimension, attributes, total obs_count and time range (stub, data structure definition and whole-flow availability). Use it to choose filters for records_list; code labels come from codelist_get. Common dataflows: G20/OECD merchandise trade OECD.SDD.TPS:DSD_IMTS@DF_IMTS (REF_AREA incl. G20, G7, OECD; TRADE_FLOW X exports, M imports, TB balance; FREQ Q/M/A; UNIT_MEASURE USD_EXC); quarterly trade in services and goods from balance of payments OECD.SDD.TPS:DSD_BOP@DF_BOP (MEASURE S services, G goods; ACCOUNTING_ENTRY C credit (exports), D debit (imports), B balance; FREQ Q); annual services by partner and category OECD.SDD.TPS:DSD_BOP@DF_TIS; Revenue Statistics OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD (STANDARD_REVENUE _T total tax, T_1000 income, T_1100 personal income, T_1200 corporate, T_2000 social security, T_4000 property, T_5000 goods and services; UNIT_MEASURE PT_B1GQ % of GDP; SECTOR S13 general government); Social expenditure (SOCX) OECD.ELS.SPD:DSD_SOCX_AGG@DF_SOCX_AGG (EXPEND_SOURCE ES10 public, ES20 mandatory private; PROGRAMME_TYPE _T total, TP11 old age...; UNIT_MEASURE PT_B1GQ % of GDP); quarterly sector accounts OECD.SDD.NAD:DSD_NASEC1@DF_QSA (SECTOR S1 total economy, S11 non-financial corporations, S13 government, S14 households, S1M households and NPISH; TRANSACTION B6G disposable income, B8G saving, B9 net lending...); annual sector accounts OECD.SDD.NAD:DSD_NASEC10@DF_TABLE14. Countries are ISO3 codes in REF_AREA; periods are 2024, 2024-Q3, 2024-07.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
agency_id | string | |
attributes | object[] | |
attribution | string | |
availability_url | string | |
data_structure | object | |
dataflow_ref | string | |
description | string | Publisher description as sent (may contain HTML); null when the stub has none. |
dimensions | object[] | Series dimensions in key order (TIME_PERIOD excluded). |
id | string | |
is_final | boolean | |
name | string | |
obs_count | number | Observations in the whole dataflow (availability annotation obs_count). |
observed_at_ms | number | |
primary_measure | string | |
publication_id | string | The resolved dataflow_ref; data versions are pinned by it. |
retrieved_at | string | |
source_url | string | |
structure_url | string | |
time_dimension | string | |
time_range | object | |
version | string | Resolved version (also when latest was asked). |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.