[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [BLS time series observations](https://spiral.ai/integrations/vscode/bls-time-series-observations)

# How to Use BLS time series observations in VS Code

Returns dated observations and footnotes for specified BLS series. Use it to compare known inflation, employment, or wage series across the same period.

|  |  |
| --- | --- |
| Model | BLS time series observations |
| 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 time series observations in VS Code

- Use BLS time series observations to retrieve LNS14000000 and CES0000000001 for 2020 through 2024, then add separate unemployment and payroll charts to this project's dashboard.
- Use BLS time series observations to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from BLS time series observations and tell me what changed since last week.
- Check BLS time series observations and summarize what you find in three bullet points.
- Pull the newest data from BLS time series observations and give me the result as a table.

## How to set up BLS time series observations in VS Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS 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 BLS time series observations**: 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_series",
    "input": {
      "series_ids": [
        "<series_ids>"
      ]
    }
  }'
```

Then paste one of the prompts above: VS Code finds BLS time series observations on Spiral, shows the price and runs it.

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

## BLS time series observations tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| latest |  | — | Only the newest observation of each series. Not combined with a year window. |
| end_year | 1900 to 2100 | — | Last year; requires start_year. |
| start_year | 1900 to 2100 | — | First year; requires end_year, at most 10 years apart. |
| annual_average |  | — | Also return annual averages (period M13) for surveys that publish them. |

## What can you do with BLS time series observations in VS Code?

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.

### Research a consumer-price category

Start with a broad CPI category, then find more specific item series and inspect their descriptions. Retrieve the selected histories to compare how those indexes changed over the same period.

## Overview

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

## BLS time series observations in other agents

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

## More VS Code guides

- [BLS survey directory](https://spiral.ai/integrations/vscode/bls-survey-directory)
- [BLS top picks](https://spiral.ai/integrations/vscode/bls-top-picks)
- [BLS series search](https://spiral.ai/integrations/vscode/bls-series-search)
- [BLS unemployment rate](https://spiral.ai/integrations/vscode/bls-unemployment-rate)
- [BLS series details and history](https://spiral.ai/integrations/vscode/bls-series-details-and-history)
- [Banco Central do Brasil Focus forecasts](https://spiral.ai/integrations/vscode/banco-central-do-brasil-focus-forecasts)

## Questions about BLS time series observations in VS Code

**Can VS Code use BLS time series observations?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run BLS time series observations like any built-in tool.

**How much does BLS time series observations cost in VS 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 VS Code plan is separate.

**Do I need an Alexandria account to use BLS time series observations in VS Code?**

No. Spiral runs BLS time series observations 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 time series observations in VS Code?**

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

**Does VS Code wait while BLS time series observations runs?**

BLS time series observations runs in the background. VS Code 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.

