# US Gov Contracts Radar (`bightsystems/us-gov-contracts-radar`) Actor

SAM.gov bids, federal contracts ending soon with incumbent shake-up signals, a daily Bid Digest, and an 8(a) Graduation List of firms exiting 8(a) with their live contracts. No seats, no annual contract: pay per run, full API. No API key. Free during launch.

- **URL**: https://apify.com/bightsystems/us-gov-contracts-radar.md
- **Developed by:** [Bight Systems](https://apify.com/bightsystems) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

## US Gov Contracts Radar

Find **open federal bids** and the **contracts about to be re-bid** in one run, and see **which incumbents may not be able to
win their recompete**. The Radar reads SAM.gov's official daily Contract Opportunities file and the USAspending.gov award
database, and can add **federal grants** from Grants.gov.

**New in 1.1:**

- **Daily Bid Digest**: only new bids since the last run, sorted into Pursue / Review / Skip, with deal-breaker flags. Delivered by
  email, Slack or webhook.
- **Recompete Shake-up Signals**: every contract ending soon gets a 0-100 score, with reasons and dated evidence, for whether the
  incumbent can still win on the same terms. It checks 8(a) exit, suspended or lapsed certifications, size for the NAICS,
  lapsed SAM registration, exclusions and the parent company.
- **8(a) Graduation List**: every publicly listed SBA 8(a) firm whose program term ends in your window, with its 8(a)
  contracts, what is still live, what runs past the exit date, and changes since your last run.

No SAM.gov account, no API key, no login. Works on the default Apify Proxy (used only for USAspending calls).

**Price and terms:** no seats, no annual contract and no export cap. You pay per run, only for the runs you make (during
launch that is just Apify platform usage; later, per result returned), the whole team can get the same Digest by email, Slack or webhook, and every row a run returns lands in your dataset
(up to 100,000 bids or 10,000 contracts per run), exportable as JSON, CSV or Excel or through the full Apify API.

> **Free during launch.** No Actor fee right now; you only pay normal Apify platform usage (about $0.01 per 1,000 rows in our tests).
> Pricing will be announced in advance in the Changelog and on the Pricing tab before it takes effect.

### What you get

| Source | Records | Typical use |
|---|---|---|
| **Open opportunities** (SAM.gov) | Solicitations, RFQs (combined synopsis), presolicitations, sources sought, special notices; award notices on request | A daily bid list in your NAICS / set-aside / state, soonest deadline first |
| **Contracts ending soon** (USAspending.gov) | Federal contracts whose current period of performance ends in your window (default 6–18 months) | Recompete planning: who holds the work now, how big it is, whether options can extend it, how it was competed |
| **Grants** (Grants.gov, optional) | Posted and forecasted federal grants | Grant pipelines for nonprofits, universities and small businesses |
| **8(a) graduations** (SBA + USAspending, optional) | 8(a) and 8(a) JV firms whose 8(a) term ends in your window (default 18 months), with their 8(a) awards | Recompete and teaming targets, 8(a) partner hunting, M\&A screening |

Contracts ending soon also carry **shake-up signals** (`shakeupScore`, `shakeupLevel`, `shakeupTags`, `shakeupReasons`), and
opportunities carry **bid triage** (`triage`, `flags`, `eligibility`) when the digest is on.

Every record has a `recordType` (`opportunity`, `expiringContract`, `grant`, `eightAGraduation`) and a public link back to the source.

#### Why this one

- **Recompete Shake-up Signals.** Incumbents are matched by UEI to SAM.gov's public entity and exclusion files, and their
  certifications are verified in SBA Small Business Search. Flags include 8(a) term ended or ending before the contract or its
  options end, a suspended or lapsed SDVOSB/WOSB/HUBZone certification, not small for this NAICS, a parent company that is
  not small, an expired SAM registration and active exclusions. Each flag has a reason, dates and links to check it.
- **Daily Bid Digest.** Run it on a schedule to get only new bids, triaged against your NAICS and certifications. Flags come
  from the notice text (not attachments), with the matching snippet as evidence.
- **Recompete radar with the incumbent.** Contract records carry the incumbent's name and UEI, obligated amount, base + all options
  value, current *and* potential end date (`optionsMayExtend`), set-aside, how it was competed, number of offers and the original
  solicitation number, linked to a SAM.gov search.
- **Only bids you can still answer.** About 45% of SAM.gov's "active" notices are past their response deadline; they are dropped
  by default (`openOnly`), and every notice has `daysUntilDeadline`.
- **Set-asides in plain words.** `SB`, `8A`, `WOSB`, `SDVOSB`, `HUBZONE`, `VOSB`, `INDIAN` group SAM.gov's 20+ codes
  (`setAsideGroup`), and the raw code is kept.
- **One row per solicitation.** Amendments are collapsed into the newest notice (`relatedNoticeCount`).
- **Honest state matching.** Only about a quarter of notices list a place of performance; the contracting office's state is used
  otherwise, and `stateSource` says which.
- **Only new since last run**, per watchlist, with `changeType` = `new` / `updated`.
- **Official public data only.** SAM.gov public files, USAspending API, Grants.gov API and SBA Small Business Search, all U.S. government public data.
  No D\&B-restricted entity data, no executive compensation, no logins.

### Quick start

Small-business and SDVOSB janitorial bids in Georgia, plus Georgia janitorial contracts ending in 6–18 months:

```json
{
  "sources": ["opportunities", "expiringContracts"],
  "naicsCodes": ["561720"],
  "states": ["GA"],
  "setAsides": ["SB", "SDVOSB"]
}
```

IT services recompetes over $1M at the VA, ending in the next 12 months, with full contract details:

```json
{
  "sources": ["expiringContracts"],
  "naicsCodes": ["5415"],
  "agencies": ["VA"],
  "minValue": 1000000,
  "endWithinMonthsFrom": 0,
  "endWithinMonthsTo": 12
}
```

Daily feed of new 8(a) and HUBZone construction solicitations in Texas (schedule it daily):

```json
{
  "sources": ["opportunities"],
  "naicsCodes": ["236", "237", "238"],
  "states": ["TX"],
  "setAsides": ["8A", "HUBZONE"],
  "noticeTypes": ["Solicitation", "Combined Synopsis/Solicitation"],
  "onlyNew": true,
  "monitorId": "tx-construction",
  "firstRunMode": "baseline"
}
```

Small-business-eligible health grants:

```json
{ "sources": ["grants"], "keywords": ["rural health"], "grantEligibilities": ["23"] }
```

### Daily Bid Digest (beta)

Turn the Radar into a morning bid alert. Set `digestMode: true`, your NAICS codes, states and set-aside certifications, and a
`webhookUrl` (Slack incoming webhook, Make, Zapier, n8n) or `emailTo`. Schedule it for weekdays at 7 AM ET.

Each run:

- **Only new bids.** Notices already sent by this `monitorId` are skipped; amended notices come back as updated.
- **Triage.** Every bid is sorted into **Pursue** (you're eligible and no deal-breakers were found), **Review** (a deal-breaker
  flag or an eligibility question), or **Skipped** (the set-aside doesn't match your certifications; hidden unless
  `digestIncludeSkipped`).
- **No-bid flags** read from the notice text: mandatory site visit or pre-bid meeting, security/facility clearance (DD 254),
  CMMC Level 2/3, intended sole-source award (dealbreakers); CMMC/NIST 800-171, bid/performance bonds, location or distance
  requirements, licenses, brand name, minimum experience, export control, deadline within 5 days (cautions); optional site visits,
  insurance, wage determinations, limitations on subcontracting (info). Each flag carries the sentence it came from.
  **Flags come from the notice text only, not attachments.** Read the full solicitation before deciding.
- **Eligibility.** The set-aside is matched against your certifications (SB, 8(a), WOSB, EDWOSB, SDVOSB, VOSB, HUBZone) and the
  NAICS code against yours. Size standards are not checked.
- **Delivery.** An HTML email, a Slack message (top 20), or a JSON webhook body; plus `DIGEST_HTML` in the run's storage and a
  Triage view in the dataset. Delivery problems are recorded as run notes and never fail the run. `deliveryDryRun` previews
  without sending.

Email uses the `apify/send-mail` Actor under your own account. If you'd rather use Gmail, leave `emailTo` empty and add Apify's
Gmail integration to the Task. For Google Sheets, add the `lukaskrivka/google-sheets` integration (append mode) or point
`webhookUrl` at a Make/Zapier "add row" scenario. A ready-made Task + Schedule input is in `store-assets/digest-task-template.json`.

### Recompete Shake-up Signals (beta)

Every contract ending soon gets a **shake-up score (0-100)** that says how likely it is the incumbent **cannot win the
recompete on the same terms**, with plain-English reasons, dates and evidence:

| Signal | Weight | Source |
| --- | --- | --- |
| Active exclusion (debarred/suspended) | 60 | SAM.gov public exclusions file |
| 8(a) certification ended | 50 | SBA Small Business Search, else SAM.gov |
| 8(a) term ends before the contract ends / 8(a) suspended | 45 | SBA, else SAM.gov |
| Incumbent not small under the contract's NAICS (size exceptions honored) | 45 | SAM.gov entity file |
| SDVOSB/VOSB/WOSB/HUBZone certification not active | 35 | SBA |
| 8(a) term ends during the option years | 30 | SBA, else SAM.gov |
| SAM registration expired / grants-only registration | 30 | SAM.gov entity file |
| Parent company not small for the NAICS (acquired or affiliated) | 25 | USAspending parent + SAM.gov |
| Set-aside incumbent with no SBA certification, current or past | 25 | SBA |
| Incumbent missing from SAM's public file | 20 | SAM.gov entity file |
| SBA size determination on record | 10 | SBA |

HIGH = 45+, MEDIUM = 20-44. Tags (`VULNERABLE_8A`, `VULNERABLE_SB`, `VULNERABLE_SDVOSB`, `REGISTRATION_LAPSED`, `EXCLUDED`...)
make it easy to filter. Use `shakeupOnly`, `minShakeupScore` or `eightAExitWithinMonths` to keep only shake-ups, and open the
**Recompete shake-ups** dataset view. Only company-level facts are output (no SAM names, addresses or contacts), and firms
that opted out of public display in SAM are skipped. Signals are leads, not rulings: confirm on SAM.gov and SBA before
bidding. Each run downloads SAM.gov's monthly public entity file (~150 MB, about 35 seconds).

### 8(a) Graduation List (beta)

Add `eightAGraduations` to `sources` to list every publicly listed SBA 8(a) and 8(a) JV firm whose nine-year program term
ends in your window (default: the next 18 months), with the 8(a) contracts behind it. A full nationwide run takes about
1.5 minutes.

```json
{ "sources": ["eightAGraduations"], "gradExitWithinMonths": 18 }
```

Virginia IT firms exiting in the next 12 months that still hold live 8(a) work:

```json
{ "sources": ["eightAGraduations"], "gradExitWithinMonths": 12, "states": ["VA"], "naicsCodes": ["5415"],
  "gradNaicsMatch": "any", "gradOnlyWithLiveAwards": true }
```

Each row is one firm:

- **Firm:** UEI, CAGE, legal and DBA name, city, state, ZIP, county, year established, primary NAICS, 8(a) or 8(a) JV,
  entrance and exit date, days to exit, exit quarter, ownership (ANC, Tribal, NHO, CDC, individual-owned), other active SBA
  certifications (HUBZone, WOSB/EDWOSB, SDVOSB, VOSB).
- **8(a) awards** (USAspending, set-aside 8A and 8AN, contract types A-D, FY2008 on, exact UEI match): count and obligated
  total, since FY2024, live awards (current end date on or after the run date), awards running past the exit date, latest
  end, top agency and largest award.
- **Live awards in detail** (`liveAwards`): agency, NAICS, current and potential end date, obligated, base + all options,
  set-aside type, whether the award or its options run past the exit date, and a USAspending link.
- **Remaining value** (`remainingValueEst`, `liveRemainingValueEstUsd`): base + all options minus obligations to date. It is
  a **ceiling, not a forecast**: agencies often do not exercise every option or spend the full ceiling.
- **Evidence:** SBA profile link, SAM.gov registration status and SAM's own 8(a) date as a cross-check (SBA is treated as
  authoritative; SAM's date often differs by a month or more), exclusions, and a plain-English evidence line.
- **Changes between runs** (per `monitorId`, on by default): `changeType` = `new`, `exitDateChanged` or `unchanged`, plus
  `leftBeforeExitDate` rows for firms that dropped off SBA's active 8(a) list before their exit date (early graduation,
  termination, suspension or a hidden profile). Schedule it monthly.

