[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [World Happiness Report country rankings](https://spiral.ai/integrations/n8n/world-happiness-report-country-rankings)

# How to Use World Happiness Report country rankings in n8n

Returns an edition's country ranks, three-year average life evaluation scores, and explanatory factors. Use it to compare countries within the same report period.

|  |  |
| --- | --- |
| Model | World Happiness Report country rankings |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with World Happiness Report country rankings in n8n

- Each month, use World Happiness Report country rankings to check Finland and Denmark's 2026 scores and ranks, and report any changes from the previous retrieval.
- Each quarter, use World Happiness Report country rankings to refresh the complete 2026 ranking table and report changes in its country coverage.
- Every Monday at 9am: use World Happiness Report country rankings to look this up and give me the result as a table.
- Pull the latest numbers from World Happiness Report country rankings and tell me what changed since last week.
- Check World Happiness Report country rankings and summarize what you find in three bullet points.

## How to set up World Happiness Report country rankings in n8n

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

### Use the Spiral skill

1. **Send n8n 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 Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run World Happiness Report country rankings in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds World Happiness Report country rankings, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run World Happiness Report country rankings**: One request; the result comes back by polling or a webhook.

```bash
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": "worldhappiness-report/happiness/rankings",
    "input": {
      "cursor": "<cursor>"
    }
  }'
```

Then paste one of the prompts above: n8n finds World Happiness Report country rankings on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## World Happiness Report country rankings tools and prices

- [World Happiness Report · Rankings](https://spiral.ai/tools/alexandria/worldhappiness-report/happiness/rankings) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| cursor |  | — | next_cursor from the previous page; encodes the edition. Pattern: ^v1:[0-9]{4}:[0-9]{1,4}$. |
| edition | 2013 to 2031 | — | Report year (2013–2026 published). Required unless cursor is given. |
| countries |  | — | Optional ISO3 filter; unranked codes are reported in warnings. |
| page_size | 1 to 50 | 20 | page_size |
| include_factors |  | — | false skips the per-country detail calls (faster; explained_by and factors are null). |

## What can you do with World Happiness Report country rankings in n8n?

Keep a country wellbeing briefing current as World Happiness Report records change. A scheduled agent can compare geography lists, edition metadata, rankings, and annual indicators with its previous retrieval.

### Country comparison brief

Compare Finland and Denmark using report-period scores and annual histories. Match their geography codes and attach the edition's citation and appendix links.

### Happiness map with country histories

Prepare country labels and codes for a map, add a selected edition's rankings, and show annual histories when readers select a country. Include links to the original report data.

### Report update briefing

Check for changes in available editions, geography listings, ranking tables, and annual indicators. Produce a briefing that identifies what changed and links to the supporting appendices.

### Classroom comparison worksheet

Build a worksheet comparing Canada, Australia, and New Zealand. Include geography identifiers, report rankings, annual score tables, and source downloads for students to inspect.

### Published ranking fact-check

Check claims about countries' positions in the 2026 report against its ranking table. Confirm geography names and locate the original download and citation.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## World Happiness Report country rankings in other agents

- [Amp](https://spiral.ai/integrations/amp/world-happiness-report-country-rankings)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/world-happiness-report-country-rankings)
- [Claude](https://spiral.ai/integrations/claude-desktop/world-happiness-report-country-rankings)
- [Claude Code](https://spiral.ai/integrations/claude-code/world-happiness-report-country-rankings)
- [Cline](https://spiral.ai/integrations/cline/world-happiness-report-country-rankings)
- [Codex](https://spiral.ai/integrations/codex/world-happiness-report-country-rankings)
- [Cursor](https://spiral.ai/integrations/cursor/world-happiness-report-country-rankings)
- [Devin](https://spiral.ai/integrations/devin/world-happiness-report-country-rankings)
- [dots](https://spiral.ai/integrations/dots/world-happiness-report-country-rankings)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/world-happiness-report-country-rankings)
- [Gemini](https://spiral.ai/integrations/gemini/world-happiness-report-country-rankings)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/world-happiness-report-country-rankings)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/world-happiness-report-country-rankings)
- [goose](https://spiral.ai/integrations/goose/world-happiness-report-country-rankings)
- [Grok](https://spiral.ai/integrations/grok/world-happiness-report-country-rankings)
- [Grok Build](https://spiral.ai/integrations/grok-build/world-happiness-report-country-rankings)
- [Hermes](https://spiral.ai/integrations/hermes/world-happiness-report-country-rankings)
- [Instinct](https://spiral.ai/integrations/instinct/world-happiness-report-country-rankings)
- [Manus](https://spiral.ai/integrations/manus/world-happiness-report-country-rankings)
- [Muse](https://spiral.ai/integrations/muse/world-happiness-report-country-rankings)
- [Muse Code](https://spiral.ai/integrations/muse-code/world-happiness-report-country-rankings)
- [Notion](https://spiral.ai/integrations/notion/world-happiness-report-country-rankings)
- [OpenClaw](https://spiral.ai/integrations/openclaw/world-happiness-report-country-rankings)
- [opencode](https://spiral.ai/integrations/opencode/world-happiness-report-country-rankings)
- [Perplexity](https://spiral.ai/integrations/perplexity/world-happiness-report-country-rankings)
- [Raycast](https://spiral.ai/integrations/raycast/world-happiness-report-country-rankings)
- [VS Code](https://spiral.ai/integrations/vscode/world-happiness-report-country-rankings)
- [Windsurf](https://spiral.ai/integrations/windsurf/world-happiness-report-country-rankings)
- [Zapier](https://spiral.ai/integrations/zapier/world-happiness-report-country-rankings)

## More n8n guides

- [World Happiness Report country history](https://spiral.ai/integrations/n8n/world-happiness-report-country-history)
- [World Happiness Report edition downloads](https://spiral.ai/integrations/n8n/world-happiness-report-edition-downloads)
- [World Happiness Report country codes](https://spiral.ai/integrations/n8n/world-happiness-report-country-codes)
- [civicAPI election forecast](https://spiral.ai/integrations/n8n/civicapi-election-forecast)
- [WRCC RAWS wind rose](https://spiral.ai/integrations/n8n/wrcc-raws-wind-rose)
- [civicAPI election race details](https://spiral.ai/integrations/n8n/civicapi-election-race-details)

## Questions about World Happiness Report country rankings in n8n

**Can n8n use World Happiness Report country rankings?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run World Happiness Report country rankings like any built-in tool.

**How much does World Happiness Report country rankings cost in n8n?**

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

**Do I need an Alexandria account to use World Happiness Report country rankings in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs World Happiness Report country rankings on its own Alexandria account.

**How long does it take to set up World Happiness Report country rankings in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while World Happiness Report country rankings runs?**

World Happiness Report country rankings runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**What does a happiness score measure?**

It measures how people evaluate their lives on a scale from 0 to 10, where 0 means the worst possible life and 10 means the best. The country score summarizes those self-assessments.

**How recent are the report's rankings?**

The 2026 rankings combine survey responses from 2023 through 2025. Read the report year separately from the years measured.

**Does the report cover every country?**

The 2026 rankings cover 147 countries, compared with 156 in 2013. Coverage changes between editions, so a ranking table is not a fixed worldwide census.

**How far back does the underlying data go?**

The 2026 statistical appendix describes life evaluation data covering 2005/06 through 2025. Countries and territories do not have observations in every year.

**How precise are country ranking positions?**

The report publishes 95% confidence intervals for each country's rank. Use those intervals in the original report to assess the uncertainty around a position.

