# SAM.gov Vendor Screening — Exclusions & Registration Check (`leadharbor/sam-gov-vendor-screening`) Actor

Screen subcontractors/vendors against the SAM.gov exclusions (debarment) list and check SAM registration status + expiry. Built for government contractors who must screen before teaming. Clean, timestamped audit report.

- **URL**: https://apify.com/leadharbor/sam-gov-vendor-screening.md
- **Developed by:** [Mohammed Samaan](https://apify.com/leadharbor) (community)
- **Categories:** Other, News, Automation
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.00005 / actor start

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## SAM.gov Vendor Screening — Exclusions & Registration Check

Screen any list of subcontractors or vendors against the **SAM.gov exclusions
(debarment) list** and check each one's **SAM registration status and expiry** —
in one run, with a clean, timestamped report you can keep as an **audit record**.

Built for **government contractors** (primes, mid-size GovCon firms, grant
recipients) who are required to screen vendors *before teaming* and re-verify on
a schedule. Missing an excluded vendor can mean penalties up to **$100,000 per
item plus treble damages** — this turns that scary, recurring chore into a
30-second check.

> ⚖️ **This is a screening aid, not legal advice.** It surfaces official SAM.gov
> data plus an audit timestamp. Always confirm a potential match by UEI on
> SAM.gov before acting on it. You own the final decision.

### What you get per vendor

| Field | Meaning |
|---|---|
| `risk` | Plain verdict: CLEAR / REVIEW / **EXCLUDED — DO NOT TEAM** / REGISTRATION EXPIRED / EXPIRING SOON / NOT IN SAM |
| `excluded` | Exclusion-list result: CLEAR / REVIEW / EXCLUDED |
| `exclusionMatches` | Any possible debarment matches (name, type, excluding agency) |
| `registrationStatus` | Active / Expired / NOT_FOUND |
| `registrationExpiration` + `daysUntilExpiration` | When SAM registration lapses |
| `uei` | Unique Entity ID (when found) |
| `checkedAt` | UTC audit timestamp — proof of when you screened |

### Input

| Field | What it does |
|---|---|
| `vendors` | One company per line. Add the 12-char UEI for exact matching: `Acme Corp \| ZQGGHJH74DW7` |
| `samApiKey` | **Your free SAM.gov public API key** (see below) |
| `checkExclusions` | Screen the debarment list (default on) |
| `checkRegistration` | Check registration status + expiry (default on) |
| `expiringWithinDays` | Flag registrations lapsing within N days (default 60) |

### Getting your free SAM.gov API key (2 minutes)

1. Sign in (or register free) at **sam.gov**
2. Open **Account Details** (top-right, under your name)
3. Enter your password to reveal the **Public API Key**
4. Copy it into the `samApiKey` field

The API and the data are free; you only pay this actor's per-vendor run fee.

### How it works

For each vendor we call SAM.gov's **official** Exclusions API and Entity
Management API (no scraping, no anti-bot fragility), normalize company-name
variants (Inc/LLC/Ltd etc.), classify the risk, and write one tidy row with the
audit timestamp. Exact-name exclusion hits are flagged EXCLUDED; partial hits
are flagged REVIEW so a human can verify by UEI.

### Pricing

Pay-per-result: a small fee per **vendor screened**. Re-run monthly to stay
compliant — most teams screen the same vendor list every billing cycle, so it's
recurring by nature.

### Compliance & fair use

Uses only public SAM.gov data via the official API. This tool helps you *find
and document* potential exclusions and registration lapses; it does **not** make
eligibility determinations and is **not** legal advice. Confirm matches on
SAM.gov before relying on them.

### Deploy

See [`DEPLOY.md`](./DEPLOY.md) — push it live with the Apify CLI in ~5 minutes.

# Actor input Schema

## `vendors` (type: `array`):

One company per line. Optionally add the 12-char UEI for an exact match, e.g. "Acme Corp | ZQGGHJH74DW7".
## `samApiKey` (type: `string`):

Get one free: sign in at sam.gov → Account Details → 'Public API Key'. Used to call SAM's official API.
## `checkExclusions` (type: `boolean`):

Flag vendors that appear on the federal exclusions list. This is the screening you legally must do before teaming.
## `checkRegistration` (type: `boolean`):

Report whether the vendor's SAM registration is Active and when it expires.
## `expiringWithinDays` (type: `integer`):

Mark a vendor 'EXPIRING SOON' if its SAM registration lapses within this many days.
## `apiBase` (type: `string`):

Leave as default. Use https://api-alpha.sam.gov/entity-information for SAM's alpha/testing environment.

## Actor input object example

```json
{
  "vendors": [
    "Acme Corporation"
  ],
  "checkExclusions": true,
  "checkRegistration": true,
  "expiringWithinDays": 60,
  "apiBase": "https://api.sam.gov/entity-information"
}
````

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "vendors": [
        "Acme Corporation"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("leadharbor/sam-gov-vendor-screening").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "vendors": ["Acme Corporation"] }

# Run the Actor and wait for it to finish
run = client.actor("leadharbor/sam-gov-vendor-screening").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "vendors": [
    "Acme Corporation"
  ]
}' |
apify call leadharbor/sam-gov-vendor-screening --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=leadharbor/sam-gov-vendor-screening",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "SAM.gov Vendor Screening — Exclusions & Registration Check",
        "description": "Screen subcontractors/vendors against the SAM.gov exclusions (debarment) list and check SAM registration status + expiry. Built for government contractors who must screen before teaming. Clean, timestamped audit report.",
        "version": "0.1",
        "x-build-id": "rvemcI5ad0m3zz7uI"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/leadharbor~sam-gov-vendor-screening/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-leadharbor-sam-gov-vendor-screening",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/leadharbor~sam-gov-vendor-screening/runs": {
            "post": {
                "operationId": "runs-sync-leadharbor-sam-gov-vendor-screening",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/leadharbor~sam-gov-vendor-screening/run-sync": {
            "post": {
                "operationId": "run-sync-leadharbor-sam-gov-vendor-screening",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "vendors",
                    "samApiKey"
                ],
                "properties": {
                    "vendors": {
                        "title": "Vendors to screen",
                        "type": "array",
                        "description": "One company per line. Optionally add the 12-char UEI for an exact match, e.g. \"Acme Corp | ZQGGHJH74DW7\".",
                        "items": {
                            "type": "string"
                        }
                    },
                    "samApiKey": {
                        "title": "Your free SAM.gov API key",
                        "type": "string",
                        "description": "Get one free: sign in at sam.gov → Account Details → 'Public API Key'. Used to call SAM's official API."
                    },
                    "checkExclusions": {
                        "title": "Check the exclusions (debarment) list",
                        "type": "boolean",
                        "description": "Flag vendors that appear on the federal exclusions list. This is the screening you legally must do before teaming.",
                        "default": true
                    },
                    "checkRegistration": {
                        "title": "Check SAM registration status + expiry",
                        "type": "boolean",
                        "description": "Report whether the vendor's SAM registration is Active and when it expires.",
                        "default": true
                    },
                    "expiringWithinDays": {
                        "title": "Flag registrations expiring within (days)",
                        "minimum": 1,
                        "maximum": 365,
                        "type": "integer",
                        "description": "Mark a vendor 'EXPIRING SOON' if its SAM registration lapses within this many days.",
                        "default": 60
                    },
                    "apiBase": {
                        "title": "SAM API base URL (advanced)",
                        "type": "string",
                        "description": "Leave as default. Use https://api-alpha.sam.gov/entity-information for SAM's alpha/testing environment.",
                        "default": "https://api.sam.gov/entity-information"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