Filter with `states`, `naicsCodes` (`gradNaicsMatch`: primary or any), `gradOwnershipTypes`, `gradCertTypes`,
`gradOnlyWithLiveAwards` and `gradMinLiveValue`; open the **8(a) graduations** dataset view.

**Limits.** Company-level fields only: no contact names, emails, phones, street addresses or principals, and firms that hide
their address in SBA's directory get no city, ZIP or county. Firms SBA hides from public search and graduations SBA has not
posted are missing. Award amounts are obligations to date; IDIQ and GWAC ceilings are not counted. A firm keeps performing its
8(a) contracts after it exits; it just cannot win new 8(a) awards. This is not a forecast that any contract will be
recompeted as 8(a).

**Compared with Tensorust.** Tensorust sells a curated 8(a) graduation-cliff dataset: a $750 single firm or agency slice,
$3,500 for the full list, or $9,000 a year with quarterly refreshes (published prices on its Hugging Face dataset card, checked
Nov 10, 2026). Its full file includes the award-level file behind every number and a by-quarter rollup; this Actor returns
live awards only (not every historical award) and no rollup. In our test against Tensorust's free 25-row sample, every firm
was found, and award counts, totals, live awards, awards past exit, exit and entrance dates matched; one firm's live total
differed because an award ended between their Nov 6 snapshot and our Nov 10 run. What this Actor adds: option dates and
remaining value per live award, a SAM.gov cross-check, change tracking between runs, filters, and a run you schedule
yourself, free during launch.

