[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [IBGE name frequency](https://spiral.ai/integrations/opencode/ibge-name-frequency)

# How to Use IBGE name frequency in opencode

Returns census-based frequency information for a specified first name by birth decade. Use it to study a name's historical popularity, with the census year stated clearly.

|  |  |
| --- | --- |
| Model | IBGE name frequency |
| 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 name frequency in opencode

- Use IBGE name frequency to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from IBGE name frequency and tell me what changed since last week.
- Check IBGE name frequency and summarize what you find in three bullet points.
- Pull the newest data from IBGE name frequency and give me the result as a table.
- Check IBGE name frequency every morning and tell me only when something changed.

## How to set up IBGE name frequency 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.

```bash
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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
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.

```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 name frequency**: 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/nomes",
    "input": {
      "nomes": [
        "<nomes>"
      ]
    }
  }'
```

Then paste one of the prompts above: opencode finds IBGE name frequency on Spiral, shows the price and runs it.

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

## IBGE name frequency tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| sexo | F, M | — | Restrict to a sex. |
| group_by | UF | — | `UF` splits the frequency by state (one item per UF with populacao, frequencia and proporcao). |
| localidade |  | — | IBGE code of an estado (35) or municipio (3550308); default Brazil. Pattern: ^[0-9]{1,7}$. |

## What can you do with IBGE name frequency in opencode?

Build a Brazil reference dashboard with statistical comparisons, geographic maps, industry definitions, and historical name charts. A coding agent can turn IBGE results into project data files and expose table coverage beside the charts.

### Public statistics reference portal

Build a portal with separate sections for economic indicators, industry definitions, geographic references, publication schedules, and historical name statistics. Let readers inspect the table definitions behind each statistical comparison.

### Newsroom data research desk

Support economic reporting with table discovery, definitions, observations, sector labels, geographic references, and release dates. Use historical name frequencies and rankings for separate census features.

### Historical name comparison

Compare the frequency of Maria or João across available birth decades and contrast those results with the leading names in the same place. Present the results as aggregate census history.

### Census names classroom exercise

Create an exercise that compares a chosen first name's frequency with a place's name rankings. Ask students to explain the difference between looking up one name and discovering the most frequent names.

## Overview

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

## IBGE name frequency in other agents

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

## More opencode guides

- [IBGE locality search](https://spiral.ai/integrations/opencode/ibge-locality-search)
- [IBGE news and releases](https://spiral.ai/integrations/opencode/ibge-news-and-releases)
- [IBGE locality details](https://spiral.ai/integrations/opencode/ibge-locality-details)
- [IBGE popular name rankings](https://spiral.ai/integrations/opencode/ibge-popular-name-rankings)
- [IBGE geographic boundaries](https://spiral.ai/integrations/opencode/ibge-geographic-boundaries)
- [IBGE release calendar](https://spiral.ai/integrations/opencode/ibge-release-calendar)

## Questions about IBGE name frequency in opencode

**Can opencode use IBGE name frequency?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run IBGE name frequency like any built-in tool.

**How much does IBGE name frequency 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 IBGE name frequency in opencode?**

No. Spiral runs IBGE name frequency 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 name frequency in opencode?**

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

**Does opencode wait while IBGE name frequency runs?**

IBGE name frequency runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does every IBGE statistic cover every municipality?**

No. Each statistical table supports its own geographic levels, so a table available nationally or by state may not offer municipal results. Its metadata defines that boundary.

**How often does IBGE publish new data?**

IBGE sets publication intervals separately for each statistical operation, including monthly, quarterly, and annual schedules. There is no single update schedule for all IBGE data.

**How far back can an IBGE statistical series go?**

History depends on the selected table. Table metadata specifies the valid period range, so two tables about the same subject can offer different starting dates.

**Are IBGE publication dates fixed?**

Dates can change. IBGE's 2025 work plan explicitly describes publication dates being changed up to 30 days before the release.

**What limits a large IBGE statistical query?**

The ibger documentation reports a documented ceiling of 100,000 values per request and observed failures above about 50,000. Split broad statistical requests into smaller periods or geographic selections.

