[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [BLS unemployment rate](https://spiral.ai/integrations/opencode/bls-unemployment-rate)

# How to Use BLS unemployment rate in opencode

Returns unemployment-rate observations for the nation, a state, or a county, plus the resolved series ID. Use it for a geographic unemployment comparison without first finding the series yourself.

|  |  |
| --- | --- |
| Model | BLS unemployment rate |
| 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 BLS unemployment rate in opencode

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

## How to set up BLS unemployment rate 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 BLS unemployment rate**: 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": "bls-gov/economic-statistics/bls_unemployment_rate",
    "input": {
      "end_year": 1900
    }
  }'
```

Then paste one of the prompts above: opencode finds BLS unemployment rate on Spiral, shows the price and runs it.

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

## BLS unemployment rate tools and prices

- [BLS labor statistics · Bls unemployment rate](https://spiral.ai/tools/alexandria/bls-gov/economic-statistics/bls_unemployment_rate) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| end_year | 1900 to 2100 | — | end_year |
| start_year | 1900 to 2100 | — | start_year |
| state_fips |  | — | 2-digit state FIPS (06 California, 48 Texas, 36 New York). Omit for the national rate. Pattern: ^[0-9]{2}$. |
| county_fips |  | — | 3-digit county FIPS within the state; requires state_fips. Pattern: ^[0-9]{3}$. |
| seasonally_adjusted |  | — | Default true for nation and state; must be false or omitted for counties. |

## What can you do with BLS unemployment rate in opencode?

Build a U.S. economic dashboard with inflation, unemployment, and local employment and wage context. Have the agent map BLS series descriptions into the project's labels before adding charts and comparison tables.

### Build an economic dashboard

Discover suitable BLS programs and benchmark series, inspect their definitions, and combine inflation and unemployment histories with QCEW employment and wage tables. Check QCEW publication status before refreshing the local figures.

### Compare locations for a business expansion

Compare county unemployment and industry employment and wages, with regional inflation as context. Use survey discovery and series definitions to select comparable benchmarks, inspect individual QCEW records, and refresh the comparison when publications change.

### Prepare a county economic needs statement

Find and document the BLS measures needed for a grant narrative. Combine unemployment history, local industry employment and wages, and consumer-price changes, then verify selected records and check whether newer QCEW data are available.

### Publish a regional business report

Select standard BLS benchmarks and discover industry-specific series for the report. Pair inflation and unemployment trends with QCEW tables and selected records, and check publication status before updating the report.

## Overview

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

## BLS unemployment rate in other agents

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

## More opencode guides

- [BLS top picks](https://spiral.ai/integrations/opencode/bls-top-picks)
- [Banco Central do Brasil Focus forecasts](https://spiral.ai/integrations/opencode/banco-central-do-brasil-focus-forecasts)
- [BLS time series observations](https://spiral.ai/integrations/opencode/bls-time-series-observations)
- [Banco Central do Brasil Olinda service details](https://spiral.ai/integrations/opencode/banco-central-do-brasil-olinda-service-details)
- [BLS survey directory](https://spiral.ai/integrations/opencode/bls-survey-directory)
- [Banco Central do Brasil PTAX currency directory](https://spiral.ai/integrations/opencode/banco-central-do-brasil-ptax-currency-directory)

## Questions about BLS unemployment rate in opencode

**Can opencode use BLS unemployment rate?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run BLS unemployment rate like any built-in tool.

**How much does BLS unemployment rate 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 BLS unemployment rate in opencode?**

No. Spiral runs BLS unemployment rate on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up BLS unemployment rate in opencode?**

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

**Does opencode wait while BLS unemployment rate runs?**

BLS unemployment rate runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Are all BLS statistics published monthly?**

No. National CPI indexes are monthly, but local CPI schedules differ: Houston is published in even-numbered months, while New York and Los Angeles are monthly.

**Does BLS Top Picks include every available series?**

No. BLS programs select Top Picks to satisfy commonly requested survey data. The full survey catalogs are the place to look for more specific measures.

**What identifies the population or product behind a BLS series?**

The series catalog describes the measure. Depending on the survey, its characteristics can include occupation, age, or product, so similar titles can describe different populations or items.

