[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [World Happiness Report country history](https://spiral.ai/integrations/claude-code/world-happiness-report-country-history)

# How to Use World Happiness Report country history in Claude Code

Returns annual country indicators, including life evaluation, social support, and GDP per capita. Use it to study changes over time alongside the report's three-year averages.

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

## Prompts to try with World Happiness Report country history in Claude Code

- Use World Happiness Report country history to retrieve annual life evaluation and social support for 2010 through 2025, then build a chart in my project that lets readers select Finland when the returned data supports it.
- Use World Happiness Report country history to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from World Happiness Report country history and tell me what changed since last week.
- Check World Happiness Report country history and summarize what you find in three bullet points.
- Pull the newest data from World Happiness Report country history and give me the result as a table.

## How to set up World Happiness Report country history in Claude Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code 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.

```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 history**: 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/panel",
    "input": {
      "countries": [
        "<countries>"
      ]
    }
  }'
```

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

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## World Happiness Report country history tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| edition | 2013 to 2031 | — | Optional pin; must equal the dashboard's current vintage (latest data year + 1) or the call fails with not_found. |
| year_to | 2005 to 2030 | — | year_to |
| variables |  | — | Subset of variables to include; life_ladder is always included. Omit for all. |
| year_from | 2005 to 2030 | — | year_from |

## What can you do with World Happiness Report country history in Claude Code?

Build a country comparison page with geography codes, happiness scores, and report citations. A coding agent can turn the returned records into tables, maps, and annual history charts in your project.

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

### Long-term wellbeing study

Prepare annual life evaluation and social support data for Finland and Denmark. Resolve country identifiers and collect the report appendices needed to document the analysis.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## World Happiness Report country history in other agents

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

## More Claude Code guides

- [World Happiness Report country codes](https://spiral.ai/integrations/claude-code/world-happiness-report-country-codes)
- [World Happiness Report country rankings](https://spiral.ai/integrations/claude-code/world-happiness-report-country-rankings)
- [WRCC RAWS wind rose](https://spiral.ai/integrations/claude-code/wrcc-raws-wind-rose)
- [World Happiness Report edition downloads](https://spiral.ai/integrations/claude-code/world-happiness-report-edition-downloads)
- [WRCC RAWS station list](https://spiral.ai/integrations/claude-code/wrcc-raws-station-list)
- [civicAPI election forecast](https://spiral.ai/integrations/claude-code/civicapi-election-forecast)

## Questions about World Happiness Report country history in Claude Code

**Can Claude Code use World Happiness Report country history?**

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

**How much does World Happiness Report country history cost in Claude Code?**

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

**Do I need an Alexandria account to use World Happiness Report country history in Claude Code?**

No. Spiral runs World Happiness Report country history on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up World Happiness Report country history in Claude Code?**

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

**Does Claude Code wait while World Happiness Report country history runs?**

World Happiness Report country history runs in the background. Claude Code 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.

