curl --request POST \
--url https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/source-status \
--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/source-status"
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/source-status', 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/source-status",
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/source-status"
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/source-status")
.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/source-status")
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{
"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/USA.TAX_REV....XDC.A?mode=exact&references=none",
"content_hash": null,
"dataflow_ref": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"dimensions": [
{
"id": "REF_AREA",
"values": [
"USA"
]
},
{
"id": "MEASURE",
"values": [
"TAX_REV"
]
},
{
"id": "SECTOR",
"values": [
"S13",
"S1311",
"S1312",
"S1313",
"S1314"
]
},
{
"id": "STANDARD_REVENUE",
"values": [
"_T",
"T_1000",
"T_1100",
"T_1110",
"T_1120",
"T_1200",
"T_1210",
"T_1220",
"T_1300",
"T_2000",
"T_2100",
"T_2200",
"T_2300",
"T_2400",
"T_3000",
"T_4000",
"T_4100",
"T_4110",
"T_4120",
"T_4200",
"T_4300",
"T_4310",
"T_4320",
"T_4400",
"T_4500",
"T_4510",
"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_AG",
"T_AI",
"T_AJ",
"T_AK",
"T_GROSS",
"T_NET",
"T_NWEXP",
"T_NWTOT",
"T_NWTRAN",
"T_SPLIT"
]
},
{
"id": "CTRY_SPECIFIC_REVENUE",
"values": [
"_T"
]
},
{
"id": "UNIT_MEASURE",
"values": [
"XDC"
]
},
{
"id": "FREQ",
"values": [
"A"
]
}
],
"end_period": null,
"file_url": "https://sdmx.oecd.org/public/rest/data/OECD.CTP.TPS,DSD_REV_COMP_OECD@DF_RSOECD,2.0/USA.TAX_REV....XDC.A",
"hash_algorithm": null,
"key": "USA.TAX_REV....XDC.A",
"last_modified": "2025-12-09",
"obs_count": 11025,
"observed_at_ms": 1792360062583,
"publication_id": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"retrieved_at": "2026-10-18T21:47:42Z",
"size_bytes": null,
"start_period": null,
"time_range": {
"end": "2024-12-31",
"start": "1965-01-01"
},
"version": "2.0"
}Source status
Before or between records_list pulls: compare version and obs_count (or content_hash) with the last pull to know whether the segment changed.
curl --request POST \
--url https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/source-status \
--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/source-status"
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/source-status', 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/source-status",
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/source-status"
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/source-status")
.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/source-status")
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{
"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/USA.TAX_REV....XDC.A?mode=exact&references=none",
"content_hash": null,
"dataflow_ref": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"dimensions": [
{
"id": "REF_AREA",
"values": [
"USA"
]
},
{
"id": "MEASURE",
"values": [
"TAX_REV"
]
},
{
"id": "SECTOR",
"values": [
"S13",
"S1311",
"S1312",
"S1313",
"S1314"
]
},
{
"id": "STANDARD_REVENUE",
"values": [
"_T",
"T_1000",
"T_1100",
"T_1110",
"T_1120",
"T_1200",
"T_1210",
"T_1220",
"T_1300",
"T_2000",
"T_2100",
"T_2200",
"T_2300",
"T_2400",
"T_3000",
"T_4000",
"T_4100",
"T_4110",
"T_4120",
"T_4200",
"T_4300",
"T_4310",
"T_4320",
"T_4400",
"T_4500",
"T_4510",
"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_AG",
"T_AI",
"T_AJ",
"T_AK",
"T_GROSS",
"T_NET",
"T_NWEXP",
"T_NWTOT",
"T_NWTRAN",
"T_SPLIT"
]
},
{
"id": "CTRY_SPECIFIC_REVENUE",
"values": [
"_T"
]
},
{
"id": "UNIT_MEASURE",
"values": [
"XDC"
]
},
{
"id": "FREQ",
"values": [
"A"
]
}
],
"end_period": null,
"file_url": "https://sdmx.oecd.org/public/rest/data/OECD.CTP.TPS,DSD_REV_COMP_OECD@DF_RSOECD,2.0/USA.TAX_REV....XDC.A",
"hash_algorithm": null,
"key": "USA.TAX_REV....XDC.A",
"last_modified": "2025-12-09",
"obs_count": 11025,
"observed_at_ms": 1792360062583,
"publication_id": "OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD(2.0)",
"retrieved_at": "2026-10-18T21:47:42Z",
"size_bytes": null,
"start_period": null,
"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/source-status
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/source-status
{
"operationId": "sdmx-oecd-org.datasets.source-status",
"method": "POST",
"path": "/apis/v1/sdmx-oecd-org/datasets/source-status",
"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)",
"key": "USA.TAX_REV....XDC.A"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"dataflow": {
"description": "AGENCY:ID(VERSION) or AGENCY:ID (latest), e.g. OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD.",
"type": "string"
},
"end_period": {
"description": "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",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"filters": {
"additionalProperties": true,
"description": "Codes per dimension id, e.g. {\"REF_AREA\": \"USA\", \"FREQ\": \"Q\", \"TRADE_FLOW\": [\"X\", \"M\"]}. Countries go in REF_AREA as ISO3 codes; dimensions left out are wildcards. structure_get lists the dimension ids and the codes with data. Use instead of `key`.",
"type": "object",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"include_hash": {
"description": "Download the CSV segment and return its canonical SHA-256 and size. Costs one data download; the segment must be under 50,000 observations.",
"type": "boolean",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"key": {
"description": "Raw SDMX series key in dimension order (see structure_get); empty position = wildcard, `+` joins codes. Prefer `filters`, which cannot get the positions wrong. Pattern: ^(all|[A-Za-z0-9_@+.-]*)$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"start_period": {
"description": "SDMX period: 2020, 2026-01, 2024-Q1. 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",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"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
Cheap check of one selection (filters or key) of a dataflow from GET availableconstraint/{flow}/{key}?mode=exact (cached 2 h upstream): resolved dataflow version, obs_count, time range and the codes present per dimension, plus the segment's data file URL. With include_hash the SDMX-CSV segment is downloaded once and hashed canonically (the same hash records_list pins in its cursor). Useful to see which codes and periods exist for a country before collecting.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
attribution | string | |
availability_url | string | |
content_hash | string | |
dataflow_ref | string | |
dimensions | object[] | |
end_period | string | |
file_url | string | GET data URL of the segment (Accept: application/vnd.sdmx.data+csv). |
hash_algorithm | string | |
key | string | |
last_modified | string | Upstream last-modified header of the availability response: a load date, not a data date. |
obs_count | number | |
observed_at_ms | number | |
publication_id | string | dataflow_ref, followed by |sha256:<hash> when the hash was computed. |
retrieved_at | string | |
size_bytes | number | |
start_period | string | |
time_range | object | |
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.