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

# Data

> Country-year observations for up to 10 indicator codes (from `indicators`), parsed live from the official Excel files: value as source text (null for blank/suppressed cells with the reason in series_note), unit copied from the file, SDMX flag and label, provisional marker, country as ISO3 + M49 + label, file edition and publication date. Filter by ISO3 `countries`, `year_from`/`year_to` and, for arrivals-by-region, `partner` (total | all | UN Tourism region code). Cursor-paginated, deterministic order.

## Request contract

* **Method and path:** POST /apis/v1/untourism-int/statistics/data
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/untourism-int/statistics/data`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/untourism-int.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "untourism-int.statistics.data",
  "method": "POST",
  "path": "/apis/v1/untourism-int/statistics/data",
  "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": {
              "countries": [
                "ESP"
              ],
              "indicator_codes": [
                "INBD_EXPD_BPAY_TOTL_VSTR"
              ],
              "year_from": 2024,
              "year_to": 2024
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "countries": {
              "description": "ISO 3166-1 alpha-3 codes. Omit or empty for every reporter (countries, territories and, in the SDG files, regional aggregates).",
              "items": {
                "type": "string"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "cursor": {
              "description": "next_cursor from the previous page of the same query.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "indicator_codes": {
              "description": "Indicator codes such as INBD_TRIP_TOTL_TOTL_TOUR (international tourist arrivals, overnight). Legacy Compendium codes such as CP_1_2 are accepted when a free equivalent exists. Codes spanning more than 3 source files are rejected.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "page_size": {
              "default": 100,
              "description": "page_size\n\nProvider reference: minimum 1; maximum 500; default 100.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 500,
                "min": 1
              }
            },
            "partner": {
              "description": "Arrivals-by-region only: \"total\" (default: World / no partner dimension), \"all\" for every region of origin, or a UN Tourism region code (10000 Africa, 20000 Americas, 30000 East Asia and the Pacific, 40000 Europe, 50000 Middle East, 60000 South Asia, 70000 Other not classified).",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "year_from": {
              "description": "year_from\n\nProvider reference: minimum 1995; maximum 2100.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 2100,
                "min": 1995
              }
            },
            "year_to": {
              "description": "year_to\n\nProvider reference: minimum 1995; maximum 2100.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 2100,
                "min": 1995
              }
            }
          },
          "required": [
            "indicator_codes"
          ],
          "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/untourism-int.json POST /apis/v1/untourism-int/statistics/data
openapi: 3.1.0
info:
  description: ''
  title: UN Tourism
  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:
    untourism-int:
      description: ''
      title: UN Tourism
      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: 76bcc60181f4468f2bf4a5eafdd9a2696f6fab3cc49fd2cf37f809d74780a0d2
        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/untourism-int/statistics/data
    - /apis/v1/untourism-int/statistics/files
    - /apis/v1/untourism-int/statistics/indicators
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:5d63bb8d511a7d503c56c3cb760a502e03982d2327bbd6b80fbf7ac13e25c0ff
    facts_hash: 76bcc60181f4468f2bf4a5eafdd9a2696f6fab3cc49fd2cf37f809d74780a0d2
    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: untourism-int
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/untourism-int/statistics/data:
    post:
      tags:
        - UN Tourism
      summary: Data
      description: >-
        Country-year observations for up to 10 indicator codes (from
        `indicators`), parsed live from the official Excel files: value as
        source text (null for blank/suppressed cells with the reason in
        series_note), unit copied from the file, SDMX flag and label,
        provisional marker, country as ISO3 + M49 + label, file edition and
        publication date. Filter by ISO3 `countries`, `year_from`/`year_to` and,
        for arrivals-by-region, `partner` (total | all | UN Tourism region
        code). Cursor-paginated, deterministic order.
      operationId: untourism-int.statistics.data
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  countries:
                    - ESP
                  indicator_codes:
                    - INBD_EXPD_BPAY_TOTL_VSTR
                  year_from: 2024
                  year_to: 2024
            schema:
              additionalProperties: true
              properties:
                countries:
                  description: >-
                    ISO 3166-1 alpha-3 codes. Omit or empty for every reporter
                    (countries, territories and, in the SDG files, regional
                    aggregates).
                  items:
                    type: string
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                cursor:
                  description: next_cursor from the previous page of the same query.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                indicator_codes:
                  description: >-
                    Indicator codes such as INBD_TRIP_TOTL_TOTL_TOUR
                    (international tourist arrivals, overnight). Legacy
                    Compendium codes such as CP_1_2 are accepted when a free
                    equivalent exists. Codes spanning more than 3 source files
                    are rejected.
                  items:
                    type: string
                  type: array
                page_size:
                  default: 100
                  description: |-
                    page_size

                    Provider reference: minimum 1; maximum 500; default 100.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 500
                    min: 1
                partner:
                  description: >-
                    Arrivals-by-region only: "total" (default: World / no
                    partner dimension), "all" for every region of origin, or a
                    UN Tourism region code (10000 Africa, 20000 Americas, 30000
                    East Asia and the Pacific, 40000 Europe, 50000 Middle East,
                    60000 South Asia, 70000 Other not classified).
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                year_from:
                  description: |-
                    year_from

                    Provider reference: minimum 1995; maximum 2100.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 2100
                    min: 1995
                year_to:
                  description: |-
                    year_to

                    Provider reference: minimum 1995; maximum 2100.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 2100
                    min: 1995
              required:
                - indicator_codes
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-09-11T00:00:00Z.
                  summary: Official provider example
                  value:
                    catalog_version: '2026-09-11'
                    complete: true
                    count: 1
                    countries_m49:
                      - 724
                    files:
                      - changed_since_catalog: false
                        edition: '12.2025'
                        etag: 97538b097e596a427f2967a2eaaf3630
                        file_id: inbound_expenditure
                        release_label: 23 December 2025
                        rows_in_file: 13987
                        source_updated_at: '2026-01-02T13:06:42Z'
                        url: >-
                          https://pre-webunwto.s3.amazonaws.com/s3fs-public/2025-12/UN_Tourism_inbound_expenditure_12_2025.xlsx
                        version_id: htMhLThP8bDcgtu2mdezemsaX7fMlQUq
                    indicator_codes:
                      - INBD_EXPD_BPAY_TOTL_VSTR
                    license: >-
                      UN Tourism content is copyrighted. The free Key Tourism
                      Statistics files are provided for non-commercial use with
                      attribution (see the file's suggested citation);
                      redistribution requires permission from UN Tourism. Terms:
                      https://www.untourism.int/copyright
                    next_cursor: null
                    observed_at_ms: 1789084800000
                    offset: 0
                    page_size: 100
                    records:
                      - area_kind: country
                        country: Spain
                        edition: '12.2025'
                        file_id: inbound_expenditure
                        flag: null
                        flag_label: null
                        id: >-
                          inbound_expenditure|INBD_EXPD_BPAY_TOTL_VSTR|724|999|2024
                        indicator_code: INBD_EXPD_BPAY_TOTL_VSTR
                        indicator_name: >-
                          inbound - expenditure - balance of payments - total -
                          visitors
                        indicator_previous_code: CP_1_33
                        iso3: ESP
                        m49_code: 724
                        notes: >-
                          Calculated as sum of the travel and passenger
                          transport components
                        observed_at_ms: 1789084800000
                        partner_area: World
                        partner_area_code: 999
                        provisional: false
                        release_date: '2025-12-23'
                        series_note: >-
                          Calculated as sum of the travel and passenger
                          transport components
                        source: null
                        source_file: >-
                          https://pre-webunwto.s3.amazonaws.com/s3fs-public/2025-12/UN_Tourism_inbound_expenditure_12_2025.xlsx
                        source_updated_at: '2026-01-02T13:06:42Z'
                        source_url: >-
                          https://www.untourism.int/tourism-statistics/tourism-data-inbound-tourism
                        unit: million US dollars (nominal values)
                        unit_note: >-
                          multiplier 1,000,000; currency USD; nominal (current)
                          prices
                        value: '106656.535197297'
                        value_number: 106656.535197297
                        year: 2024
                    retrieved_at: '2026-09-11T00:00:00Z'
                    schema_version: 1.0.0
                    source_updated_at: '2026-01-02T13:06:42Z'
                    total: 1
                    warnings: []
                    year_from: 2024
                    year_to: 2024
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Country-year observations for up to 10 indicator codes (from
            `indicators`), parsed live from the official Excel files: value as
            source text (null for blank/suppressed cells with the reason in
            series_note), unit copied from the file, SDMX flag and label,
            provisional marker, country as ISO3 + M49 + label, file edition and
            publication date. Filter by ISO3 `countries`, `year_from`/`year_to`
            and, for arrivals-by-region, `partner` (total | all | UN Tourism
            region code). Cursor-paginated, deterministic order.


            The response contains the tool result directly.


            The provider identifies `records` as the primary payload key.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `area_kind` | string |  |

            | `country` | string |  |

            | `edition` | string |  |

            | `file_id` | string |  |

            | `flag` | string |  |

            | `flag_label` | string |  |

            | `id` | string | Stable:
            file_id\|indicator_code\|m49\|partner\|year. |

            | `indicator_code` | string |  |

            | `indicator_name` | string |  |

            | `indicator_previous_code` | string |  |

            | `iso3` | string | Null for regional aggregates and the three
            Caribbean Netherlands islands (M49 5351-5353), which have no own
            ISO3. |

            | `m49_code` | number |  |

            | `notes` | string |  |

            | `observed_at_ms` | number |  |

            | `partner_area` | string |  |

            | `partner_area_code` | number |  |

            | `provisional` | boolean |  |

            | `release_date` | string |  |

            | `series_note` | string |  |

            | `source` | string |  |

            | `source_file` | string |  |

            | `source_updated_at` | string |  |

            | `source_url` | string |  |

            | `unit` | string |  |

            | `unit_note` | string |  |

            | `value` | string | Source cell text; null when the cell is blank
            or suppressed (see series_note). Never inferred. |

            | `value_number` | number |  |

            | `year` | number |  |



            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.