[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [IBGE locality details](https://spiral.ai/integrations/muse-code/ibge-locality-details)

# How to Use IBGE locality details in Muse Code

Returns the geographic record associated with an IBGE locality identifier. Use it to identify a place before joining Brazilian statistics or labeling a map.

|  |  |
| --- | --- |
| Model | IBGE locality details |
| 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 locality details in Muse Code

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

## How to set up IBGE locality details in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse 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 locality details**: 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/localidade",
    "input": {
      "ids": [
        "<ids>"
      ],
      "nivel": "regioes"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds IBGE locality details on Spiral, shows the price and runs it.

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

## IBGE locality details tools and prices

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

## What can you do with IBGE locality details in Muse Code?

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.

### Regional economic atlas

Find regional economic tables, inspect their coverage, and map published observations. Add CNAE definitions beside sector comparisons and publication dates beside the indicators.

### Sector research briefing

Prepare a briefing on Brazilian manufacturing or services using suitable statistical tables, their definitions, and CNAE labels. Identify the places being compared, map their boundaries, and show upcoming publications.

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

### Brazilian place reference map

List municipalities within a selected state, retrieve locality records, and draw their boundaries. Use the result as a geographic reference for regional reporting.

## Overview

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

## IBGE locality details in other agents

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

## More Muse Code guides

- [IBGE geographic boundaries](https://spiral.ai/integrations/muse-code/ibge-geographic-boundaries)
- [IBGE locality search](https://spiral.ai/integrations/muse-code/ibge-locality-search)
- [IBGE country statistics](https://spiral.ai/integrations/muse-code/ibge-country-statistics)
- [IBGE name frequency](https://spiral.ai/integrations/muse-code/ibge-name-frequency)
- [IBGE CNAE industry classification](https://spiral.ai/integrations/muse-code/ibge-cnae-industry-classification)
- [IBGE news and releases](https://spiral.ai/integrations/muse-code/ibge-news-and-releases)

## Questions about IBGE locality details in Muse Code

**Can Muse Code use IBGE locality details?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run IBGE locality details like any built-in tool.

**How much does IBGE locality details cost in Muse 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 Muse Code plan is separate.

**Do I need an Alexandria account to use IBGE locality details in Muse Code?**

No. Spiral runs IBGE locality details 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 locality details in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while IBGE locality details runs?**

IBGE locality details runs in the background. Muse Code 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.

