[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [IBGE country statistics](https://spiral.ai/integrations/claude-code/ibge-country-statistics)

# How to Use IBGE country statistics in Claude Code

Fetch country profiles and international indicator series published by IBGE. Use it to compare national statistics or add country context to a report, rather than search for news coverage.

|  |  |
| --- | --- |
| Model | IBGE country statistics |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with IBGE country statistics in Claude Code

- Use IBGE country statistics to retrieve country profiles, select Brazil, Argentina, and Chile from the results, and build a comparison table in this project.
- Use IBGE country statistics to retrieve total GDP series, select Brazil and Argentina from the results, and chart their available common years.
- Use IBGE country statistics to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from IBGE country statistics and tell me what changed since last week.
- Check IBGE country statistics and summarize what you find in three bullet points.

## How to set up IBGE country statistics 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 IBGE country statistics**: 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": "servicodados-ibge-gov-br/official-statistics/paises",
    "input": {
      "paises": [
        "<paises>"
      ]
    }
  }'
```

Then paste one of the prompts above: Claude Code finds IBGE country statistics on Spiral, shows the price and runs it.

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

## IBGE country statistics tools and prices

- [IBGE service data API · Paises](https://spiral.ai/tools/alexandria/servicodados-ibge-gov-br/official-statistics/paises) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| lang | EN, ES | — | EN or ES for translated names; default PT. |
| periodo |  | — | Restrict the series to one period (year). Pattern: ^[0-9]{4}$. |
| indicadores |  | — | Indicator ids (77819.. 77862; 77823 = GDP per capita). When given, `indicadores` in the output carries the series. |

## What can you do with IBGE country statistics in Claude Code?

Build a Brazil research view with IBGE reporting or country comparison tables. A coding agent can turn the returned material into components and reports that fit your project.

### Brazil market brief

Combine IBGE reporting on Brazil’s economy with country GDP and population context for a market research brief.

### Population research

Find IBGE reporting about population and use country indicators to put Brazil’s results in an international comparison.

### Economics teaching material

Build a lesson around an IBGE statistical release, then compare country GDP figures in a separate exercise.

### Evidence for a policy memo

Gather IBGE reporting on a policy topic and add international indicators that give the Brazilian findings context.

### Country comparison table

Compare countries using the same indicator and period, with country profiles beside the results.

## Overview

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

## IBGE country statistics in other agents

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

## More Claude Code guides

- [IBGE CNAE industry classification](https://spiral.ai/integrations/claude-code/ibge-cnae-industry-classification)
- [IBGE geographic boundaries](https://spiral.ai/integrations/claude-code/ibge-geographic-boundaries)
- [Hyperliquid vault details](https://spiral.ai/integrations/claude-code/hyperliquid-vault-details)
- [IBGE locality details](https://spiral.ai/integrations/claude-code/ibge-locality-details)
- [Hyperliquid recent trades](https://spiral.ai/integrations/claude-code/hyperliquid-recent-trades)
- [IBGE locality search](https://spiral.ai/integrations/claude-code/ibge-locality-search)

## Questions about IBGE country statistics in Claude Code

**Can Claude Code use IBGE country statistics?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run IBGE country statistics like any built-in tool.

**How much does IBGE country statistics 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 IBGE country statistics in Claude Code?**

No. Spiral runs IBGE 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 IBGE country statistics in Claude Code?**

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

**Does Claude Code wait while IBGE country statistics runs?**

IBGE country statistics runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

**Does IBGE cover countries beyond Brazil?**

Yes. IBGE describes its Países coverage as 193 states recognized by the United Nations; its news service covers IBGE surveys, studies, and products.

**Does IBGE produce every statistic it publishes?**

Its country statistics include information from international organizations such as the United Nations and World Bank. That differs from IBGE news about the institute’s own surveys, studies, and products.

**How are IBGE’s international figures updated?**

IBGE describes automatic imports when country data changes at the original source. This describes the update mechanism, not a guaranteed daily or hourly refresh schedule.

**Which subjects does IBGE’s international data cover?**

Países uses six themes: economy, social indicators, environment, population, networks, and health. Country profiles also include territory, currency, and language.

**Does IBGE offer historical comparisons?**

Países supports historical indicator series and country rankings. Use those series for comparisons over time, and IBGE news for reporting about published results.

