Spiral gives your agent every tool with one account. Browse the tools →

Codex · Maps & Reviews

How to Use UN Tourism statistical files in Codex

Finds the source files behind UN Tourism statistics, including arrivals, spending, domestic travel, accommodation, employment, and tourism GDP. Use it to locate the published workbooks behind a research question.

Prompts to try with UN Tourism statistical files in Codex

Copy an example into Codex, or ask in your own words.

Use UN Tourism statistical files to locate the inbound arrivals and expenditure workbooks for a Spain tourism study. Add the source references to this project's data documentation.

UN Tourism statistical filesCodex
Try asking
  • Use UN Tourism statistical files to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from UN Tourism statistical files and tell me what changed since last week.

  • Check UN Tourism statistical files and summarize what you find in three bullet points.

  • Pull the newest data from UN Tourism statistical files and give me the result as a table.

How to set up UN Tourism statistical files in Codex

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run UN Tourism statistical files

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "untourism-int/statistics/files",
        "input": {
          "file_ids": [
            "<file_ids>"
          ]
        }
      }'

Then paste one of the prompts above: Codex finds UN Tourism statistical files on Spiral, shows the price and runs it.

UN Tourism statistical files providers and prices

Spiral runs UN Tourism statistical files through Alexandria. Open a card for today's price, with every fee included.

AlexandriaMaps & Reviews
UN Tourism · Files
untourism-int/statistics/files

Settings you can ask for

Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Series groupinbound, outbound, domestic, industries, employment, macro, or null

Restrict to one series group.

Every API field of UN Tourism · Files is on its tool page: open its card above.

What can you do with UN Tourism statistical files in Codex?

Build a country comparison table that separates overnight arrivals, day visits, and tourism spending. A coding agent can connect the project's tourism measures to UN Tourism indicators, source files, and annual observations.

Compare destination recovery

Identify the overnight-arrivals measure, locate its source workbook, and compare Spain, France, and Italy from 2019 through the latest available common year.

Study regional visitor demand

Find the arrivals-by-origin measure and supporting file, then compare the reported origin-region mix for Japan and Thailand.

Separate overnight tourism from day visits

Find the overnight and same-day arrival measures, identify their published files, and examine how the two series differ for Spain and Portugal.

Compare domestic travel patterns

Locate domestic-trip measures and workbooks, then compare overnight and same-day trips in France, Germany, and Italy for years with reported observations.

Examine inbound and outbound spending

Identify expenditure measures and source workbooks, then compare Spain's inbound and outbound travel components without mixing them with passenger transport.

Build a source-backed tourism research table

Match indicator definitions to published files and country-year observations for Greece, Croatia, and Portugal. Present comparable arrivals and spending measures with their reported units.

Questions about UN Tourism statistical files in Codex

Can Codex use UN Tourism statistical files?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run UN Tourism statistical files like any built-in tool.

How much does UN Tourism statistical files cost in Codex?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

Do I need an Alexandria account to use UN Tourism statistical files in Codex?

No. Spiral runs UN Tourism statistical files on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up UN Tourism statistical files in Codex?

About two minutes: add the hosted server, then sign in.

Does Codex wait while UN Tourism statistical files runs?

UN Tourism statistical files runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

Where do UN Tourism statistics come from?

UN Tourism collects country submissions through a questionnaire aligned with IRTS 2008. The documented observations are organized by reporting country and year.

How current are the statistics?

The statistics database page lists July 21, 2026, as its latest update. That date describes the database update and does not establish the latest observation year for every measure.

Do international arrivals include day visitors?

UN Tourism separates overnight arrivals from same-day arrivals, with a cruise-passenger breakdown. Select the overnight measure when your question concerns tourists staying at least one night.

How detailed are the origin regions?

The inbound arrivals page names six origin regions: Africa, Americas, East Asia and the Pacific, Europe, Middle East, and South Asia. An origin-region breakdown answers a different question from a ranking of individual origin countries.

Are domestic trips combined with international arrivals?

UN Tourism publishes domestic trips separately from international arrivals. Domestic trips have their own overnight and same-day breakdown.

Get started

Start using UN Tourism statistical files in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options