# SAM.gov Exclusions Screener — Debarment / Exclusion Check (`reverential_haw/sam-exclusions-screener`) Actor

Screen vendor names, UEI, or CAGE codes against active federal exclusion/debarment records via the official SAM.gov Exclusions API v4. Requires a free api.sam.gov API key. Not a contract-opportunities scraper.

- **URL**: https://apify.com/reverential_haw/sam-exclusions-screener.md
- **Developed by:** [Finn McDonough](https://apify.com/reverential_haw) (community)
- **Categories:** Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 77.8% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 exclusion records

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SAM.gov Exclusions Screener — Debarment / Exclusion Check

**Screen vendor legal names, UEI, or CAGE codes against active federal exclusion and debarment records — structured JSON for GovCon compliance, procurement, and KYC workflows.**

Built on the **official SAM.gov Exclusions API v4** (`api.sam.gov/entity-information/v4/exclusions`). HTTP/JSON only.

> **This is not a SAM contract-opportunities scraper.** It screens **exclusions / debarments** only. Opportunity monitors are a separate, crowded niche.

***

### Who this is for

- **GovCon / subcontract compliance** teams batch-screening vendors before award
- **Grant officers & university procurement** verifying entity eligibility
- **Fintech / KYC** workflows that need federal exclusion hits as a signal
- **Internal audit** refreshing active exclusion watchlists on a schedule

### API key (required for live runs)

SAM Exclusions requires a **free** public API key:

1. Create / sign in at [SAM.gov](https://sam.gov/)
2. Open **Account Details** → generate a public API key ([api.sam.gov](https://api.sam.gov/) / GSA docs: [Exclusions API](https://open.gsa.gov/api/exclusions-api/))
3. Paste the key into the Actor input field **`apiKey`** (secret), or set env `SAM_API_KEY` / `API_DATA_GOV_KEY`

Personal keys have daily rate limits (see GSA docs). Use a system account key for higher volume.

Offline / CI: set `useFixture: true` — no key needed.

### What you get

Each dataset item is one exclusion match:

| Field | Example |
| --- | --- |
| `exclusionName` | Supreme Fuels GmbH & Co. KG |
| `ueiSAM` / `cageCode` | `KQKWLLDBMDL5` / CAGE when present |
| `exclusionType` | Ineligible (Proceedings Pending) |
| `classificationType` | Firm / Individual / … |
| `excludingAgency` | DEFENSE LOGISTICS AGENCY |
| `activationDate` / `terminationDate` | Agency action dates |
| `recordStatus` | Active |
| `ctCode` | Legacy CT code when present |
| `address` / `city` / `state` / `zip` / `country` | Primary address fields |

#### Sample output

```json
{
  "exclusionName": "Foxtrot Research Corp",
  "ueiSAM": "J27QHBBBL1V3",
  "cageCode": "1ABC2",
  "exclusionType": "Prohibition/Restriction",
  "classificationType": "Firm",
  "excludingAgency": "DEPT OF THE AIR FORCE",
  "activationDate": "10-30-2023",
  "recordStatus": "Active",
  "state": "FL",
  "country": "USA",
  "source": "sam-exclusions-v4"
}
```

### How to run

1. Set **`apiKey`** (unless using fixture mode).
2. Provide at least one screen key: **`exclusionName`**, **`ueiSAM`**, or **`cageCode`** (optional classification / state / country).
3. Keep **`recordStatus`: `Active`** for compliance screens.
4. Set **`maxItems`**. The API returns max 10 rows per page; the Actor paginates.

#### Example inputs

**Name screen**

```json
{
  "apiKey": "YOUR_KEY",
  "exclusionName": "Acme Construction",
  "recordStatus": "Active",
  "maxItems": 50
}
```

**UEI screen**

```json
{
  "apiKey": "YOUR_KEY",
  "ueiSAM": "KQKWLLDBMDL5",
  "maxItems": 10
}
```

**Offline fixture**

```json
{
  "useFixture": true,
  "maxItems": 3
}
```

### Pricing (PPE recommendation)

Screening buyers tolerate higher PPE than commodity scrapes.

| Event | Suggested FREE-tier price | Notes |
| --- | --- | --- |
| `apify-actor-start` | $0.00005 (platform default) | Keep default |
| `apify-default-dataset-item` | **$0.004 / match** ($4 / 1,000) | Primary event (band $0.003–0.005) |

### Why SAM Exclusions (legal / ToS)

- Public exclusion data via GSA’s documented [Exclusions API](https://open.gsa.gov/api/exclusions-api/).
- Respect published rate limits for personal vs system keys.
- Do not harvest D\&B-restricted fields beyond permitted open-data use (see GSA disclaimer on the API page).

### Limits & honesty

- API returns **Active** exclusions; historical/inactive rows are out of scope for this screener.
- Hard cap ~10,000 JSON records per query path (GSA); use specific names/UEIs for batch screens.
- A miss does not replace counsel or agency-specific exclusion lists (e.g. HHS-OIG LEIE).
- Fixture mode is for local/CI validation only.

### Related Actors (catalog)

- **NIH RePORTER Grants** — NIH award intel for university BD
- **Federal Register Monitor** — U.S. rules & notices
- **CPSC / NHTSA / openFDA recall monitors** — product & vehicle safety feeds

### Support

Open an issue on the Actor page. Target response: same business day.

# Actor input Schema

## `apiKey` (type: `string`):

Free public API key from https://api.sam.gov/ (Account Details). Also accepts samApiKey. Required for live runs; not needed for useFixture.

## `samApiKey` (type: `string`):

Alias for apiKey. Prefer apiKey.

## `exclusionName` (type: `string`):

Name to screen (firm or individual). Passed as exclusionName to the Exclusions API.

## `ueiSAM` (type: `string`):

12-character Unique Entity Identifier.

## `cageCode` (type: `string`):

Commercial and Government Entity code.

## `classificationType` (type: `string`):

Optional classification filter (Firm, Individual, Vessel, Special Entity Designation).

## `recordStatus` (type: `string`):

SAM Exclusions API returns Active records; keep Active for screening.

## `stateProvince` (type: `string`):

Optional 2-letter US state or foreign province name.

## `country` (type: `string`):

Optional 3-character country code (e.g. USA, DEU).

## `maxItems` (type: `integer`):

Maximum exclusion matches to return (API page size max 10; Actor paginates).

## `useFixture` (type: `boolean`):

When true, read fixtures/sample-sam-exclusions-response.json instead of calling SAM.gov. For local validation only.

## `fixturePath` (type: `string`):

Path to a fixture JSON file (relative to the Actor root).

## Actor input object example

```json
{
  "apiKey": "",
  "samApiKey": "",
  "exclusionName": "",
  "ueiSAM": "",
  "cageCode": "",
  "classificationType": "",
  "recordStatus": "Active",
  "stateProvince": "",
  "country": "",
  "maxItems": 100,
  "useFixture": false,
  "fixturePath": "fixtures/sample-sam-exclusions-response.json"
}
```

# Actor output Schema

## `overview` (type: `string`):

Tabular overview of the most useful dataset fields.

## `results` (type: `string`):

All normalized SAM exclusion records in the default dataset.

## `summary` (type: `string`):

JSON summary of items pushed and run metadata, stored in the default key-value store as OUTPUT_SUMMARY.

# 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 = {
    "apiKey": "",
    "samApiKey": "",
    "exclusionName": "",
    "ueiSAM": "",
    "cageCode": "",
    "stateProvince": "",
    "country": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("reverential_haw/sam-exclusions-screener").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 = {
    "apiKey": "",
    "samApiKey": "",
    "exclusionName": "",
    "ueiSAM": "",
    "cageCode": "",
    "stateProvince": "",
    "country": "",
}

# Run the Actor and wait for it to finish
run = client.actor("reverential_haw/sam-exclusions-screener").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "apiKey": "",
  "samApiKey": "",
  "exclusionName": "",
  "ueiSAM": "",
  "cageCode": "",
  "stateProvince": "",
  "country": ""
}' |
apify call reverential_haw/sam-exclusions-screener --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,reverential_haw/sam-exclusions-screener"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/OxVB3TCRd9wiYfN97/builds/TWYTxFuINrTTobf70/openapi.json