### Filters

| Input | Applies to | Notes |
|---|---|---|
| `keywords` + `keywordMode` | all | One search per line. Opportunities: title + full text (all words of a line by default, any word, or exact phrase). Contracts: USAspending full-text search. Grants: Grants.gov keyword search, one search per line. |
| `naicsCodes`, `pscCodes` | opportunities, contracts | Prefixes work (`5415`, `S2`). |
| `setAsides` | opportunities, contracts | Groups or exact codes. Contracts are filtered on the set-aside recorded on the award. |
| `states` | opportunities, contracts | Place of performance. Opportunities fall back to the office state unless `stateMatch` = `placeOfPerformance`. |
| `agencies` | opportunities, contracts | Names or acronyms (VA, ARMY, NAVY, GSA, DHS, "Forest Service"). Contracts use USAspending's agency lookup; the match is in the run summary. |
| `noticeTypes`, `postedWithinDays`/`postedFrom`/`postedTo`, `responseDeadlineFrom`/`To`, `openOnly`, `collapseAmendments`, `includeDescription`, `sortBy`, `maxOpportunities` | opportunities | Dates accept `YYYY-MM-DD`, `today` or relative values such as `7 days`, `3 months`. |
| `endWithinMonthsFrom`/`To` or `endDateFrom`/`To`, `minValue`/`maxValue`, `contractDetails`, `includeIdvs`, `activityLookbackYears`, `maxContracts`, `maxScanPages`, `detailTimeBudgetSecs` | contracts | The window is on the **current** end date; `potentialEndDate` shows where options could take it. Needs at least one of NAICS, PSC, keyword, agency, state or minimum value. For IDVs (GWACs, IDIQs, BPAs) the window is on the last date to order and the value filter is not applied (their obligations sit on the orders). Soonest-ending first. |
| `grantStatuses`, `grantAgencies`, `grantCategories`, `grantEligibilities`, `grantDetails`, `maxGrants` | grants | Grants.gov codes. NAICS, PSC, state and set-aside do not apply to grants. |
| `onlyNew`, `monitorId`, `firstRunMode` | all | Memory lives in a key-value store `gov-radar-seen-<monitorId>` in your account. |

