How to Use UN Tourism country statistics in opencode
Returns country-year tourism observations with values, units, source references, editions, and provisional flags. Use it to compare reported arrivals, spending, accommodation, employment, or tourism GDP across countries and years.
Prompts to try with UN Tourism country statistics in opencode
Copy an example into opencode, or ask in your own words.
Use UN Tourism country statistics to compare overnight international arrivals for Spain, France, and Italy from 2019 through 2024. Add a chart to this project using the returned units and provisional flags.
Use UN Tourism country statistics to retrieve France's domestic overnight and same-day trips from 2019 through 2024. Create a comparison table in the project for the observations available.
Use UN Tourism country statistics to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from UN Tourism country statistics and tell me what changed since last week.
Check UN Tourism country statistics and summarize what you find in three bullet points.
How to set up UN Tourism country statistics in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run UN Tourism country statistics
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/data", "input": { "indicator_codes": [ "<indicator_codes>" ] } }'
Then paste one of the prompts above: opencode finds UN Tourism country statistics on Spiral, shows the price and runs it.
UN Tourism country statistics providers and prices
Spiral runs UN Tourism country statistics through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Year to | 1995 to 2100 | year_to | |
| Page size | 1 to 500 | 100 | page_size |
| Year from | 1995 to 2100 | year_from |
Every API field of UN Tourism · Data is on its tool page: open its card above.
What can you do with UN Tourism country statistics in opencode?
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.
More on UN Tourism country statistics and opencode
Overview
UN Tourism country statistics in other agents
Questions about UN Tourism country statistics in opencode
Can opencode use UN Tourism country statistics?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run UN Tourism country statistics like any built-in tool.
How much does UN Tourism country statistics cost in opencode?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an Alexandria account to use UN Tourism country statistics in opencode?
No. Spiral runs UN Tourism country statistics 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 country statistics in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while UN Tourism country statistics runs?
UN Tourism country statistics runs in the background. opencode 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.
Start using UN Tourism country statistics in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


