[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [SAM.gov registered business search](https://spiral.ai/integrations/n8n/sam-gov-registered-business-search)

# How to Use SAM.gov registered business search in n8n

Returns public entity registrations matching a business name, industry, or location. Use it to find potential suppliers and resolve their identifiers before checking individual records.

|  |  |
| --- | --- |
| Model | SAM.gov registered business search |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with SAM.gov registered business search in n8n

- Every Monday at 9am: use SAM.gov registered business search to look this up and give me the result as a table.
- Pull the latest numbers from SAM.gov registered business search and tell me what changed since last week.
- Check SAM.gov registered business search and summarize what you find in three bullet points.
- Pull the newest data from SAM.gov registered business search and give me the result as a table.
- Check SAM.gov registered business search every morning and tell me only when something changed.

## How to set up SAM.gov registered business search in n8n

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

### Use the Spiral skill

1. **Send n8n 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 Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run SAM.gov registered business search in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds SAM.gov registered business search, prices it and runs it each time the step fires.

### 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 SAM.gov registered business 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": "sam-gov/opportunities/entities_search",
    "input": {
      "city": "<city>"
    }
  }'
```

Then paste one of the prompts above: n8n finds SAM.gov registered business search on Spiral, shows the price and runs it.

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

## SAM.gov registered business search tools and prices

- [SAM.gov · Entities search](https://spiral.ai/tools/alexandria/sam-gov/opportunities/entities_search) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| city |  | — | Physical-address city. |
| page | 0 to 9999 | — | 0-based page (default 0); page * size may not exceed 10,000. |
| size | 1 to 10 | — | Records per page, 1 to 10 (SAM.gov's hard limit; default 10). |
| state |  | — | Physical-address state or province code (VA, CA ...). Pattern: ^[A-Za-z]{2}$. |
| uei_sam |  | — | Twelve-character Unique Entity ID. Pattern: ^[A-Za-z0-9]{12}$. |
| cage_code |  | — | Five-character CAGE code. Pattern: ^[A-Za-z0-9]{5}$. |

## What can you do with SAM.gov registered business search in n8n?

Keep a procurement watch current as notices, business registrations, and exclusion publications change. Compare each run with earlier results to surface bids needing attention and supplier records needing review.

### Prepare a bid qualification brief

Find relevant federal notices, read their requirements and deadlines, resolve potential suppliers, and check known businesses for exclusion records before a bid review.

### Build a teaming shortlist

Compare a notice's scope with registered businesses in the relevant industry. Retrieve candidate registrations by identifier and compare the business shortlist against active firm exclusions.

### Maintain a supplier directory

Check for a new monthly registration baseline, collect subsequent registration changes, and resolve business records through searches and identifier lookups. Refresh business exclusion matches when a new exclusions snapshot appears.

### Populate an internal procurement research portal

Present federal opportunity shortlists beside searchable public business registrations. Use extract publication checks to manage baseline refreshes and display active firm exclusion matches for supplier review.

### Reconcile supplier data imports

Compare imported business records with registration searches, identifier lookups, and subsequent changes. Check which extract publications underlie the import, then investigate firm exclusion matches individually.

## Overview

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

## SAM.gov registered business search in other agents

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

## More n8n guides

- [SAM.gov monthly entity extract status](https://spiral.ai/integrations/n8n/sam-gov-monthly-entity-extract-status)
- [SAM.gov registration changes](https://spiral.ai/integrations/n8n/sam-gov-registration-changes)
- [SAM.gov entity registration lookup](https://spiral.ai/integrations/n8n/sam-gov-entity-registration-lookup)
- [Socrata dataset details](https://spiral.ai/integrations/n8n/socrata-dataset-details)
- [SAM.gov daily exclusions extract status](https://spiral.ai/integrations/n8n/sam-gov-daily-exclusions-extract-status)
- [Socrata dataset records](https://spiral.ai/integrations/n8n/socrata-dataset-records)

## Questions about SAM.gov registered business search in n8n

**Can n8n use SAM.gov registered business search?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run SAM.gov registered business search like any built-in tool.

**How much does SAM.gov registered business search cost in n8n?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need an Alexandria account to use SAM.gov registered business search in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs SAM.gov registered business search on its own Alexandria account.

**How long does it take to set up SAM.gov registered business search in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while SAM.gov registered business search runs?**

SAM.gov registered business search runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**What does SAM.gov cover?**

SAM.gov publishes federal procurement notices, entity registrations, and exclusions. Its contract notices include presolicitations, solicitations, award notices, and sole-source notices; it directs grant searches to Grants.gov.

**What information is public in entity registrations?**

Public registration data includes business names, UEIs, registration details, addresses, business types, and industry classifications such as NAICS. These are registration records for entities doing business with the federal government.

**Can an entity search return every matching registration?**

The Entity Management API returns ten records per page and stops at the first 10,000 matches. For a broad business search, narrow the geography or industry before collecting additional pages.

**When does the monthly entity extract change?**

GSA processes monthly entity extracts on the first Sunday of each month. A monthly publication is a baseline for that publication date, rather than a continuous stream of registration changes.

**Does the exclusions extract include past exclusions?**

The extract contains currently open exclusions. It is suitable for reviewing the published active list, but it does not provide a complete history of terminated exclusions.