### Output

One dataset; views: **Overview**, **Open opportunities**, **Opportunity contacts**, **Contracts ending soon**, **Recompete shake-ups**, **8(a) graduations**, **Grants**, **Monitor changes**.
Export as JSON, CSV, Excel or via the API. A run summary is saved as `OUTPUT` in the key-value store (SAM.gov file date, rows
scanned, matches, amendments collapsed, USAspending window and pages scanned, agency matches, details fetched, grant totals,
monitor counts, errors, run time).

Opportunity (trimmed):

```json
{
  "recordType": "opportunity",
  "title": "Vent Hood Services",
  "noticeType": "Solicitation",
  "solicitationNumber": "FA483027Q0004",
  "department": "DEPT OF DEFENSE", "subTier": "DEPT OF THE AIR FORCE", "office": "FA4830  23 CONS CC",
  "setAsideGroup": "SMALL_BUSINESS", "setAside": "Small Business Set Aside - Total",
  "naicsCode": "561790", "pscCode": "J073",
  "state": "GA", "stateSource": "placeOfPerformance", "placeOfPerformanceCity": "Moody AFB",
  "postedDate": "2026-10-22T14:49:32", "responseDeadline": "2026-11-24T14:00:00-05:00", "daysUntilDeadline": 14,
  "primaryContactName": "SSgt Justin DeJesus", "primaryContactEmail": "justin.de_jesus@us.af.mil",
  "description": "This is a solicitation for commercial service…",
  "samUrl": "https://sam.gov/opp/4eabd9cf67a9464d9b39e7155bd67625/view",
  "dataAsOf": "2026-11-09"
}
```

Contract ending soon (trimmed):

```json
{
  "recordType": "expiringContract",
  "awardId": "70Z07926CWFD00001",
  "description": "JANITORIAL SERVICES BASE-WIDE C5ISC ALEXANDRIA",
  "incumbentName": "N&S PROPERTY SERVICES LLC", "incumbentUei": "JDUTL6WKJN74",
  "awardingAgency": "Department of Homeland Security", "awardingSubAgency": "U.S. Coast Guard",
  "naicsCode": "561720", "pscCode": "S201", "placeOfPerformanceState": "GA",
  "currentEndDate": "2027-05-19", "daysUntilCurrentEnd": 190,
  "potentialEndDate": "2031-05-19", "optionsMayExtend": true,
  "obligatedAmount": 407271.12, "baseAndAllOptionsValue": 2167126.8,
  "setAsideGroup": "8A", "setAside": "8(A) SOLE SOURCE", "extentCompeted": "NOT AVAILABLE FOR COMPETITION", "numberOfOffers": 1,
  "solicitationId": "70Z07926QWFD00001",
  "usaspendingUrl": "https://www.usaspending.gov/award/CONT_AWD_70Z07926CWFD00001_7008_-NONE-_-NONE-"
}
```

### Pricing

**Free during the launch period.** There is no Actor fee right now. You only pay your normal Apify platform usage, which came to
about $0.01 per 1,000 rows in our tests (a typical run costs well under one cent).

After launch the Actor will move to pay-per-result pricing. **Pricing will be announced** in advance in the Changelog, and Apify
will show it on the Pricing tab before it takes effect. Plan for it to work like this:

- You pay for rows returned, by type (open bids, contracts ending soon, grants), not for pages scanned.
- Empty searches and rows skipped by "only new since last run" are not charged as results.
- Set **Maximum cost per run** in Apify to cap spend.

