[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Data Legion company workforce lookup](https://spiral.ai/integrations/opencode/data-legion-company-workforce-lookup)

# How to Use Data Legion company workforce lookup in opencode

Returns a matched company profile with headcount history, hiring, departures, growth, turnover, and workforce breakdowns. Use it to assess a known company's workforce trends alongside its core business details.

|  |  |
| --- | --- |
| Model | Data Legion company workforce lookup |
| Available through | Alexandria |
| Category | Lead Gen |
| Price | Up to $0.069836 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Data Legion company workforce lookup in opencode

- Use Data Legion company workforce lookup for snowflake.com and build a chart in this project from the returned monthly headcount history.
- Use Data Legion company workforce lookup to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Data Legion company workforce lookup and tell me what changed since last week.
- Check Data Legion company workforce lookup and summarize what you find in three bullet points.
- Pull the newest data from Data Legion company workforce lookup and give me the result as a table.

## How to set up Data Legion company workforce lookup 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 Data Legion company workforce lookup**: 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": "datalegion/companies/enrich-premium",
    "input": {
      "name": "<name>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Data Legion company workforce lookup on Spiral, shows the price and runs it.

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

## Data Legion company workforce lookup tools and prices

- [Data Legion · Company enrichment (premium)](https://spiral.ai/tools/alexandria/datalegion/companies/enrich-premium) (Alexandria): Up to $0.069836 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| name |  | — | Company name (fuzzy matching) |
| domain |  | — | Company website domain (e.g., google.com) |
| industry |  | — | Industry filter (used with name matching for better accuracy) |
| legion_id |  | — | Company Legion ID (exact match) |
| titlecase |  | false | If true, format text fields in title case (names, company names, locations). Raw fields, IDs, URLs, codes, and confidence fields are excluded. |
| social_url |  | — | Social profile URL (LinkedIn, Facebook, Crunchbase, X/Twitter, GitHub - will be normalized and detected) |

## What can you do with Data Legion company workforce lookup in opencode?

Build a company comparison table in your app from Data Legion's industries, size ranges, founding years, domains, and offices. An agent can map returned profiles into your project's account records and add workforce history where available.

### Fill gaps in CRM accounts

Add industry, size range, founding year, domains, and office details to business accounts. Look up known companies or search for records that match your account criteria.

### Prepare company research briefs

Build a brief from company descriptions, industries, founding years, websites, and social profiles. Use the returned business details to prepare for a customer or partner meeting.

### Compare a business shortlist

Put prospective customers, suppliers, or partners side by side using company type, industry, size range, and founding year. Use lookups for a named shortlist or search to assemble candidates.

### Review business territories

Organize companies by their returned headquarters and office locations. Separate headquarters from other offices when deciding which businesses belong in a territory review.

### Monitor company workforce trends

Compare monthly headcount, hiring, departures, growth, and turnover for known businesses or a selected market. Review the available history before describing a change as a trend.

### Compare workforce composition

Compare companies by their aggregate seniority, job function, tenure, and education distributions. Use the results for employer research or business due diligence.

## Overview

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

## Data Legion company workforce lookup in other agents

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

## More opencode guides

- [Data Legion company profile search](https://spiral.ai/integrations/opencode/data-legion-company-profile-search)
- [Data Legion company workforce search](https://spiral.ai/integrations/opencode/data-legion-company-workforce-search)
- [Data Legion company profile lookup](https://spiral.ai/integrations/opencode/data-legion-company-profile-lookup)
- [Data Legion detailed professional profile](https://spiral.ai/integrations/opencode/data-legion-detailed-professional-profile)
- [Data Legion basic search with contact data](https://spiral.ai/integrations/opencode/data-legion-basic-search-with-contact-data)
- [Data Legion detailed professional search](https://spiral.ai/integrations/opencode/data-legion-detailed-professional-search)

## Questions about Data Legion company workforce lookup in opencode

**Can opencode use Data Legion company workforce lookup?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Data Legion company workforce lookup like any built-in tool.

**How much does Data Legion company workforce lookup cost in opencode?**

Up to $0.069836 per run. 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 Data Legion company workforce lookup in opencode?**

No. Spiral runs Data Legion company workforce lookup on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Data Legion company workforce lookup in opencode?**

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

**Does opencode wait while Data Legion company workforce lookup runs?**

Data Legion company workforce lookup runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**How many companies does Data Legion cover?**

Data Legion's published coverage exceeds 71 million company profiles. Coverage varies by field: its statistics page reports a primary website domain on 52% of records.

**How often does Data Legion refresh company data?**

Data Legion rebuilds its full dataset monthly. That is the published refresh schedule for the underlying company data.

**Does Data Legion collect information from private accounts?**

Data Legion says its records come from publicly available and commercially licensed sources. Its sourcing policy explicitly excludes scraping private accounts.

**Can I distinguish headquarters from other offices?**

Company locations identify the primary office as headquarters and indicate whether each office is still operating. That lets you distinguish a headquarters address from another office in the returned profile.

**How much workforce history does Data Legion provide?**

Premium company records can contain up to 60 months of headcount, hires, and departures. The series ends at the dataset's as-of month.

