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

# How to Use Data Legion company workforce search in opencode

Returns matching company profiles with workforce analytics, including employee growth, hiring, departures, and monthly headcount history. Use it to find businesses by workforce characteristics and compare their trends.

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

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

- Use Data Legion company workforce search to find US software companies with positive employee growth over the available 12-month window and add their returned workforce metrics to this project's research view.
- Use Data Legion company workforce search 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 search and tell me what changed since last week.
- Check Data Legion company workforce search and summarize what you find in three bullet points.
- Pull the newest data from Data Legion company workforce search and give me the result as a table.

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

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

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

## Data Legion company workforce search tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 3 | 1 | Rows to return, in place of a LIMIT clause. Default 1. This product stops at 3 so the quote stays within 125 credits. The vendor's own maximum is 100. |
| offset | 0 to 10000 | 0 | Rows to skip. 0 to 10000. Ordering can change between Data Legion builds. |
| titlecase |  | — | When true, Data Legion title-cases display text. Identifiers, URLs, and codes stay as stored. |
| pretty_print |  | — | When true, Data Legion indents the JSON body. |
| exclude_fields |  | — | Comma-separated fields to drop after include_fields. |
| include_fields |  | — | Comma-separated fields to keep. Omitted means the whole record. |

## What can you do with Data Legion company workforce search 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 search in other agents

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

## More opencode guides

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

## Questions about Data Legion company workforce search in opencode

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

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

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

Up to $0.209508 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 search in opencode?**

No. Spiral runs Data Legion company workforce search 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 search in opencode?**

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

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

Data Legion company workforce search 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.

