# SAM.gov Amendment Tracker: What Changed in Each Solicitation (`mdcurt/sam-gov-amendment-tracker`) Actor

Diffs every amended SAM.gov notice against its previous revision: deadline moves, set-aside and NAICS changes, Q\&A, revised scope, new attachments, cancellations. One verified signal per amendment, no API key.

- **URL**: https://apify.com/mdcurt/sam-gov-amendment-tracker.md
- **Developed by:** [Matthew Curtis](https://apify.com/mdcurt) (community)
- **Categories:** Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $14.00 / 1,000 amendment signals

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Amendment Tracker: What Changed in Each Solicitation

Diffs every amended SAM.gov notice against its previous revision and returns **one signal per amendment**: deadline moved (from → to, by how many days), set-aside or NAICS changed, questions & answers posted, revised scope / SF30 attached, place of performance changed, point of contact changed, attachments added or removed, cancellation. Each signal carries `whyItMatters`, a `materiality` (high / medium / low), a `confidence` (`verified` = read from SAM.gov's structured fields, `inferred` = classified from text or file names) and the full `changes[]` list with the old and new values. No API key, no login: it reads the same public JSON the sam.gov website uses.

Plain SAM.gov scrapers give you the current record; SAM.gov's own e-mail alerts tell you *that* a followed notice changed, hours later, one notice at a time. This Actor tells you **what** changed, across your whole NAICS or keyword feed, in seconds, and only charges for amendments that actually changed something material (revisions with nothing material are examined and dropped for free).

### What it does

1. Finds revisions (`modifications ≥ 1`) posted in the last `sinceDays` days that match your `query` / `naicsCodes`, or the notices on your `watchlist`.
2. Fetches the current revision and its immediate predecessor (every SAM.gov revision keeps its own id), plus both attachment lists.
3. Diffs structured fields (deadline, set-aside, NAICS, PSC, notice type, place of performance, contacts, cancelled/archived flags), the attachment list, and the description text (sentence-level delta, classified by rules).
4. Emits one record per amendment with the ranked `changes[]`, or nothing when the revision carried no material change.

Measured from the cloud (datacenter egress, 2026-11-08): first signal in 1.4–2.2 s, ~100–140 signals/minute, 5 requests per signal, 0 blocked in 1,100+ requests.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `watchlist` | string\[] | `[]` | Notices you are pursuing: sam.gov `/opp/<id>/view` URLs, 32-character notice ids, or solicitation numbers. Each returns what changed in its latest amendment (any date; an older revision URL is followed to the latest one). |
| `query` | string | `""` | SAM.gov keyword search (title + description), e.g. `janitorial`, `cybersecurity`, `HVAC`. Combined with `naicsCodes`. Empty = every amended notice in the window. |
| `naicsCodes` | string\[] | `[]` | NAICS codes to restrict the feed to your industry (2–6 digits, OR-ed): `561720`, `236220`, `541512`… |
| `sinceDays` | integer | 2 | Only amendments posted in the last N days (1–30). Daily monitor: 1–2. Weekly digest: 7. Watchlist entries ignore the window. |
| `maxSignals` | integer | 50 | Maximum signals to return (1–2000). Silent revisions do not count. |
| `proxyConfiguration` | object | Apify Proxy | Datacenter proxies work for sam.gov; RESIDENTIAL only if `SUMMARY.blocked > 0`. |

### Output

One record per amendment. Signal fields shared with the other mdcurt signal Actors: `id`, `kind`, `title`, `sourceUrl`, `observedAt` (ISO 8601), `affected`, `whyItMatters`, `confidence`, `changes[]`, `source`, `scrapedAt`.

| Field | Meaning |
|---|---|
| `id` | SAM.gov notice id of **this revision** (`sourceUrl` = `https://sam.gov/opp/<id>/view`) |
| `kind` | the most material change: `cancelled`, `cancellation-announced`, `deadline-shortened`, `set-aside-changed`, `naics-changed`, `deadline-extended`, `deadline-set`, `deadline-change-announced`, `scope-changed`, `set-aside-text-changed`, `notice-type-changed`, `qa-posted`, `site-visit`, `psc-changed`, `place-of-performance-changed`, `attachments-added`, `attachments-removed`, `contact-changed`, `archived`, `description-changed` |
| `materiality` | `high` (deadline, eligibility, scope, cancellation), `medium` (Q\&A, site visit, codes, attachments), `low` (contact, archive, unclassified text) |
| `confidence` | `verified` when at least one change comes from a structured field or the attachment list; `inferred` when only text classification fired |
| `changes[]` | every detected change: `kind`, `confidence`, `detail`, and `from` / `to` / `deltaDays` / `added[]` / `removed[]` / `addedSnippet` / `removedSnippet` / `matched` as applicable |
| `title`, `solicitationNumber`, `noticeType`, `agency`, `responseDeadline`, `setAside`, `naics[]`, `psc` | the notice as it stands after the amendment |
| `previousRevisionUrl`, `revision` | the revision it was compared against, and the amendment number |
| `affected` | who should care, e.g. `Vendors pursuing 68HE0926R0006 (SBA set-aside)` |
| `description` | ≤300-character snippet of the amended description (contact details redacted) |

```json
{
  "id": "55a70d0d80df4fb4999967023a323e33",
  "kind": "deadline-extended",
  "materiality": "high",
  "title": "F--Navajo Area - Abandoned Mines Response and Construction Services",
  "solicitationNumber": "68HE0926R0006",
  "noticeType": "Presolicitation",
  "agency": "ENVIRONMENTAL PROTECTION AGENCY / REGION 9 CONTRACTING OFFICE",
  "sourceUrl": "https://sam.gov/opp/55a70d0d80df4fb4999967023a323e33/view",
  "previousRevisionUrl": "https://sam.gov/opp/18e3f463133e4868b27dd2633c9e3f38/view",
  "observedAt": "2026-11-08T16:50:37+00:00",
  "revision": 2,
  "responseDeadline": "2027-01-05T16:30:00-05:00",
  "setAside": "SBA",
  "naics": ["562910"],
  "affected": "Vendors pursuing 68HE0926R0006 (SBA set-aside)",
  "whyItMatters": "More time to bid — or a sign the agency is reworking the requirement; read the amendment.",
  "confidence": "verified",
  "changes": [
    { "kind": "deadline-extended", "confidence": "verified", "detail": "Response deadline moved 64 days later (2026-11-02T16:30 → 2027-01-05T16:30).", "from": "2026-11-02T16:30:00-05:00", "to": "2027-01-05T16:30:00-05:00", "deltaDays": 64 },
    { "kind": "site-visit", "confidence": "inferred", "detail": "A site visit, pre-proposal conference or industry day was added or changed — attendance can be a condition of bidding.", "matched": "Industry Day", "addedSnippet": "The purpose of this pre-solicitation notice is to post the attached US EPA Region 9 Final Industry Day Flyer…" }
  ],
  "source": "sam.gov",
  "scrapedAt": "2026-11-08T21:39:43.258Z"
}
```

The key-value store holds a `SUMMARY` record: search pages, candidates, revisions examined, silent revisions (not charged), blocked pages, p95 latency, time to first signal and compute seconds. A 7-day, 149-signal run is in `examples/` (`sample-signals.json.gz`, `sample-signals.csv`).

### Pricing

Pay per event: **$0.02 per amendment signal** plus $0.005 per run start, with Store discounts on paid plans. A NAICS-filtered daily monitor typically yields 5–20 signals a day — $3–12 a month — against $99–249/month for procurement change-tracking SaaS and $500–2,500/year for GovCon intelligence platforms. Revisions without a material change are not emitted and cost nothing. One watchlist lookup costs under $0.03.

### Tutorials

#### Daily amendment monitor for your NAICS codes

Schedule the Actor daily with `{"naicsCodes": ["541512", "541519"], "sinceDays": 2, "maxSignals": 200}`. Every run returns the amendments of the last two days in your codes; a signal's `id` is the revision id, so a new amendment of the same notice is a new `id`. Pipe the dataset to Slack/e-mail with an Apify integration, or feed it to [mdcurt/dataset-diff-monitor](https://apify.com/mdcurt/dataset-diff-monitor) keyed on `id` to be alerted only on new signals. Filter on `materiality == "high"` for deadline, eligibility and scope changes only.

#### "What changed on the notices I'm bidding?"

Pass the notices you are pursuing: `{"watchlist": ["https://sam.gov/opp/8f5d49cfbe44484897d944427c772086/view", "W911SG27QA003"]}`. Each entry returns its latest amendment diffed against the previous revision, whatever its date; `previousRevisionUrl` opens the version you priced against.

#### Weekly digest for a capture team

`{"query": "janitorial", "sinceDays": 7, "maxSignals": 100}` — every amended janitorial solicitation of the week, ranked by `materiality`. Sort by `kind` to see deadline moves first.

### For AI agents

Pass a notice URL or id in `watchlist` (or a `query` / `naicsCodes` with `sinceDays`) and read the dataset: each record is one amendment with `kind`, `materiality`, `whyItMatters`, `confidence` and `changes[]` (old and new values). A single watchlist lookup answers "what changed on this solicitation?" in ~1.5 s for about $0.025 (start + one signal); an empty dataset with `SUMMARY.silentRevisions = 1` means the latest revision changed nothing material. The Actor needs only default dataset / key-value store / proxy permissions (works under limited permissions and agentic payments).

### Limitations

- SAM.gov's public search caps a result set at 10,000 records; narrow with `query` / `naicsCodes` for long windows.
- Text classification is rule-based (`inferred`); an unusual amendment wording lands in `description-changed` (low) — the `addedSnippet` tells you what was added. DLA/DIBBS clause-table notices change constantly in their machine-generated text; those deltas are ignored unless a structured field or attachment changed.
- Attachment contents are not opened (names only, ≤300-char text snippets only); contracting-officer e-mails and phone numbers are never output (names only).
- Weekend windows are quiet: most amendments post Monday–Friday.
- Reads sam.gov's public JSON endpoints without a key or login; the official `api.sam.gov` key-based API is not used.

### Changelog

- 1.0.0 (2026-11-08) — first release.

# Actor input Schema

## `watchlist` (type: `array`):

Notices you are pursuing. Each entry is a sam.gov /opp/<id>/view URL, a 32-character notice id, or a solicitation number (e.g. W911SG27QA0030). For each one the Actor returns what changed in its latest amendment (any date). Leave empty to scan the feed with query / naicsCodes instead.

## `query` (type: `string`):

Optional SAM.gov keyword search (title and description), e.g. janitorial, cybersecurity, HVAC. Combined with naicsCodes. Empty = every amended notice in the window.

## `naicsCodes` (type: `array`):

Optional NAICS codes to restrict the feed to your industry (2–6 digits, e.g. 561720, 236220, 541512). Several codes are OR-ed.

## `sinceDays` (type: `integer`):

Only amendments (revisions of an existing notice) posted within the last N days are examined (1–30). Run daily with 1–2 for a monitor; 7 for a weekly digest. Watchlist entries ignore this window.

## `maxSignals` (type: `integer`):

Maximum number of signals (one per amendment with a material change) to return, 1–2000. Revisions without a material change are not emitted and not charged.

## `proxyConfiguration` (type: `object`):

Apify Proxy settings. Datacenter proxies work for sam.gov (120/120 requests open in testing); switch to a RESIDENTIAL group only if the SUMMARY record reports blocked pages.

## Actor input object example

```json
{
  "watchlist": [],
  "query": "janitorial",
  "naicsCodes": [],
  "sinceDays": 2,
  "maxSignals": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `signals` (type: `string`):

One record per amended notice: kind (deadline-extended, deadline-shortened, set-aside-changed, qa-posted, scope-changed, attachments-added, cancelled …), materiality, whyItMatters, confidence (verified|inferred), changes\[] with from→to values, sourceUrl, previousRevisionUrl, observedAt.

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

SUMMARY record: search pages, candidates, revisions examined, silent revisions (no material change, not charged), blocked pages, p95 latency, time to first signal and compute seconds.

# 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 = {
    "watchlist": [],
    "query": "janitorial",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("mdcurt/sam-gov-amendment-tracker").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 = {
    "watchlist": [],
    "query": "janitorial",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("mdcurt/sam-gov-amendment-tracker").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 '{
  "watchlist": [],
  "query": "janitorial",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call mdcurt/sam-gov-amendment-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mdcurt/sam-gov-amendment-tracker"
        }
    }
}
```

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/3UKEBhTwFwrwbVzBA/builds/H3bbGs54A5mPaYiPX/openapi.json
