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

opencode · Public Records

How to Use UNESCO UIS country and region codes in opencode

Returns the countries and regional aggregates available in a UIS data release. Use it to identify the geography behind a comparison and distinguish regional groupings before retrieving statistics.

Prompts to try with UNESCO UIS country and region codes in opencode

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

Use UNESCO UIS country and region codes to find Kenya, Tanzania, Uganda, and the available Sub-Saharan Africa aggregates, then add the returned identifiers and labels to this project's geography lookup.

UNESCO UIS country and region codesopencode
Try asking
  • Use UNESCO UIS country and region codes to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from UNESCO UIS country and region codes and tell me what changed since last week.

  • Check UNESCO UIS country and region codes and summarize what you find in three bullet points.

  • Pull the newest data from UNESCO UIS country and region codes and give me the result as a table.

How to set up UNESCO UIS country and region codes in opencode

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

Use Spiral's MCP server

  1. 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
  2. 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
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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 UNESCO UIS country and region codes

    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": "databrowser-uis-unesco-org/statistics/geographies",
        "input": {
          "type": "country"
        }
      }'

Then paste one of the prompts above: opencode finds UNESCO UIS country and region codes on Spiral, shows the price and runs it.

UNESCO UIS country and region codes providers and prices

Spiral runs UNESCO UIS country and region codes through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
UNESCO UIS · Geographies
databrowser-uis-unesco-org/statistics/geographies

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Typecountry or region

country = national units (ISO3); region = regional aggregates.

Page size1 to 10001000

Records per page (1 to 1000).

Every API field of UNESCO UIS · Geographies is on its tool page: open its card above.

What can you do with UNESCO UIS country and region codes in opencode?

Build a country comparison dashboard with UIS observations, geography labels, and indicator definitions. Use published release metadata to document which publication supplies the dashboard's statistics.

Compare primary completion across East Africa

Build a Kenya, Tanzania, and Uganda comparison by finding primary completion measures, checking their definitions, resolving country codes, selecting a release, and retrieving the available observations.

Prepare a research spending comparison

Find research expenditure measures for Brazil, Mexico, and Chile, check the calculation methods and available years, identify the country codes, and use a selected release for the comparison.

Research heritage preservation spending

Find cultural and natural heritage expenditure indicators for France, Spain, and Portugal. Check definitions and availability, resolve the countries, and retrieve the observations from one selected release.

Reproduce a published education comparison

Rebuild an India and Bangladesh education table using a documented release, confirmed geography codes, matching indicator definitions, and the corresponding observations. Check catalog availability before choosing the comparison period.

Questions about UNESCO UIS country and region codes in opencode

Can opencode use UNESCO UIS country and region codes?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run UNESCO UIS country and region codes like any built-in tool.

How much does UNESCO UIS country and region codes 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 UNESCO UIS country and region codes in opencode?

No. Spiral runs UNESCO UIS country and region codes on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up UNESCO UIS country and region codes in opencode?

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

Does opencode wait while UNESCO UIS country and region codes runs?

UNESCO UIS country and region codes runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

What subjects does UNESCO UIS cover?

UIS publishes internationally comparable statistics on education, science, culture, and communication. Its indicator metadata identifies the theme and available time range for a particular measure.

Does every indicator cover every country?

The November 2026 education release covers 240 countries and territories overall. Each indicator has its own availability information, so that total should not be read as complete coverage for every measure.

How often does UIS update education statistics?

Beginning in 2026, the main education release is scheduled for November, followed by a refresh in May of the subsequent year. Check the indicator's last data update and available years when choosing a series.

How far back do the statistics go?

UIS reports a time range for each indicator rather than one history window for the entire catalog. Inspect that range for the measure you need before requesting a historical comparison.

How can I check whether two statistics are comparable?

UIS methodological metadata includes the calculation method, data sources, disaggregations, quality assurance, and limitations. Use those details to check that the measures use compatible definitions and populations.

Get started

Start using UNESCO UIS country and region codes in opencode

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

Paste this into opencode:

Set up opencode

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