### How it compares with typical SAM.gov scrapers

| | Typical SAM.gov scraper | This Actor |
|---|---|---|
| Open bids | Yes | Yes, from SAM.gov's official daily public file; expired "active" notices dropped, amendments collapsed |
| Contracts ending soon (recompetes) | Not included, or a separate tool | **Same run**: incumbent + UEI, obligated and all-options value, current and potential end date, set-aside, offers |
| Grants | Usually a separate Actor | Optional Grants.gov source in the same dataset |
| Set-aside filter | Raw SAM.gov codes | Plain groups (SB, 8A, WOSB, SDVOSB, HUBZONE…) **and** raw codes, on bids and on contracts |
| Contacts | Varies | Primary and secondary government contacts exactly as published (name, email, phone) |
| Monitoring | Varies; some return the same notices every run | "Only new since last run" with `changeType` new / updated per watchlist |
| Freshness | Some search SAM.gov live (same-day) | **Next day**: SAM.gov publishes the file once a day; `dataAsOf` on every row |
| Attachments | Some download SOW/PWS files | Not downloaded; every notice links to its SAM.gov page (`samUrl`) where they are |
| Account / key | Some need a SAM.gov API key | None |
| Incumbent eligibility (shake-ups) | Not offered by the SAM.gov Actors we checked (Nov 2026) | 0-100 score with reasons and dated evidence: 8(a) exit, certification status, size, SAM registration, exclusions, parent |
| Bid alerts | Some (monitor and alert Actors exist) | Daily Bid Digest: only new bids, Pursue / Review / Skip, email / Slack / webhook |

#### And compared with paid GovCon platforms

Paid platforms do far more (analysts, pipelines, teaming data, attachment reading) and already sell parts of this: HigherGov
has "Vulnerable 8(a)" and "Vulnerable Small Business" filters, and Tensorust sells an 8(a) graduation list. Where this Actor
differs is price and terms. Published list prices, checked Nov 10, 2026:

| | Price | Seats | Export |
|---|---|---|---|
| HigherGov | Starter $500/yr, Standard $2,500/yr | Starter 1 user; Standard up to 10 | 1,000 records per search on Starter, 20,000 on Standard |
| GovTribe | $1,900 per seat per year ($1,200-$1,400 at 6+ seats) | Per seat | Up to 3,000 records; 25,000 on Enterprise |
| GovWin IQ, GovSpend | Quote only | - | - |
| This Actor | Pay per run, no subscription; no Actor fee during launch | None | Every row a run returns, via dataset or API |

Sources: highergov.com/pricing, govtribe.com/plans. HigherGov includes an API on every tier. The shake-up score combines
8(a) exit, certification status, size, SAM registration, exclusions and parent company in one evidence-based score; every
signal shows its source and dates.

### Good to know

- **Freshness.** SAM.gov regenerates its public file once a day (`dataAsOf`), so a notice posted this morning appears in
  tomorrow's runs. USAspending is typically a few days behind contract signings.
- **Descriptions** are SAM.gov's own text; SAM.gov cuts very long ones at about 32,000 characters (`descriptionTruncated`).
  Attachments (SOWs, PWS) are not downloaded; open `samUrl`.
- **Contacts** are the government points of contact exactly as published on each notice.
- **End dates move.** Agencies exercise options and extend contracts; treat `currentEndDate` as the earliest likely recompete and
  `potentialEndDate` as the latest.
- **Run time.** Opportunities always read the full daily file (about 220 MB), but that takes only about 5 seconds on Apify.
  Contracts take about 1–3 minutes for 500 with details (one extra request each); turn `contractDetails` off for speed.
- **Not affiliated** with GSA, SAM.gov, USAspending.gov, Grants.gov or any U.S. government agency.

### Integrations

