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

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

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

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


## OpenAPI

````yaml openapi/sdmx-oecd-org.json POST /apis/v1/sdmx-oecd-org/datasets/source-status
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/source-status:
    post:
      tags:
        - OECD Data Explorer SDMX API
      summary: Source status
      description: >-
        Before or between records_list pulls: compare `version` and `obs_count`
        (or `content_hash`) with the last pull to know whether the segment
        changed.
      operationId: sdmx-oecd-org.datasets.source-status
      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
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-18.
                  summary: Official provider example
                  value:
                    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'
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            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.
        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.