Records get
curl --request POST \
--url https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/records-get \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dataflow": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"period": "2022",
"series_key": "USA.TAX_REV.S13._T._T.XDC.A"
}
'import requests
url = "https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/records-get"
payload = {
"dataflow": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"period": "2022",
"series_key": "USA.TAX_REV.S13._T._T.XDC.A"
}
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)',
period: '2022',
series_key: 'USA.TAX_REV.S13._T._T.XDC.A'
})
};
fetch('https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/records-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/records-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)',
'period' => '2022',
'series_key' => 'USA.TAX_REV.S13._T._T.XDC.A'
]),
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/records-get"
payload := strings.NewReader("{\n \"dataflow\": \"OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)\",\n \"period\": \"2022\",\n \"series_key\": \"USA.TAX_REV.S13._T._T.XDC.A\"\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/records-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 \"period\": \"2022\",\n \"series_key\": \"USA.TAX_REV.S13._T._T.XDC.A\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/records-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 \"period\": \"2022\",\n \"series_key\": \"USA.TAX_REV.S13._T._T.XDC.A\"\n}"
response = http.request(request)
puts response.read_body{
"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.",
"dataflow_ref": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"observed_at_ms": 1792360085336,
"record": {
"attributes": {
"CURRENCY": "USD",
"DECIMALS": "3",
"OBS_STATUS": "A",
"REVENUE_CODE": "TOTALTAX",
"UNIT_MULT": "9"
},
"dataflow_ref": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"dimensions": {
"CTRY_SPECIFIC_REVENUE": "_T",
"FREQ": "A",
"MEASURE": "TAX_REV",
"REF_AREA": "USA",
"SECTOR": "S13",
"STANDARD_REVENUE": "_T",
"UNIT_MEASURE": "XDC"
},
"mapped": {
"amount": 7293844860000,
"ctry_specific_revenue": "_T",
"currency": "USD",
"jurisdiction_id": "USA",
"kind": "revenue_statistics",
"level_of_government": "General government",
"level_of_government_code": "S13",
"measure": "TAX_REV",
"obs_status": "A",
"pct_of_gdp": null,
"period": "2022",
"revenue_code": "TOTALTAX",
"tax_category_code": "_T",
"unit_measure": "XDC",
"unit_mult": 9
},
"obs_value": 7293.84486,
"publication_id": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)|sha256:9e7b0c7926dad2e21faf34923d0ed851605875d29d27c83488fb77d933aec691",
"retrieved_at": "2026-10-18T21:48:05Z",
"series_key": "USA.TAX_REV.S13._T._T.XDC.A",
"source_record_id": "oecd:OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0):USA.TAX_REV.S13._T._T.XDC.A:2022",
"source_url": "https://sdmx.oecd.org/public/rest/data/OECD.CTP.TPS,DSD_REV_COMP_OECD@DF_RSOECD,2.0/USA.TAX_REV.S13._T._T.XDC.A?startPeriod=2022&endPeriod=2022",
"time_period": "2022"
},
"retrieved_at": "2026-10-18T21:48:05Z",
"source_url": "https://sdmx.oecd.org/public/rest/data/OECD.CTP.TPS,DSD_REV_COMP_OECD@DF_RSOECD,2.0/USA.TAX_REV.S13._T._T.XDC.A?startPeriod=2022&endPeriod=2022",
"version": "2.0"
}OECD Data Explorer SDMX API
Records get
Fetch or re-check a single record returned by records_list (its source_record_id is oecd:<dataflow_ref>:<series key>:<period>).
POST
https://api.aisa.one
/
apis
/
v1
/
sdmx-oecd-org
/
datasets
/
records-get
Records get
curl --request POST \
--url https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/records-get \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dataflow": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"period": "2022",
"series_key": "USA.TAX_REV.S13._T._T.XDC.A"
}
'import requests
url = "https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/records-get"
payload = {
"dataflow": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"period": "2022",
"series_key": "USA.TAX_REV.S13._T._T.XDC.A"
}
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)',
period: '2022',
series_key: 'USA.TAX_REV.S13._T._T.XDC.A'
})
};
fetch('https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/records-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/records-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)',
'period' => '2022',
'series_key' => 'USA.TAX_REV.S13._T._T.XDC.A'
]),
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/records-get"
payload := strings.NewReader("{\n \"dataflow\": \"OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)\",\n \"period\": \"2022\",\n \"series_key\": \"USA.TAX_REV.S13._T._T.XDC.A\"\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/records-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 \"period\": \"2022\",\n \"series_key\": \"USA.TAX_REV.S13._T._T.XDC.A\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/records-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 \"period\": \"2022\",\n \"series_key\": \"USA.TAX_REV.S13._T._T.XDC.A\"\n}"
response = http.request(request)
puts response.read_body{
"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.",
"dataflow_ref": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"observed_at_ms": 1792360085336,
"record": {
"attributes": {
"CURRENCY": "USD",
"DECIMALS": "3",
"OBS_STATUS": "A",
"REVENUE_CODE": "TOTALTAX",
"UNIT_MULT": "9"
},
"dataflow_ref": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"dimensions": {
"CTRY_SPECIFIC_REVENUE": "_T",
"FREQ": "A",
"MEASURE": "TAX_REV",
"REF_AREA": "USA",
"SECTOR": "S13",
"STANDARD_REVENUE": "_T",
"UNIT_MEASURE": "XDC"
},
"mapped": {
"amount": 7293844860000,
"ctry_specific_revenue": "_T",
"currency": "USD",
"jurisdiction_id": "USA",
"kind": "revenue_statistics",
"level_of_government": "General government",
"level_of_government_code": "S13",
"measure": "TAX_REV",
"obs_status": "A",
"pct_of_gdp": null,
"period": "2022",
"revenue_code": "TOTALTAX",
"tax_category_code": "_T",
"unit_measure": "XDC",
"unit_mult": 9
},
"obs_value": 7293.84486,
"publication_id": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)|sha256:9e7b0c7926dad2e21faf34923d0ed851605875d29d27c83488fb77d933aec691",
"retrieved_at": "2026-10-18T21:48:05Z",
"series_key": "USA.TAX_REV.S13._T._T.XDC.A",
"source_record_id": "oecd:OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0):USA.TAX_REV.S13._T._T.XDC.A:2022",
"source_url": "https://sdmx.oecd.org/public/rest/data/OECD.CTP.TPS,DSD_REV_COMP_OECD@DF_RSOECD,2.0/USA.TAX_REV.S13._T._T.XDC.A?startPeriod=2022&endPeriod=2022",
"time_period": "2022"
},
"retrieved_at": "2026-10-18T21:48:05Z",
"source_url": "https://sdmx.oecd.org/public/rest/data/OECD.CTP.TPS,DSD_REV_COMP_OECD@DF_RSOECD,2.0/USA.TAX_REV.S13._T._T.XDC.A?startPeriod=2022&endPeriod=2022",
"version": "2.0"
}Request contract
- Method and path: POST /apis/v1/sdmx-oecd-org/datasets/records-get
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/records-get
{
"operationId": "sdmx-oecd-org.datasets.records-get",
"method": "POST",
"path": "/apis/v1/sdmx-oecd-org/datasets/records-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)",
"period": "2022",
"series_key": "USA.TAX_REV.S13._T._T.XDC.A"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"dataflow": {
"description": "AGENCY:ID(VERSION) or AGENCY:ID (latest).",
"type": "string"
},
"period": {
"description": "TIME_PERIOD, e.g. 2024 or 2026-09. Pattern: ^[0-9]{4}(-(0[1-9]|1[0-2]|Q[1-4]|S[12]|W[0-5][0-9])(-(0[1-9]|[12][0-9]|3[01]))?)?$.",
"type": "string"
},
"series_key": {
"description": "Full series key, every position filled, e.g. USA.M.SHARE.IX._Z._Z._Z._Z.N or USA.TAX_REV.S13._T._T.PT_B1GQ.A. Pattern: ^[A-Za-z0-9_@-]+(\\.[A-Za-z0-9_@-]+)*$.",
"type": "string"
}
},
"required": [
"dataflow",
"period",
"series_key"
],
"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
One observation by its source identity: dataflow, full series key (no wildcards, no +) and TIME_PERIOD, from GET data/{flow}/{series key}?startPeriod=P&endPeriod=P as SDMX-CSV. not_found when OECD has no observation for that series and period.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
attribution | string | |
dataflow_ref | string | |
observed_at_ms | number | |
record | object | |
retrieved_at | string | |
source_url | string | |
version | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.