Schedules, webhooks, Make, Zapier, n8n, Google Sheets and Slack through Apify integrations; the Apify API and clients; and AI
agents through the Apify MCP server ("list open SDVOSB construction solicitations in Georgia due in the next 3 weeks, and the
Georgia janitorial contracts ending next year with their incumbents").

### Support

Open an issue on the Issues tab. Built and maintained by Bight Systems; a daily health check watches all three sources.

# Changelog

This Actor's version history is a separate document: https://apify.com/bightsystems/us-gov-contracts-radar/changelog.md

# Actor input Schema

## `sources` (type: `array`):

Open federal opportunities (SAM.gov bids, RFPs, RFQs, sources sought), federal contracts ending soon (recompete radar from USAspending, with the incumbent), and optionally federal grants (Grants.gov). Pick one or more. Empty = opportunities and contracts ending soon (opportunities only in Daily Bid Digest mode). The 8(a) graduation list lists every SBA 8(a) firm whose program term ends in your window, with its live 8(a) contracts.

## `keywords` (type: `array`):

One search per line, e.g. "janitorial", "cybersecurity", "HVAC maintenance". Opportunities: matched in the title and full description. Contracts: USAspending full-text search. Grants: Grants.gov keyword search. Leave empty for no keyword filter.

## `keywordMode` (type: `string`):

How each keyword line is matched against SAM.gov notices. A notice matches when any line matches.

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

Industry codes. Prefixes work: 5617 matches 561720, 561730… Applies to opportunities and contracts.

## `pscCodes` (type: `array`):

Product/Service codes, e.g. S201 (custodial), R425 (engineering support), DA01 (IT). Prefixes work (S2). Applies to opportunities and contracts.

## `setAsides` (type: `array`):

SB (small business total/partial), 8A, WOSB (incl. EDWOSB), SDVOSB, HUBZONE, VOSB, INDIAN, LOCAL_AREA, NONE (full and open), NOT_STATED, or an exact code such as SDVOSBC or 8AN. Applies to opportunities and contracts (contracts use the set-aside recorded on the award).

## `states` (type: `array`):

Two-letter codes, e.g. GA, TX, VA, DC. See "State matching" for opportunities that do not list a place of performance.

## `agencies` (type: `array`):

Department, agency or office names or acronyms: "Department of Veterans Affairs", VA, ARMY, NAVY, GSA, DHS, "Forest Service". Contracts use USAspending's own agency lookup (shown in the run summary).

## `noticeTypes` (type: `array`):

Solicitation, Combined Synopsis/Solicitation, Presolicitation, Sources Sought, Special Notice, Award Notice, Justification (or codes o, k, p, r, s, a, u). Empty = everything you can still respond to.

## `openOnly` (type: `boolean`):

On (default): drop notices whose response deadline has passed (about 45% of SAM.gov's "active" notices), and award notices / justifications unless you ask for them in Notice types.

## `postedWithinDays` (type: `integer`):

Only notices posted or updated in the last N days. Ignored when "Posted from" is set.

## `postedFrom` (type: `string`):

YYYY-MM-DD, "today" or relative like "14 days" (counted back).

## `postedTo` (type: `string`):

YYYY-MM-DD, "today" or relative.

## `responseDeadlineFrom` (type: `string`):

YYYY-MM-DD, "today" or relative like "5 days" (counted forward). Use it to skip bids you cannot prepare in time.

## `responseDeadlineTo` (type: `string`):

YYYY-MM-DD or relative like "30 days" (counted forward).

## `stateMatch` (type: `string`):

Only about a quarter of SAM.gov notices list a place of performance. By default the contracting office's state is used for the rest; the "stateSource" field tells you which was used.

## `collapseAmendments` (type: `boolean`):

On (default): keep only the newest notice per solicitation number and notice type, with "relatedNoticeCount". Award notices are never collapsed.

## `includeDescription` (type: `boolean`):

The notice text from SAM.gov (cut by SAM.gov at about 32,000 characters; flagged in "descriptionTruncated"). Off = slimmer exports.

## `sortBy` (type: `string`):

Order of opportunities in the dataset.

## `maxOpportunities` (type: `integer`):

Cap on opportunities returned per run.

## `endWithinMonthsFrom` (type: `integer`):

Start of the window, in months from today, for the contract's current end date. 6–18 months is the usual recompete planning window.

## `endWithinMonthsTo` (type: `integer`):

End of the window, in months from today.

## `endDateFrom` (type: `string`):

YYYY-MM-DD or relative like "90 days". Overrides "Ending from".

## `endDateTo` (type: `string`):

YYYY-MM-DD or relative. Overrides "Ending to".

## `minValue` (type: `integer`):

Skip small contracts, e.g. 100000.

## `maxValue` (type: `integer`):

Skip very large contracts.

## `contractDetails` (type: `boolean`):

One extra request per returned contract for potential end date (all options), base + all options value, set-aside, competition, number of offers and the original solicitation number.

## `includeIdvs` (type: `boolean`):

Also return IDVs (IDIQs, GWACs, BPAs, FSS). For IDVs the end window is applied to the last date to order.

## `activityLookbackYears` (type: `integer`):

Only contracts with a transaction in this many past years (keeps dead or closed-out awards out).

## `maxContracts` (type: `integer`):

Contracts to return, soonest-ending first. Each one costs one extra USAspending call when contract details are on; calls go through Apify Proxy so large pulls keep their detail fields.

## `maxScanPages` (type: `integer`):

Safety cap on USAspending pages scanned (100 awards each; USAspending serves at most 10,000 results per search). Very broad searches stop here and the summary says so (stoppedAtScanCap); add NAICS, state or agency filters.

## `detailTimeBudgetSecs` (type: `integer`):

Stop fetching contract details after this many seconds (records without details keep detailsFetched = false).

## `grantStatuses` (type: `array`):

posted, forecasted, closed, archived.

## `grantAgencies` (type: `array`):

Grants.gov agency codes, e.g. HHS, USDA, DOE, NSF, HHS-NIH11.

## `grantCategories` (type: `array`):

Grants.gov category codes, e.g. HL (health), ED (education), ENV (environment), ST (science), CD (community development).

## `grantEligibilities` (type: `array`):

Grants.gov codes, e.g. 23 (small businesses), 22 (for-profit other than small), 12 (nonprofits with 501(c)(3)), 00 (state governments).

## `grantDetails` (type: `boolean`):

One extra request per grant for award ceiling/floor, total funding, eligibility, description and the agency contact.

## `maxGrants` (type: `integer`):

Cap on grants returned per run.

## `digestMode` (type: `boolean`):

Turns on "only new since last run" for opportunities and builds an email/Slack-ready digest (DIGEST_HTML, DIGEST_TEXT in the key-value store). Put it on a daily Schedule.

## `myNaicsCodes` (type: `array`):

NAICS codes your company is registered for (prefixes work). Used to mark bids you are eligible for. Defaults to the NAICS filter above.

## `myCertifications` (type: `array`):

Your small-business status and SBA/VA certifications. A set-aside bid you do not qualify for is marked Skip.

## `emailTo` (type: `string`):

One or more addresses, comma-separated. Sent with Apify's Send Email Actor from your Apify account (a fraction of a cent per email).

## `webhookUrl` (type: `string`):

A Slack incoming-webhook URL (posts a formatted message) or any https endpoint such as Make, Zapier or n8n (receives JSON with the bids).

## `digestTitle` (type: `string`):

Shown as the email subject and the heading of the digest.

## `digestMaxItems` (type: `integer`):

All bids are always saved to the dataset; this only limits the email/Slack message.

## `digestIncludeSkipped` (type: `boolean`):

Off: bids you are not eligible for are kept in the dataset but left out of the email/Slack message.

## `sendWhenEmpty` (type: `boolean`):

Off: no email or Slack message on days with no new bids.

## `bidFlags` (type: `boolean`):

Adds triage (PURSUE / REVIEW / SKIP), deal-breaker and caution flags with the matching text, and eligibility reasons to every opportunity.

## `deliveryDryRun` (type: `boolean`):

Builds the digest but sends nothing: the email goes through Send Email in mock mode and the webhook body is saved as DELIVERY_PREVIEW.

## `incumbentSignals` (type: `boolean`):

Adds shakeupScore (0-100), shakeupLevel, reasons with evidence dates, and incumbent eligibility fields to every contract ending soon. Downloads SAM.gov's monthly public entity file (about 150 MB) once per run.

## `verifyWithSba` (type: `boolean`):

Looks up the incumbents of 8(a), HUBZone, WOSB, SDVOSB and VOSB set-asides in SBA Small Business Search, which is more current than SAM.gov for certification exit dates, suspensions and VetCert/WOSB status. Only certification fields are kept.

## `sbaMaxLookups` (type: `integer`):

Upper limit on SBA certification lookups per run (one per set-aside incumbent). 0 turns lookups off.

## `shakeupExclusions` (type: `boolean`):

Also matches incumbents to SAM.gov's daily public exclusions file (debarments, suspensions); about 12 MB.

## `shakeupOnly` (type: `boolean`):

Return only contracts with at least one signal. maxContracts is the number checked, so raise it to find more.

## `minShakeupScore` (type: `integer`):

Return only contracts scoring at least this (45+ = HIGH, 20-44 = MEDIUM).

## `eightAExitWithinMonths` (type: `integer`):

Return only contracts whose incumbent's 8(a) term ends (or ended) within this many months of today.

## `gradExitWithinMonths` (type: `integer`):

Firms whose 8(a) exit date is between gradExitFrom (default today) and this many months later. Ignored when gradExitTo is set.

## `gradExitFrom` (type: `string`):

YYYY-MM-DD, today, or relative (e.g. '3 months'; '-3 months' looks back). Default today.

## `gradExitTo` (type: `string`):

YYYY-MM-DD or relative. Overrides gradExitWithinMonths.

## `gradOwnershipTypes` (type: `array`):

Keep only these ownership types (from the firm's SBA profile). Empty = all.

## `gradCertTypes` (type: `array`):

Empty = both.

## `gradNaicsMatch` (type: `string`):

How naicsCodes filter the list.

## `gradOnlyWithLiveAwards` (type: `boolean`):

Drop firms with no 8(a) award still in performance.

## `gradMinLiveValue` (type: `integer`):

Keep firms whose live 8(a) awards total at least this (obligated to date).

## `gradAwardDetails` (type: `boolean`):

One USAspending detail call per live 8(a) award: potential end date, base + all options value, set-aside type. Off = faster, no option fields.

## `gradDetailMax` (type: `integer`):

Cap on detail calls per run.

## `gradSamCheck` (type: `boolean`):

Match each firm to SAM.gov's public entity and exclusion files: registration status, SAM's 8(a) date and exclusions. Downloads about 160 MB once per run.

## `gradMaxFirms` (type: `integer`):

Soonest exits first.

## `gradTrackChanges` (type: `boolean`):

Remembers the list per monitorId: flags new firms, changed exit dates, and firms that left SBA's active 8(a) list before their exit date (early graduation, termination or hidden profile).

## `onlyNew` (type: `boolean`):

Remember what this monitor already returned (in a key-value store named gov-radar-seen-<monitorId> in your account) and return only new or changed records, with "changeType". Put it on a daily schedule.

## `monitorId` (type: `string`):

Name of this watchlist; each ID keeps its own memory.

## `firstRunMode` (type: `string`):

What the very first monitor run does.

## `healthCheck` (type: `boolean`):

Ignore the filters, probe all three sources and save PASS/FAIL in the HEALTH record. Pushes nothing to the dataset. For the maintainer's daily canary.

## `healthThresholds` (type: `object`):

Optional overrides, e.g. {"minRowsInFile": 20000, "minFill": {"naicsCode": 0.85}}.

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

USAspending throttles a single IP after about 300 calls; Apify Proxy rotates sessions so large contract pulls keep their detail fields. SAM.gov and Grants.gov are called directly.

## Actor input object example

```json
{
  "sources": [
    "opportunities",
    "expiringContracts"
  ],
  "keywords": [
    "janitorial",
    "facility maintenance"
  ],
  "keywordMode": "ALL_WORDS",
  "naicsCodes": [
    "561720",
    "541512"
  ],
  "pscCodes": [
    "S201"
  ],
  "setAsides": [
    "SB",
    "8A",
    "WOSB",
    "SDVOSB",
    "HUBZONE"
  ],
  "states": [
    "GA"
  ],
  "agencies": [
    "VA",
    "ARMY"
  ],
  "noticeTypes": [
    "Solicitation",
    "Combined Synopsis/Solicitation",
    "Sources Sought"
  ],
  "openOnly": true,
  "postedWithinDays": 7,
  "stateMatch": "placeOrOffice",
  "collapseAmendments": true,
  "includeDescription": true,
  "sortBy": "deadline",
  "maxOpportunities": 1000,
  "endWithinMonthsFrom": 6,
  "endWithinMonthsTo": 18,
  "contractDetails": true,
  "includeIdvs": false,
  "activityLookbackYears": 3,
  "maxContracts": 500,
  "maxScanPages": 100,
  "detailTimeBudgetSecs": 300,
  "grantStatuses": [
    "posted",
    "forecasted"
  ],
  "grantDetails": true,
  "maxGrants": 200,
  "digestMode": false,
  "digestTitle": "Daily Bid Digest",
  "digestMaxItems": 40,
  "digestIncludeSkipped": false,
  "sendWhenEmpty": false,
  "bidFlags": true,
  "deliveryDryRun": false,
  "incumbentSignals": true,
  "verifyWithSba": true,
  "sbaMaxLookups": 300,
  "shakeupExclusions": true,
  "shakeupOnly": false,
  "minShakeupScore": 0,
  "gradExitWithinMonths": 18,
  "gradNaicsMatch": "primary",
  "gradOnlyWithLiveAwards": false,
  "gradAwardDetails": true,
  "gradDetailMax": 3000,
  "gradSamCheck": true,
  "gradMaxFirms": 1000,
  "gradTrackChanges": true,
  "onlyNew": false,
  "monitorId": "default",
  "firstRunMode": "emitAll",
  "healthCheck": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All records: open SAM.gov opportunities, contracts ending soon with incumbent, and grants. Opens on the Overview view; Open opportunities, Contacts, Contracts ending soon, Grants and Monitor changes views are also available.

## `triage` (type: `string`):

Opportunities with triage, flags and eligibility.

## `digest` (type: `string`):

The Daily Bid Digest as an HTML page: new bids sorted into Pursue / Review / Skip with deal-breaker flags. Saved when digestMode, emailTo or webhookUrl is set.

## `recompetes` (type: `string`):

The same dataset in the Contracts ending soon view.

## `shakeup` (type: `string`):

Contracts ending soon with shake-up score, reasons and incumbent eligibility, highest score first.

## `runSummary` (type: `string`):

JSON summary: SAM.gov file date, rows scanned, matches, amendments collapsed, USAspending window, pages scanned, agency matches, details fetched, grants totals, monitor counts, errors and run time.

## `graduations` (type: `string`):

8(a) graduation list: firms exiting 8(a) in your window with live 8(a) contracts and value past exit.

# 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 = {
    "sources": [
        "opportunities",
        "expiringContracts"
    ],
    "naicsCodes": [
        "541512"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bightsystems/us-gov-contracts-radar").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 = {
    "sources": [
        "opportunities",
        "expiringContracts",
    ],
    "naicsCodes": ["541512"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("bightsystems/us-gov-contracts-radar").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 '{
  "sources": [
    "opportunities",
    "expiringContracts"
  ],
  "naicsCodes": [
    "541512"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call bightsystems/us-gov-contracts-radar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bightsystems/us-gov-contracts-radar"
        }
    }
}
```

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/f5a3sHBTo7VftBG8Q/builds/2Cq5JtTWkTf5hcmPB/openapi.json
