> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# 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.

## 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`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/sdmx-oecd-org.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "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.


## OpenAPI

````yaml openapi/sdmx-oecd-org.json POST /apis/v1/sdmx-oecd-org/datasets/structure-get
openapi: 3.1.0
info:
  description: ''
  title: OECD Data Explorer SDMX API
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    sdmx-oecd-org:
      description: ''
      title: OECD Data Explorer SDMX API
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 9ae65f14fd2e55ff7c9ef4040112d915d6e3c89fdd9682f63cec9be588e616f5
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/sdmx-oecd-org/datasets/codelist-get
    - /apis/v1/sdmx-oecd-org/datasets/dataflows-list
    - /apis/v1/sdmx-oecd-org/datasets/records-get
    - /apis/v1/sdmx-oecd-org/datasets/records-list
    - /apis/v1/sdmx-oecd-org/datasets/source-status
    - /apis/v1/sdmx-oecd-org/datasets/structure-get
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:0268be5852703fac92e8c8edda4385fd15075c4fe85c228a210752f0ee7d8aab
    facts_hash: 9ae65f14fd2e55ff7c9ef4040112d915d6e3c89fdd9682f63cec9be588e616f5
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: sdmx-oecd-org
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/sdmx-oecd-org/datasets/structure-get:
    post:
      tags:
        - OECD Data Explorer SDMX API
      summary: Structure get
      description: >-
        Before building a key for source_status, records_list or records_get:
        positions follow `dimensions` order; available_codes are the values that
        return data.
      operationId: sdmx-oecd-org.datasets.structure-get
      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
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-18.
                  summary: Official provider example
                  value:
                    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'
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            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.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.