[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Data Legion company profile search](https://spiral.ai/integrations/muse-code/data-legion-company-profile-search)

# How to Use Data Legion company profile search in Muse Code

Returns matching company profiles with core details such as industry, size range, founding year, domains, and offices. Use it to build business lists from criteria when you do not already know which companies to look up.

|  |  |
| --- | --- |
| Model | Data Legion company profile 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 profile search in Muse Code

- Use Data Legion company profile search to find software companies with headquarters in Austin, Texas, and populate this project's comparison table with their names, domains, and size ranges.
- Use Data Legion company profile 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 profile search and tell me what changed since last week.
- Check Data Legion company profile search and summarize what you find in three bullet points.
- Pull the newest data from Data Legion company profile search and give me the result as a table.

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

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

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

## Data Legion company profile search tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 12 | 1 | Rows to return, in place of a LIMIT clause. Default 1. This product stops at 12 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 profile search in Muse Code?

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.

## Overview

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

## Data Legion company profile search in other agents

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

## More Muse Code guides

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

## Questions about Data Legion company profile search in Muse Code

**Can Muse Code use Data Legion company profile search?**

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

**How much does Data Legion company profile search cost in Muse Code?**

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 Muse Code plan is separate.

**Do I need an Alexandria account to use Data Legion company profile search in Muse Code?**

No. Spiral runs Data Legion company profile 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 profile search in Muse Code?**

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

**Does Muse Code wait while Data Legion company profile search runs?**

Data Legion company profile search runs in the background. Muse Code 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.

