# Government Food Contracts: USAspending Awards & SAM.gov Bids (`rich_minds/food-tenders-ai`) Actor

First 25 awards free. Government food contracts by product (rice, spice, coffee): food tender awards with the federal winner, open SAM.gov food opportunities; pay here only for matches. Recompete radar, MCP ready. Free demo on any plan; the live search runs on your Apify account too (a public API).

- **URL**: https://apify.com/rich_minds/food-tenders-ai.md
- **Developed by:** [Rich Minds](https://apify.com/rich_minds) (community)
- **Categories:** Business, 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 $2.50 / 1,000 qualified award (rules only)s

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

## Government Food Contracts: USAspending Awards & SAM.gov Bids

**New US federal food awards for your products, with the winning supplier, every week.**

⚡ First **25 awards free** · 💵 **$0.0025** per qualified award · 🤖 AI optional, from **$0.009** — **$0.0121** per award all-in, on by default · ⏱️ 100 awards: ≈ 45 s AI off · ≈ 11 min AI on

![One row per qualified award with its winner (live rice search, 2026-11-24)](https://api.apify.com/v2/key-value-stores/NRRqdkK7kTgNEOues/records/shortlist.svg)

> **Try it in 30 seconds.** Click **Try it** — the form opens on 6 real USAspending awards (read 2026-11-24);
> your first **25 qualified awards** are free. Demo and live search: your Apify account, any plan.
> **AI:** Apify Starter plan and up, or your own Gemini key; otherwise rule scores at $0.0025.
> **Get your free SAM.gov key** for open bids: 1. sign in at [sam.gov](https://sam.gov) · 2. profile → request a
> Public API key · 3. paste it into "Your free SAM.gov key" (an api.data.gov key is not accepted).
> → [What a run costs](#-pricing--what-a-run-really-costs) · [What the AI adds](#-what-the-ai-tier-adds) · [Run it weekly](#-run-it-weekly)

### ⚡ At a glance

| | |
|---|---|
| **What you get** | one row per US federal food award: buyer, winner with its SAM.gov page, amount, dates, who may sell into it, the first line to send |
| **You provide** | your product words (rice, cumin, pistachio) or your goal; optionally rivals, agencies, a period |
| **Typical run** | 982 awards scanned → 5–30 rice awards in 18–42 s (measured 2026-11-22–24, rules only) |
| **Cost of that run** | 30 qualified: 25 free, then **$0.0125** rules only · **≈ $0.138** with the AI |
| **Keys / setup** | Awards: no key. AI: Apify Starter plan and up (not yet measured on Apify's model access); on Free, your own Gemini key — 2–6 of 6 awards per run (measured 2026-11-24). Open bids: a free SAM.gov key. |
| **Which plan** | Demo, your own list ([template](https://api.apify.com/v2/key-value-stores/NRRqdkK7kTgNEOues/records/list-template.json)) and the live search: any plan · mailed digest: a plan that runs Store Actors |
| **Agencies** | one saved task per client, a branded `REPORT` page to forward |
| **Works with** | Schedules, webhooks, Sheets, Slack, Teams, Make / n8n / Zapier, MCP & AI agents |

### 🎯 What this Actor does

USAspending food awards (PSC 89) name who supplies the US military, USDA and Veterans Affairs; this Actor charges
only for awards that pass your filters (the USAspending read is free):

- **Who won, with proof** — agency, the winner with its SAM.gov page, amount, dates, award page.
- **Your product, not the whole register** — your words matched in the award text, ranked by amount, recency, match.
- **Who may sell into it** — US-origin rules (Defense, USDA) or a class open to imports (coffee, spices), per row.
- **AI assessment** — what the winner is to you, the demand signal, a fit score, the first line to send.

#### 📋 USAspending food awards as a federal food suppliers list

Type "rice": a year of rice awards, each supplier linked.

#### 📨 SAM.gov food opportunities next to the food tender awards

With your free SAM.gov key: open food bids, deadlines, set-aside, documents, the contracting officer.
Read one food code at a time, your products' codes first (rice → 8920, spices → 8950); 8 calls a run by default.

#### 🌍 UN food tenders from UNGM (opt-in)

`includeUngm: true` adds open UN food tenders (WFP, UNICEF, FAO …) naming your product words — no key, no second bill.
Open bids (UN or SAM.gov) get up to half of `maxQualified`, so big awards never crowd them out.

#### 🔄 Recompete radar and 👀 competitor watch

Contracts ending within 180 days (**Expiring contracts** view); rivals' names in **Competitor watch** = only their awards.

### 🚀 How to use it

1. **Click Try it** — the free demo on six real awards.
2. **Type your product words (or only your goal)** — they start the live USAspending read, any plan, no key.
3. **Press Start** — awards land best-first. **AI:** Apify Starter plan and up, or your own Gemini key; otherwise rule scores at $0.0025.
4. **Schedule it weekly** with a Slack / Teams URL in "Send alerts to" — only new awards are charged.

![The Openers view — whom to contact and the first line to send (AI example, 2026-11-24)](https://api.apify.com/v2/key-value-stores/NRRqdkK7kTgNEOues/records/outreach.svg)

📚 **Learn more:** [Step-by-step tutorial — government food contracts by product with this Actor](https://api.apify.com/v2/key-value-stores/NRRqdkK7kTgNEOues/records/tutorial.html)

### 🆚 Why this instead of searching USAspending.gov yourself?

| | [USAspending.gov search](https://www.usaspending.gov/search) (free) | **This Actor** |
|---|---|---|
| **Your time per 100 awards** | ≈ 13 h (≈ 8 min by hand per award, on 5 sample awards, 2026-11-24) | ≈ 50 min (≈ 30 s a ranked row, on 5 sample awards, 2026-11-24) |
| **Same 100 awards, all in (list price, no free tier)** | $0 — plus the 13 h | **100 ranked awards**: $0.25 rules only (USAspending read included, junk costs $0) · $1.21 with the AI |

#### vs other government-contract tools — a HigherGov / GovTribe alternative for food

| Tool | Covers | Price | 100 clean awards |
|---|---|---|---|
| **This Actor** | US food **awards** with the winner + open bids | $0.0025 per qualified award | **$0.25** · $1.21 with the AI |
| fedsignals/federal-opportunities-monitor | SAM.gov notices — no winner | $0.0025 per notice | $0.25 |
| automation-lab/ungm-tender-notices-scraper | UN notices — no US awards | $0.01 per notice | $1.00 |
| gulfdata/ungm-tenders-monitor | UN notices only | $0.05 per notice | $5.00 |
| [HigherGov](https://www.highergov.com/pricing/) | every category | $500 a year, 1 user (≈ $42 a month, checked 2026-11-24) | in the seat |
| [GovTribe](https://govtribe.com/pricing) | every category | $1,900 a year per seat (≈ $158 a month, checked 2026-11-24) | in the seat |

### 💵 Pricing — what a run really costs

| Event | When it is charged | Price |
|---|---|---|
| free-tier | your first 25 qualified awards on this Actor, any mode | **$0.00** |
| qualified-award-basic | AI off — the facts, flags, rule score and opener | **$0.0025** |
| qualified-award-ai | AI on — plus the winner's role, demand signal, fit score and next step | **$0.009** |

**Never charged here:** awards below your minimum score, outside your filters or already received; the
USAspending read is included. **How that compares** — $0.0025 is
0.25× the $0.01 median of the same-unit Store rivals, 4× cheaper, and one qualified award replaces ≈ 33 scanned rows.

**Worked example** (2026-11-22, "rice", 12 months): 982 scanned → 30 qualified → 25 free; the 5 after them cost
5 × $0.0025 = $0.0125 by rules, or 5 × $0.009 + 30 × $0.0031 tokens ≈ $0.138 with the AI.

**AI tier, all in:** ≈ $0.0121 per award ($0.009 + ≈ $0.0031 tokens: 1,651 in / 285 out, measured 2026-11-24,
`google:gemini-3.5-flash-lite`, own key).

### 🤖 What the AI tier adds

The same award, AI **off** (the demo's real cumin award):

```json
{"awardedTo": "COASTAL PACIFIC FOOD DISTRIBUTORS, INC.", "originRule": "exception_likely", "ruleScore": 71, "score": 71, "label": "hot",
 "generatedText": "Hello Coastal Pacific Food Distributors, INC. team — your US$ 46 k cumin award from Defense Logistics Agency (2026-07) caught our eye — we supply cumin at export scale with full traceability. Could we talk this week about being your second source?"}
```

AI **on** (the AI example, 2026-11-24): imported cumin is allowed and the recipient is a processor, so it moves up:

```json
{"awardedTo": "COASTAL PACIFIC FOOD DISTRIBUTORS, INC.", "fitScore": 85, "score": 85, "label": "hot", "recipientRole": "producer",
 "generatedText": "Noticed your Defense Logistics Agency contract for cumin ending this August in California. As a specialized spice supplier, we can provide a reliable second source for your commercial lines.",
 "recommendedNextStep": "Look up Coastal Pacific Food Distributors, Inc. to offer wholesale cumin supply for their condiment and food processing lines.",
 "aiModel": "google:gemini-3.5-flash-lite"}
```

Supreme Rice's USDA award needs US-grown rice, so the AI drops it from 87 to 55. By hand: ≈ 8 minutes per award. A
free [Gemini key](https://aistudio.google.com/apikey) assessed 2–6 of 6 awards per run (measured 2026-11-24, rate
limit permitting); a paid key assesses every award.

### ⚙️ Input

| Field | Default | What it does |
|---|---|---|
| `preset` | `custom` | Start from a ready search — one click fills a niche's search |
| `products` | — | Your product words — they start the live search |
| `goalDescription` | — | What the AI scores against |
| `samGovApiKey` | — | Your free SAM.gov key — adds the open food bids |
| `includeUngm` | `false` | Adds open UN food tenders from UNGM |
| `incumbents` | — | Competitor watch: these suppliers' awards only |
| `pscCodes` | — | Food classes (left out = 89, all food) |
| `periodDays` | `365` | The award period, last N days |
| `minScore` | `50` | Below it = not charged |
| `enableAi` | `true` | AI on / off ($0.009 / $0.0025 per qualified award) |
| `maxQualified` | `100` | Hard cap on output (and on spend) |

Also on the form: `agencies`, `awardTypes`, `minAmountUsd`, `suppressionList`, `sendAlertsTo`, `notifyEmail` (Starter
plan and up), `targetFlags`. API-only inputs (`maxAwardsToScan`, `since` /
`until`, `llmModel` …) with their cost effect.

### 📤 Output

One item per qualified award — JSON, CSV, Excel or a webhook. Sort by `score`; trend across runs on `ruleScore`
(`fitScore` is the AI's). **Upsert key:** `itemId` — stable across runs; `dedupeKey` is this version of the row.

<details><summary>The fields of a row</summary>

`itemId` `name` `url` `tenderUrl` (deprecated, = `url`, removed in 0.3 on 2027-02-28) `contactRoute`
`awardedToProfileUrl` `buyer` `buyerUnit` `country` `title` `product` `pscCode` `naicsCode` `quantity` `unit`
`awardedTo` `awardedToUei` `companyKey` `awardValueUsd` `awardedOn` `endsOn` `lastModified` `scrapedAt`
`placeOfPerformance` `awardType` `awardId` `deadline` `documentsUrl` `status` `dataSource` `matchedProducts`
`description` `originRule` `fiscalYear` `fiscalQuarter` · open bids: `contactName` `contactEmail` `contactPhone` `setAside` ·
`enrichDetails` adds `piid` `recipientAddress` `recipientCountry` `parentRecipient` `smallBusiness`
`businessCategories` `potentialEndsOn` `naicsDescription` `totalObligationUsd` `detailEnriched` · `flags`
`targetFlagsMatched` `ruleScore` `fitScore` `score` `label` `assessedBy` · `recipientRole` `demandSignal`
`summary` `scoreReasons` · `generatedText` `recommendedNextStep` `aiModel` `chargedEvent` `billedAs` `dedupeKey` `source`.

</details>

`dataSource` ∈ usaspending · sam_gov · ungm · list · `originRule` ∈ domestic_required · exception_likely · unknown ·
`label` ∈ hot · warm · cold · `status` ∈ awarded · open · `assessedBy` ∈ ai · sample · rules · `recipientRole` ∈
importer · distributor · prime_contractor · producer · unknown.

A **`DIGEST`** and the client-ready **`REPORT`** page sit next to `OUTPUT`. **Views:**
`Shortlist`, `Openers`, `Expiring contracts`, `Buyers`, `Open opportunities`, `Score breakdown`, `Export`.

⭐ **Found it useful? A review on the Store helps others find it.**

### 🔁 Run it weekly

1. A Slack / Teams / Telegram URL in **Send alerts to** (any plan) or **E-mail me the new awards** (Starter plan and
   up) — then open the saved task (`OUTPUT.scheduleTaskUrl`) and click **Schedule**.
2. Leave `dedupeAcrossRuns: true` — the next run charges **only what is new or modified**.
3. `webhookUrl` or Sheets fill the [ready tracker sheet](https://api.apify.com/v2/key-value-stores/NRRqdkK7kTgNEOues/records/tracker.csv) (upsert on `itemId`).

The food class adds ≈ 19 awards a week (982 ÷ 52, measured 2026-11-22), rice ≈ 3 — each charged once.

#### 🎯 Try it for your niche

Pick one in **Start from a ready search** — each count is a live run (AI off, 12 months, 2026-11-24).

<details><summary>Nine ready searches with their measured counts</summary>

| Niche | Measured | Start |
|---|---|---|
| Rice to the US government | 162 found, 32 companies | `rice-to-us-government` |
| US military food suppliers | 256 found, 26 companies | `us-military-food-suppliers` |
| Spices & condiments | 1,793 found, 56 companies | `spices-and-condiments` |
| USDA food donations | 913 found, 159 companies | `usda-food-donations` |
| Coffee, tea & cocoa | ≥ 2,000 found, 61 companies | `coffee-tea-cocoa` |
| Fruits, nuts & vegetables | ≥ 2,000 found, 226 companies | `fruits-nuts-vegetables` |
| New FY 2027 food awards (since 1 Oct 2026) | 958 found, 225 companies | `new-fy-2027-awards` |
| Recompete radar | 437 found, 192 incumbents | `recompete-radar` |
| Competitor watch | 55 found, 3 companies | `competitor-watch` |

</details>

### 🔌 Integrations, automation and API

- **Webhook** — `webhookUrl` POSTs `{"event": "award.qualified", "item": {…}, "runId": "…"}` (batched:
  `awards.qualified`, `items`); a 429 / 5xx is retried once, a failed POST is re-sent next run; `webhookSecret`
  signs it. Each URL is posted once per run.
- **HubSpot / Pipedrive** — a Make / Zapier step per row: company = `awardedTo`, note = `generatedText`,
  upsert on `itemId`; a new `dedupeKey` = the award changed.
- **AI agents / MCP** — one rule: no search field = the free demo, any search
  field = the live search, `list` / `dataset` only when you send them.

#### Run outcomes

<details><summary>Every outcome, charged or not</summary>

| Outcome | Run status | Dataset | `OUTPUT` | Charged? | What to do |
|---|---|---|---|---|---|
| Free demo | SUCCEEDED | sample awards | `mode: demo` | no | type product words |
| Success | SUCCEEDED | qualified awards | `outcome: ok` | per award | — |
| Nothing matched | SUCCEEDED | empty | `outcome: empty` | not by us — no source scan on your plan | loosen `minScore` |
| Invalid input | FAILED | empty | — | no | fix the named field |
| SAM.gov key refused | SUCCEEDED | awards, no bids | `refused` | per award | check `samGovApiKey` |
| USAspending unreadable | FAILED | empty | `outcome: source_failed` | no | run again later |
| Plan cannot run the opt-in UN fallback | SUCCEEDED | Console: the sample on your brief; API: empty, alert sent | `ok: false`, `source_refused` | no | list mode; `failOnSourceError` = FAILED |
| Source partial | SUCCEEDED | awards read so far | `sourceStatus.partial` | per award | run again |
| Crashed | FAILED | rows before it | `outcome: error` | rows delivered | re-run |
| AI unavailable | SUCCEEDED | rule-scored awards | `aiError` | free, then basic | use your own key |
| Run time limit reached during the AI pass | SUCCEEDED | all, the rest rule-scored | `fallbackReasons`: `run budget` | per row | raise `timeoutSecs` |

</details>

<details><summary>Python snippet</summary>

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("rich_minds/food-tenders-ai").call(
    run_input={
        # free first call: {} (the demo) or {"sourceMode": "list", "itemsList": [...]}
        "products": ["rice", "basmati"],
        "goalDescription": "Rice exporter looking for US rice buyers' commercial lines.",
        "maxQualified": 50,
        "dedupeAcrossRuns": True,
        # "maxDiscoveryChargeUsd": 0.5,  # caps the opt-in UN fallback
    },
    timeout_secs=3600,  # a rate-limited own key's worst case; the run pushes what is ready before it
    # build="0.2.4",  # pin a tested build
)
if run["status"] != "SUCCEEDED":
    raise RuntimeError(run["status"], run.get("statusMessage"))
rec = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("OUTPUT")
out = rec["value"] if rec else {}
if not out.get("ok", True):  # an unreadable source
    raise RuntimeError(out.get("outcome"), out.get("sourceError"))
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["awardedTo"], item["awardValueUsd"], item["score"], item["label"], item["url"])
```

</details>

<details><summary>JavaScript and MCP</summary>

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('rich_minds/food-tenders-ai').call({
    // free first call: {} (the demo); autoSwitchToLive is Console-only
    products: ['rice', 'basmati'], maxQualified: 50, dedupeAcrossRuns: true,
    goalDescription: "Rice exporter looking for US rice buyers' commercial lines.",
}, { timeout: 3600 /* the worst case: a rate-limited own key; build: '0.2.4' */ });
if (run.status !== 'SUCCEEDED') throw new Error(`${run.status}: ${run.statusMessage}`);
const rec = await client.keyValueStore(run.defaultKeyValueStoreId).getRecord('OUTPUT');
const out = rec ? rec.value : {};
if (out.ok === false) throw new Error(`${out.outcome}: ${out.sourceError}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((i) => [i.awardedTo, i.awardValueUsd, i.score, i.label, i.url]));
```

**MCP:** `{"mcpServers": {"apify": {"url": "https://mcp.apify.com/?actors=rich_minds/food-tenders-ai"}}}`

</details>

**Minimal agent input** (memory off):

```json
{"products": ["pistachio", "almond"], "pscCodes": ["8925"], "periodDays": 365, "maxQualified": 20, "dedupeAcrossRuns": false}
```

#### Which call runs what

<details><summary>Input → mode → charge?</summary>

| Input shape | `OUTPUT.mode` | Can it charge? |
|---|---|---|
| `{}` or the untouched form | `demo` | no — `chargedEvent: demo` |
| the sample + search terms typed on the Console form | `live` | yes |
| the same over the API (or `autoSwitchToLive: false`) | `demo` | no |
| `sourceMode: "live"` + a search field or preset | `live` | yes |
| `sourceMode: "list"` + your `itemsList` rows | `list` | yes |
| `sourceMode: "dataset"` + `datasetId` | `dataset` | yes |

</details>

#### List-mode rows

`sourceMode: "list"`, any plan — a raw USAspending row works as it is.

<details><summary>Fields of a pasted row</summary>

| Field | Required / optional | What it enables |
|---|---|---|
| `awardedTo` | required (or `Recipient Name`) | the recipient |
| `buyer` | required (or `Awarding Agency`) | the buyer |
| `url` | required (or `generatedInternalId`) | award page, dedupe key |
| `title` · `awardValueUsd` · `pscCode` | optional | product match · amount score · food class |
| `awardedOn` · `endsOn` | optional — the award's dates as published | period filter, `recompete_soon` |
| `deadline` | optional — when offers are due, as published | an open bid, `closing_soon` |
| `awardedToUei` | optional | the winner's SAM.gov page |

</details>

### 👥 Who is it for?

| You are… | You run it to… | Start with |
|---|---|---|
| A food exporter (coffee, tea, cocoa, spices) | US winners in classes open to imports | `coffee-tea-cocoa`, `spices-and-condiments` |
| A US food producer or small bidder | rebids and open bids, with the contracting officer | `recompete-radar` + SAM.gov key |
| A US distributor or prime | watch rivals' wins and expiring terms | `competitor-watch` |
| An APEX Accelerator counselor or trade consultant | one task per client, forward the `REPORT` | a preset per client |

### 🧠 How the AI works

- **Grounded** in one award record — no invented volume, price or contact, no imports pitched into a US-origin
  contract. Model: `anthropic/claude-haiku-4.5` (model access) or your key (default `google:gemini-3.5-flash-lite`).

### 🔒 Data, compliance and limits

- Public data only, no login. EU / UK tenders, subawards, WFP and UNGM awards are not covered yet (roadmap).

| Source | Rows | When |
|---|---|---|
| USAspending.gov API | federal food awards (PSC 89), the winner | every live run |
| SAM.gov Opportunities API | open food bids (PSC 8905–8970, one call per code, your products' codes first): deadline, office, set-aside, documents | with `samGovApiKey` — `samMaxCalls` (API) — 8 — a run |
| UNGM public notice list | open UN food tenders (UNSPSC 50): agency, country, deadline | `includeUngm: true` — robots.txt honoured, 1 request per 2.5 s |

### ❓ FAQ

**Why pay when USAspending.gov is free?** The site wins for one award you know. 100 awards by hand take ≈ 13 h;
here they arrive ranked, each winner linked, an opener written, on a schedule — $0.25.

**Who can sell into these contracts?** Each row's `originRule` says: `domestic_required` — Defense food (Berry
Amendment) and USDA AMS buys need US-origin product, so an exporter sells to the winner's commercial lines;
`exception_likely` — coffee, tea, cocoa, spices (FAR 25.104) or Defense food bought abroad; `unknown` — check the Buy
American clause.

**Who are the US military food suppliers for my product?** The "US military food suppliers" preset (256 awards, 26
companies) plus your product words.

**Can I see only USDA food procurement awards?** Yes — the "USDA food donations" preset.

**Who wins federal spice contracts?** The "Spices & condiments" preset: 1,793 awards, 56 companies (measured 2026-11-24).

**Where do I find government coffee contracts?** The "Coffee, tea & cocoa" preset: 2,000+ awards, 61 companies.

**How fresh is the data?** USAspending updates daily; `awardedOn` / `endsOn` are the award's dates as published,
`scrapedAt` when this run read it.

**Why is my SAM.gov key refused?** api.sam.gov answers a key it does not accept with an empty HTTP 404 —
`OUTPUT.refused` says so. Use a Public API key from your sam.gov profile; an api.data.gov key does not work there.

**Which SAM.gov food codes are read, and why not all?** SAM.gov's search takes one 4-digit code per call (asking for
class 89 returns nothing), so the run reads 8905 meat, 8910 dairy, 8915 fruit & vegetables, 8920 bakery & cereal
(rice), 8925 sugar & nuts, 8930 jams, 8935 soups, 8940 dietary, 8945 oils, 8950 condiments & spices, 8955 coffee &
tea, 8960 soft drinks and 8970 food packages — your products' codes first. A SAM.gov key with no role allows 10
calls a day (1,000 with a role, [open.gsa.gov](https://open.gsa.gov/api/entity-api/)), so a run makes at most
`samMaxCalls` (API) — 8, room for a daily schedule; the status and `OUTPUT.samGovCodes.notRead` name the codes left.
A spent quota is one `refused` line with SAM.gov's reset time; the awards still arrive. 8965 alcohol and 8975
tobacco are read only when your product words or `pscCodes` name them.

**Can I get UN food tenders?** Yes — `includeUngm: true`: open UNGM notices in the food segment that name one of
your product words, with agency, country, deadline and the notice page (documents tab). Awards stay US-only.

**What counts as qualified?** An award that passed every free filter and scored ≥ `minScore`.

**AI: which plan?** Apify Starter plan and up, or your own Gemini key; otherwise rule scores at $0.0025.

**How long does a run take?** Own key, measured ≈ 0.9–41 s per award (`google:gemini-3.5-flash-lite`, 2026-11-24):
≈ 9 awards a minute (6.6 s each) while a free key answers, 41 s each rate-limited — those waits stop after 60 s;
worst case per 100 awards: the 3600 s run limit. Pass `timeoutSecs` 3600 — the run pushes what is ready before it;
a key that answers needs ≈ 8 s per award plus 300 s (1100 s for 100).

<details><summary>Measured time per mode</summary>

| Mode | Measured | `timeoutSecs` |
|---|---|---|
| Demo / your own rows | 5.2 s on Apify for 6 (2026-11-24) | 120 |
| Live search, rules only | 18–42 s for 982 scanned (2026-11-22–24) | 300 |
| AI, own Gemini key (`google:gemini-3.5-flash-lite`) | measured 0.9–41 s per award | 3600 |
| AI, Apify's model access | not measured yet, ≤ 6 s per award | 3600 |

</details>

**What if nothing matches?** 0 rows, nothing charged; `OUTPUT.skips` names what each rule dropped.

**Will I be charged for the same award twice?** No, with `dedupeAcrossRuns` on — adding a product word keeps that
memory; a changed award comes back once, flagged `modified`.

**How do I send the openers safely?** By hand, a few a day, to the contact on the winner's SAM.gov page, naming the
award; CAN-SPAM applies.

**Is this legal?** Yes. USAspending.gov is the US Treasury's public open-data API — no login, no captcha, one request
a second. Rows name companies, not people, so GDPR / CCPA rarely apply.

### 🧩 More Actors from the same developer

- **[Food Import Refusals in Japan by Exporter](https://apify.com/rich_minds/import-refusals-ai)** — Was this supplier refused in Japan?
- **[OFAC Sanctions Screening](https://apify.com/rich_minds/counterparty-check-ai)** — Screen the winners before you call.
- **[Company Directory Scraper](https://apify.com/rich_minds/b2b-directory-companies-ai)** — Companies in your industry, with phones.
- **[Indian Suppliers Price List](https://apify.com/rich_minds/india-b2b-suppliers-ai)** — What Indian sellers ask per tonne for these foods.
- **[Spice Association Members](https://apify.com/rich_minds/trade-association-members-ai)** — Spice association members as a vetted buyer list.
- **[Top Importers List Finder](https://apify.com/rich_minds/importer-list-extractor-ai)** — Private importers of the same foods.

### 🆘 Support

Open an issue on the Actor's page.

### 📝 Changelog

- **0.2.4** (2026-11-25) — SAM.gov bids past their deadline dropped; public notice link; coverage note in the status line.
- **0.2.3** (2026-11-25) — SAM.gov open bids actually arrive: the search reads each food code (8905 … 8970), your products' codes first, at most `samMaxCalls` (API) — 8 — a run under a free key's 10 calls a day; codes not read and a spent quota are named in the status. A bid past its response deadline is dropped free; `documentsUrl` is the public sam.gov notice page.
- **0.2.2** (2026-11-24) — Open bids get up to half of `maxQualified` — big awards no longer crowd out the UN / SAM.gov notices you asked for.
- **0.2.1** (2026-11-24) — Open UN food tenders from UNGM (`includeUngm`, off by default); `setAside` on open bids; open bids are read before the awards, so a small `maxQualified` keeps them; a clear refusal for a key SAM.gov does not accept. `webhookUrl` moved off the form ("Send alerts to" takes the same URL).
- **0.1.6** (2026-11-24) — Who may sell into each award; the contracting officer on open bids; fiscal year; a "New FY 2027" search.
- **0.1.5** (2026-11-24) — Where the AI runs (model access or your own key; the model is an API setting).
- **0.1.4** (2026-11-24) — Real sample awards; SAM.gov pages; recompete radar; competitor watch. `tenderUrl` and the webhook keys `award` / `awards` are deprecated, removed in 0.3 on 2027-02-28.
- **Coming next** — EU / UK food tenders, the incumbent on each open bid, subawards, WFP awards (dates in `docs/ROADMAP.md`).

# Actor input Schema

## `preset` (type: `string`):

Pick a ready search and press Start: it replaces the sample awards below (the untouched sample counts as empty) and runs the live search of USAspending's public API inside the run — any Apify plan, no key; a value you typed yourself always wins. The status names what ran. <b>Custom</b> = fill the fields yourself.

## `products` (type: `array`):

The words you export, matched whole-word in each award's description and product class: <code>rice</code>, <code>spices</code>, <code>pistachio</code>, <code>frozen chicken</code>. Awards without a match are dropped free. Your own words next to the untouched sample start the live search — USAspending's public API read inside this Actor: any Apify plan, no key, only qualified awards charged.

## `goalDescription` (type: `string`):

What you export and whom you want to reach, e.g. "Exporter of rice and spices looking for the US importers and distributors that hold federal food contracts." The AI scores every award against it. With <b>Your product words</b> empty, the food words in it (rice, spices …) become the search — the status lists them.

## `samGovApiKey` (type: `string`):

Get your free key in 1 minute: sign in at <a href='https://sam.gov/profile/details'>sam.gov/profile/details</a>, request a Public API key, paste it here. The run then also delivers the OPEN food bids you can still win — deadline and documents link — charged like awards when they qualify. Stored encrypted, never logged.

## `includeUngm` (type: `boolean`):

Off (default): US federal food only. On: the run also reads the OPEN UN food tenders on <a href='https://www.ungm.org/Public/Notice'>UNGM</a> (WFP, UNICEF, FAO …, UNSPSC 50) itself: no key, no second bill, ≈ 30 s more. A UN notice is kept only when it names one of <b>Your product words</b>; charged like an award when it qualifies.

## `minScore` (type: `integer`):

The field that decides what you pay: awards scoring below this are discarded and <b>not charged</b>. Raise it to pay only for the biggest, best-matching awards, lower it to see more.

## `maxQualified` (type: `integer`):

Hard cap on results — and the ceiling of what <b>this Actor</b> charges: at most this many awards × $0.009 with the AI on, × $0.0025 with it off, after your 25 free ones. The biggest, best-scoring awards are output first. Affects what you pay.

## `maxDiscoveryChargeUsd` (type: `number`):

API only — hidden on the form. Only used when <b>Use the UN-notices Store scraper as a fallback</b> is on: the hard cap on what that Store Actor run may charge your account — $0.50 for an API call that leaves it out. The default live search (USAspending's public API) costs nothing on your account, so this cap is never reached by it.

## `enableAi` (type: `boolean`):

Scores each award against your goal and writes the first line. <b>On = $0.009 per qualified award + ≈ $0.0031 AI tokens; off = $0.0025.</b> Needs Apify model access (Starter and up; not measured on the platform yet) or your own free Gemini key — otherwise you get the rules row at $0.0025.

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

USAspending Product/Service Codes the live search asks for: <code>89</code> = every Subsistence class; a 4-digit code narrows it to one group (8915 fruits & vegetables, 8950 condiments & spices, 8955 coffee / tea / cocoa, 8970 composite food packages …). The built-in table of 89xx classes is in the README. Pasted rows outside these codes are dropped free. Affects how many awards are found and so what you pay. Left out, a search reads all of 89 (Subsistence).

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

Agency or sub-agency names, matched as text in the award's buyer and buying unit: <code>Defense Logistics Agency</code>, <code>Department of Agriculture</code>, <code>Veterans Affairs</code>, <code>Bureau of Prisons</code>. Empty = every federal buyer. Typing one next to the untouched sample starts the live search (any Apify plan, no key).

## `incumbents` (type: `array`):

Supplier names or UEIs (e.g. <code>ADM Rice</code>, <code>SAMPLE…</code>): the live search returns only the awards these recipients won, biggest first — your rivals' wins, their agencies and their terms ending soon. Empty = every recipient. Typing one next to the untouched sample starts the live search (any Apify plan, no key).

## `periodDays` (type: `integer`):

Awards whose start date falls in the last N days (365 = the last 12 months). A scheduled run replaces it with the days since the last run of this search, so a weekly schedule reads the week's new awards. <b>Since</b> / <b>Until</b> below override it. Affects how many awards are found and so what you pay.

## `since` (type: `string`):

API only — hidden on the form. Start of the award period as an ISO date; empty = the last N days above.

## `until` (type: `string`):

API only — hidden on the form. End of the award period as an ISO date; empty = today.

## `minAmountUsd` (type: `number`):

Awards under this amount are dropped before scoring and never charged — 0 keeps every award. Try 100000 to see only the volume buyers.

## `awardTypes` (type: `array`):

Which award types the live search asks for. Default: the four contract types (BPA call, purchase order, delivery order, definitive contract) — the status counts the framework vehicles (IDVs) this leaves out, never charged. Add the framework types for the vehicles buyers order against, the grant types for USDA food-donation grants (matched by your product words only). Affects how many awards are found and so what you pay.

## `targetFlags` (type: `array`):

Only deliver awards that have at least one of these flags, and rank those with more of them higher. Leave empty to keep everything. An API call passes the flag names from the README's flag table, e.g. <code>large_award</code> (<code>largeAward</code> works too); an unknown name stops the run at once with the list of valid ones.

## `suppressionList` (type: `array`):

Recipient names, UEIs, URLs or ids to never output (your existing customers, your own company). Suppressed awards are skipped before any processing and never charged.

## `allowList` (type: `array`):

API only — hidden on the form. Recipient names, UEIs or URLs no free rule may drop (an award a product-word or agency rule skipped last run — OUTPUT.skips names them). They still need to pass minScore.

## `enrichDetails` (type: `boolean`):

On: every delivered award is enriched from USAspending's award detail — the contract PIID, the recipient's address and country, its parent company, whether it is a small business, the place of performance and the full product / industry descriptions. One extra free API call per delivered award (≈ 1 s each); off by default to keep runs fast. Price unchanged.

## `llmProvider` (type: `string`):

<b>Apify (no keys)</b> — the AI runs through Apify's built-in OpenRouter proxy (Starter plan and up); tokens are billed to your Apify account. <b>My own key</b> — your OpenAI / Anthropic / Gemini / Groq key. Own-key pace, measured 2026-11-24: ≈ 0.9–41 s per award with a google:gemini-3.5-flash-lite key — 0.9–6.6 s (≈ 9 awards a minute) while it answers, 41 s once a free key's rate limit hits; those waits stop after 60 s and the rest keep their rule score. On a free key expect 2–6 AI checks per run (2–6 of 6 measured 2026-11-24); a paid Groq / Gemini key (billing on) assesses every award. API timeout: 3600 s (the run pushes what is ready before it); a key that answers needs ≈ 8 s per award plus 300 s.

## `llmModel` (type: `string`):

API only — hidden on the form. Leave empty for the default (<code>anthropic/claude-haiku-4.5</code>). Apify mode takes an OpenRouter slug such as <code>openai/gpt-4.1-mini</code>; own-key mode takes <code>provider:model</code>, default <code>google:gemini-3.5-flash-lite</code>, e.g. <code>groq:openai/gpt-oss-120b</code>.

## `llmApiKey` (type: `string`):

Required when <b>AI model access</b> is <i>My own API key</i>. Stored encrypted by Apify, never logged.

## `aiCandidateMultiplier` (type: `integer`):

API only — hidden on the form. How many of the best rule-scored awards get the AI pass, as a multiple of <b>Max qualified</b>. Higher = more thorough, slower, more tokens.

## `sendAlertsTo` (type: `string`):

Paste one or more URLs, one per line — the service is detected from the address: a Slack or Discord channel webhook, a Teams Workflows or Google Chat space webhook, your Telegram bot's send link (<code>https://api.telegram.org/bot\<token>/sendMessage?chat_id=@yourchannel</code>) or any other https URL (Zapier, Make, n8n, your CRM), which gets the awards as JSON. After every run with at least one new award, the digest (how many are new, the dollars awarded, the top 10 with links) is posted there. Never sent for the free demo. Headers, batching and signing: <i>Delivery details (advanced)</i>.

## `notifyEmail` (type: `string`):

After every run with new awards the digest (top 10 with links, dollars awarded, top recipient) is e-mailed here; scheduled weekly, only new awards arrive. Sent by Apify's send-mail Actor, so it needs a plan that runs Store Actors (Starter and up); on any plan put a Slack, Teams or Telegram URL in Send alerts to, above. Never sent for the free demo.

## `dedupeAcrossRuns` (type: `boolean`):

Remembers every award you were charged for (in a named key-value store on your account) and skips it in future runs. An award whose amount or last-modified date changed comes back once, flagged <code>modified</code>.

## `dedupeTtlDays` (type: `integer`):

API only — hidden on the form. How long a delivered award stays remembered. 0 = never deliver or charge it again (a modified award still comes back once). A number of days lets the same award reach you again after that many days — charged again as a new award.

## `historyDatasetName` (type: `string`):

API only — hidden on the form. Optional. Type a name (e.g. <code>food-awards-log</code>) and every run appends its new awards with the date to that named dataset on your account — one list across months to connect to Google Sheets or your BI tool once. Empty = off. Costs nothing extra.

## `sourceMode` (type: `string`):

<code>{}</code> over the API runs the free demo — nothing charged; any search term runs the live search. One rule for agents: no search field = the free demo, any search field (product words, agencies, competitors, food classes, dates) = the live search, <b>list</b> / <b>dataset</b> only when you send them. <b>live</b> — this Actor reads USAspending's public API itself, any Apify plan, no key. <b>dataset</b> — an existing Apify dataset. <b>list</b> — awards you paste in; you pay only for the analysis. The mode you choose with your own records always runs; only the untouched sample next to a typed search switches to the live search (Console form).

## `maxAwardsToScan` (type: `integer`):

API only — hidden on the form. Affects what you pay: the scan cap decides how many awards can qualify (at most this many × $0.009 with the AI on, after your 25 free). How many awards the live search reads from USAspending (100 a page, biggest first) before your product words and filters are applied; the read itself is free and costs ≈ 1 s a page. A scheduled run doubles it when left at the default. Raise it when the status says the scan cap was hit.

## `samMaxCalls` (type: `integer`):

API only — hidden on the form. SAM.gov is read one food code at a time (8905 meat … 8970 composite packages; 13 codes, the codes of <b>Your product words</b> first). A SAM.gov key with no role allows 10 calls a day (1,000 with a role), so the default 8 leaves room for a daily schedule; the codes not read are listed in <code>OUTPUT.samGovCodes.notRead</code> and the status.

## `useStoreFallback` (type: `boolean`):

API only — hidden on the form. Off (default): when USAspending's API cannot be read the run ends with the reason and nothing charged. On: the run then starts <code>automation-lab/ungm-tender-notices-scraper</code> on your account (UN tender notices, ≈ $0.01 a notice there, capped by <b>Max source spend</b>; needs a plan that runs Store Actors) and delivers its notices as open rows.

## `autoSwitchToLive` (type: `boolean`):

API only — hidden on the form. On (default): a search field sent next to the untouched sample records starts the live search — on the Console and over the API alike (<code>OUTPUT.switchedToLive</code> names them). Off: the mode you send is the mode that runs and the status names the terms it did not search.

## `failOnSourceError` (type: `boolean`):

API only — hidden on the form. Off (default): a Store fallback your plan cannot run ends SUCCEEDED with 0 rows and <code>OUTPUT.ok: false</code>. On: the same run ends FAILED with the same message, so a schedule's or an API pipeline's failed-run alert fires. Turn it on for every schedule.

## `datasetId` (type: `string`):

Only for <b>dataset</b> mode. Pick the dataset so the Actor is granted read access to it.

## `itemsList` (type: `array`):

Only for <b>list</b> mode. JSON array of objects — a row of this Actor's output, a raw USAspending <code>spending_by_award</code> result, or your own sheet with <code>awardedTo</code>, <code>buyer</code>, <code>title</code>, <code>awardValueUsd</code>, <code>awardedOn</code>, <code>pscCode</code>, <code>url</code> (the README's <i>List-mode rows</i> table names every field) — a row without a recipient or title is skipped and counted in the status.

## `discoveryActorId` (type: `string`):

API only — hidden on the form. The Store Actor the fallback runs on your account when <b>Use the UN-notices Store scraper as a fallback</b> is on. Any Actor whose output has the fields listed in the README works.

## `discoveryInput` (type: `object`):

API only — hidden on the form. Extra input passed to the Store fallback Actor as-is (its own search terms, limits…) on top of the defaults built from your product words; see that Actor's input schema.

## `maxToProcess` (type: `integer`):

API only — hidden on the form. Upper bound on how many awards are scored in one run (controls run time). Default = 3 × max qualified.

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

API only — hidden on the form (<b>Send alerts to</b> takes the same URL). Qualified awards are POSTed here as JSON (Zapier, Make, n8n, your CRM). For Google Sheets / Slack you can also use Apify's built-in Integrations tab. Stored encrypted — Zapier / Make hook URLs carry their secret in the path.

## `webhookHeaders` (type: `object`):

API only — hidden on the form. Extra HTTP headers for the webhook, e.g. <code>{"Authorization": "Bearer …"}</code>. Stored encrypted by Apify, never logged.

## `webhookBatchSize` (type: `integer`):

API only — hidden on the form. 1 = one POST per award the moment it is ready. Higher = one POST per N awards.

## `webhookSecret` (type: `string`):

API only — hidden on the form. Any random string. Every webhook POST then carries <code>X-Signature: sha256=\<HMAC-SHA256 of the raw body with this secret></code>, so your endpoint can verify it came from this Actor. Stored encrypted by Apify, never logged.

## `dedupeStoreName` (type: `string`):

API only — hidden on the form. Key-value store used for cross-run memory. Left at the default, the memory is kept per source: adding a product word, a PSC code or an agency keeps it (an award has one id whichever term finds it), rewording <code>goalDescription</code> keeps it, and each set of target flags / award types keeps its own. Running it for several clients on one account, type one name per client.

## `discoveryTimeoutSecs` (type: `integer`):

API only — hidden on the form. How long the Store fallback Actor may run before its partial results are used — never more than 60 % of the run's time left, so the AI, the charges and the digest keep the rest.

## `slackWebhookUrl` (type: `string`):

API only — hidden on the form, where <code>sendAlertsTo</code> takes it. Slack incoming-webhook URL for the digest.

## `discordWebhookUrl` (type: `string`):

API only — hidden on the form, where <code>sendAlertsTo</code> takes it. Discord channel webhook URL for the digest.

## `teamsWebhookUrl` (type: `string`):

API only — hidden on the form, where <code>sendAlertsTo</code> takes it. Teams Workflows webhook URL for the digest.

## `googleChatWebhookUrl` (type: `string`):

API only — hidden on the form, where <code>sendAlertsTo</code> takes it. Google Chat space webhook URL for the digest.

## `telegramUrl` (type: `string`):

API only — hidden on the form, where <code>sendAlertsTo</code> takes it. The bot's sendMessage link with its chat_id.

## `reportBrandName` (type: `string`):

API only — hidden on the form. A client or company name shown as the heading of the forwarded REPORT page and the digest, so a consultant running one task per exporter forwards a branded page.

## Actor input object example

```json
{
  "preset": "custom",
  "products": [
    "rice",
    "cumin",
    "coffee",
    "pistachio"
  ],
  "includeUngm": false,
  "minScore": 50,
  "maxQualified": 100,
  "maxDiscoveryChargeUsd": 0.5,
  "enableAi": true,
  "periodDays": 365,
  "minAmountUsd": 0,
  "awardTypes": [
    "A",
    "B",
    "C",
    "D"
  ],
  "enrichDetails": false,
  "llmProvider": "apify",
  "aiCandidateMultiplier": 2,
  "dedupeAcrossRuns": true,
  "dedupeTtlDays": 0,
  "historyDatasetName": "",
  "sourceMode": "list",
  "maxAwardsToScan": 2000,
  "samMaxCalls": 8,
  "useStoreFallback": false,
  "autoSwitchToLive": true,
  "failOnSourceError": false,
  "itemsList": [
    {
      "awardedTo": "ADM RICE INC",
      "awardedToUei": "LJA7RS89WNQ3",
      "awardId": "121NTB26C0022",
      "buyer": "Department of Agriculture",
      "buyerUnit": "Agricultural Marketing Service",
      "title": "COMMODITIES FOR USG FOOD DONATIONS: 2000011325/4210007552/RICE, MILLED BULK",
      "pscCode": "8920",
      "product": "BAKERY AND CEREAL PRODUCTS",
      "naicsCode": "311212",
      "awardValueUsd": 15622474,
      "awardedOn": "2026-05-13",
      "endsOn": "2026-07-20",
      "lastModified": "2026-08-28",
      "awardType": "DEFINITIVE CONTRACT",
      "placeOfPerformance": "LA, USA",
      "description": "milled bulk rice for USDA food donations",
      "url": "https://www.usaspending.gov/award/CONT_AWD_121NTB26C0022_12K2_-NONE-_-NONE-"
    },
    {
      "awardedTo": "SUPREME RICE, LLC",
      "awardedToUei": "NELHRV2LMSQ5",
      "awardId": "123J1426C1732",
      "buyer": "Department of Agriculture",
      "buyerUnit": "Agricultural Marketing Service",
      "title": "COMMODITIES FOR USG FOOD DONATIONS: 2000011408/4100034792/RICE US#2 LONG GRAIN PKG-24/1 LB,RICE BRN US#1 LONG PARBOILED BAG-25 LB,RICE US#2 LONG GRAIN PKG-30/2 LB,RICE US#1 LONG GRAIN PARBOILED BAG-25 LB,RICE BRN US#1 LONG PARBOILED PKG-24/2 LB,RICE",
      "pscCode": "8920",
      "product": "BAKERY AND CEREAL PRODUCTS",
      "naicsCode": "311212",
      "awardValueUsd": 3674242.86,
      "awardedOn": "2026-08-13",
      "endsOn": "2026-12-31",
      "lastModified": "2026-11-12",
      "awardType": "DEFINITIVE CONTRACT",
      "placeOfPerformance": "LA, USA",
      "description": "long-grain rice for USDA food donations; the term ends 2026-12-31",
      "url": "https://www.usaspending.gov/award/CONT_AWD_123J1426C1732_12K2_-NONE-_-NONE-"
    },
    {
      "awardedTo": "READYWISE, INC.",
      "awardedToUei": "XGPKY8DB12U6",
      "awardId": "SPE3S126F0190",
      "buyer": "Department of Defense",
      "buyerUnit": "Defense Logistics Agency",
      "title": "8511793573!CHICKEN AND RICE,CO",
      "pscCode": "8940",
      "product": "SPECIAL DIETARY FOODS AND FOOD SPECIALTY PREPARATIONS",
      "naicsCode": "311423",
      "awardValueUsd": 1080400,
      "awardedOn": "2025-12-04",
      "endsOn": "2026-04-01",
      "lastModified": "2025-12-04",
      "awardType": "DELIVERY ORDER",
      "placeOfPerformance": "UT, USA",
      "description": "chicken and rice meals for the Defense Logistics Agency",
      "url": "https://www.usaspending.gov/award/CONT_AWD_SPE3S126F0190_9700_SPE3S125DZ202_9700"
    },
    {
      "awardedTo": "COASTAL PACIFIC FOOD DISTRIBUTORS, INC.",
      "awardedToUei": "VKECVUW3CLT4",
      "awardId": "SPE30026F1ZWD",
      "buyer": "Department of Defense",
      "buyerUnit": "Defense Logistics Agency",
      "title": "4572480222!CUMIN, GRD,",
      "pscCode": "8950",
      "product": "CONDIMENTS AND RELATED PRODUCTS",
      "naicsCode": "311812",
      "awardValueUsd": 45988.89,
      "awardedOn": "2026-07-24",
      "endsOn": "2026-08-12",
      "lastModified": "2026-11-03",
      "awardType": "DELIVERY ORDER",
      "placeOfPerformance": "CA, USA",
      "description": "ground cumin for the Defense Logistics Agency",
      "url": "https://www.usaspending.gov/award/CONT_AWD_SPE30026F1ZWD_9700_SPE30026D3003_9700"
    },
    {
      "awardedTo": "KINRO MANUFACTURING LLC",
      "awardedToUei": "JH21H3GAZGH1",
      "awardId": "SPE3S126F1242",
      "buyer": "Department of Defense",
      "buyerUnit": "Defense Logistics Agency",
      "title": "8512218180!COFFEE,ROASTED",
      "pscCode": "8955",
      "product": "COFFEE, TEA, AND COCOA",
      "naicsCode": "311920",
      "awardValueUsd": 1667580,
      "awardedOn": "2026-07-07",
      "endsOn": "2026-08-14",
      "lastModified": "2026-07-27",
      "awardType": "DELIVERY ORDER",
      "placeOfPerformance": "FL, USA",
      "description": "roasted coffee for the Defense Logistics Agency",
      "url": "https://www.usaspending.gov/award/CONT_AWD_SPE3S126F1242_9700_SPE3S122DZ250_9700"
    },
    {
      "awardedTo": "OCEAN FAIR INTERNATIONAL SHIP CHANDLEING LLC",
      "awardedToUei": "VUNJK3HWKJY7",
      "awardId": "SPE30026F0LRE",
      "buyer": "Department of Defense",
      "buyerUnit": "Defense Logistics Agency",
      "title": "4571812340!PISTACHIOS, SHL,",
      "pscCode": "8925",
      "product": "SUGAR, CONFECTIONERY, AND NUTS",
      "naicsCode": "311812",
      "awardValueUsd": 72872.64,
      "awardedOn": "2026-05-13",
      "endsOn": "2026-05-17",
      "lastModified": "2026-07-17",
      "awardType": "DELIVERY ORDER",
      "placeOfPerformance": "ARE",
      "description": "shelled pistachio nuts for the Defense Logistics Agency",
      "url": "https://www.usaspending.gov/award/CONT_AWD_SPE30026F0LRE_9700_SPE30026D4002_9700"
    }
  ],
  "discoveryActorId": "automation-lab/ungm-tender-notices-scraper",
  "discoveryInput": {},
  "webhookBatchSize": 1,
  "dedupeStoreName": "food-tenders-ai-seen",
  "discoveryTimeoutSecs": 3600,
  "reportBrandName": ""
}
```

# Actor output Schema

## `qualified` (type: `string`):

All qualified awards as JSON, best-scoring first.

## `sheet` (type: `string`):

The same awards as a spreadsheet.

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

JSON record with the funnel (loaded -> filtered -> AI-assessed -> qualified), per-reason skip counts, charged events by type, free-tier awards used and remaining, whether a budget limit was reached, webhook delivery counts and the dedupe store size.

# 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 = {
    "products": [
        "rice",
        "cumin",
        "coffee",
        "pistachio"
    ],
    "maxDiscoveryChargeUsd": 0.5,
    "sourceMode": "list",
    "itemsList": [
        {
            "awardedTo": "ADM RICE INC",
            "awardedToUei": "LJA7RS89WNQ3",
            "awardId": "121NTB26C0022",
            "buyer": "Department of Agriculture",
            "buyerUnit": "Agricultural Marketing Service",
            "title": "COMMODITIES FOR USG FOOD DONATIONS: 2000011325/4210007552/RICE, MILLED BULK",
            "pscCode": "8920",
            "product": "BAKERY AND CEREAL PRODUCTS",
            "naicsCode": "311212",
            "awardValueUsd": 15622474,
            "awardedOn": "2026-05-13",
            "endsOn": "2026-07-20",
            "lastModified": "2026-08-28",
            "awardType": "DEFINITIVE CONTRACT",
            "placeOfPerformance": "LA, USA",
            "description": "milled bulk rice for USDA food donations",
            "url": "https://www.usaspending.gov/award/CONT_AWD_121NTB26C0022_12K2_-NONE-_-NONE-"
        },
        {
            "awardedTo": "SUPREME RICE, LLC",
            "awardedToUei": "NELHRV2LMSQ5",
            "awardId": "123J1426C1732",
            "buyer": "Department of Agriculture",
            "buyerUnit": "Agricultural Marketing Service",
            "title": "COMMODITIES FOR USG FOOD DONATIONS: 2000011408/4100034792/RICE US#2 LONG GRAIN PKG-24/1 LB,RICE BRN US#1 LONG PARBOILED BAG-25 LB,RICE US#2 LONG GRAIN PKG-30/2 LB,RICE US#1 LONG GRAIN PARBOILED BAG-25 LB,RICE BRN US#1 LONG PARBOILED PKG-24/2 LB,RICE",
            "pscCode": "8920",
            "product": "BAKERY AND CEREAL PRODUCTS",
            "naicsCode": "311212",
            "awardValueUsd": 3674242.86,
            "awardedOn": "2026-08-13",
            "endsOn": "2026-12-31",
            "lastModified": "2026-11-12",
            "awardType": "DEFINITIVE CONTRACT",
            "placeOfPerformance": "LA, USA",
            "description": "long-grain rice for USDA food donations; the term ends 2026-12-31",
            "url": "https://www.usaspending.gov/award/CONT_AWD_123J1426C1732_12K2_-NONE-_-NONE-"
        },
        {
            "awardedTo": "READYWISE, INC.",
            "awardedToUei": "XGPKY8DB12U6",
            "awardId": "SPE3S126F0190",
            "buyer": "Department of Defense",
            "buyerUnit": "Defense Logistics Agency",
            "title": "8511793573!CHICKEN AND RICE,CO",
            "pscCode": "8940",
            "product": "SPECIAL DIETARY FOODS AND FOOD SPECIALTY PREPARATIONS",
            "naicsCode": "311423",
            "awardValueUsd": 1080400,
            "awardedOn": "2025-12-04",
            "endsOn": "2026-04-01",
            "lastModified": "2025-12-04",
            "awardType": "DELIVERY ORDER",
            "placeOfPerformance": "UT, USA",
            "description": "chicken and rice meals for the Defense Logistics Agency",
            "url": "https://www.usaspending.gov/award/CONT_AWD_SPE3S126F0190_9700_SPE3S125DZ202_9700"
        },
        {
            "awardedTo": "COASTAL PACIFIC FOOD DISTRIBUTORS, INC.",
            "awardedToUei": "VKECVUW3CLT4",
            "awardId": "SPE30026F1ZWD",
            "buyer": "Department of Defense",
            "buyerUnit": "Defense Logistics Agency",
            "title": "4572480222!CUMIN, GRD,",
            "pscCode": "8950",
            "product": "CONDIMENTS AND RELATED PRODUCTS",
            "naicsCode": "311812",
            "awardValueUsd": 45988.89,
            "awardedOn": "2026-07-24",
            "endsOn": "2026-08-12",
            "lastModified": "2026-11-03",
            "awardType": "DELIVERY ORDER",
            "placeOfPerformance": "CA, USA",
            "description": "ground cumin for the Defense Logistics Agency",
            "url": "https://www.usaspending.gov/award/CONT_AWD_SPE30026F1ZWD_9700_SPE30026D3003_9700"
        },
        {
            "awardedTo": "KINRO MANUFACTURING LLC",
            "awardedToUei": "JH21H3GAZGH1",
            "awardId": "SPE3S126F1242",
            "buyer": "Department of Defense",
            "buyerUnit": "Defense Logistics Agency",
            "title": "8512218180!COFFEE,ROASTED",
            "pscCode": "8955",
            "product": "COFFEE, TEA, AND COCOA",
            "naicsCode": "311920",
            "awardValueUsd": 1667580,
            "awardedOn": "2026-07-07",
            "endsOn": "2026-08-14",
            "lastModified": "2026-07-27",
            "awardType": "DELIVERY ORDER",
            "placeOfPerformance": "FL, USA",
            "description": "roasted coffee for the Defense Logistics Agency",
            "url": "https://www.usaspending.gov/award/CONT_AWD_SPE3S126F1242_9700_SPE3S122DZ250_9700"
        },
        {
            "awardedTo": "OCEAN FAIR INTERNATIONAL SHIP CHANDLEING LLC",
            "awardedToUei": "VUNJK3HWKJY7",
            "awardId": "SPE30026F0LRE",
            "buyer": "Department of Defense",
            "buyerUnit": "Defense Logistics Agency",
            "title": "4571812340!PISTACHIOS, SHL,",
            "pscCode": "8925",
            "product": "SUGAR, CONFECTIONERY, AND NUTS",
            "naicsCode": "311812",
            "awardValueUsd": 72872.64,
            "awardedOn": "2026-05-13",
            "endsOn": "2026-05-17",
            "lastModified": "2026-07-17",
            "awardType": "DELIVERY ORDER",
            "placeOfPerformance": "ARE",
            "description": "shelled pistachio nuts for the Defense Logistics Agency",
            "url": "https://www.usaspending.gov/award/CONT_AWD_SPE30026F0LRE_9700_SPE30026D4002_9700"
        }
    ],
    "discoveryInput": {}
};

// Run the Actor and wait for it to finish
const run = await client.actor("rich_minds/food-tenders-ai").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 = {
    "products": [
        "rice",
        "cumin",
        "coffee",
        "pistachio",
    ],
    "maxDiscoveryChargeUsd": 0.5,
    "sourceMode": "list",
    "itemsList": [
        {
            "awardedTo": "ADM RICE INC",
            "awardedToUei": "LJA7RS89WNQ3",
            "awardId": "121NTB26C0022",
            "buyer": "Department of Agriculture",
            "buyerUnit": "Agricultural Marketing Service",
            "title": "COMMODITIES FOR USG FOOD DONATIONS: 2000011325/4210007552/RICE, MILLED BULK",
            "pscCode": "8920",
            "product": "BAKERY AND CEREAL PRODUCTS",
            "naicsCode": "311212",
            "awardValueUsd": 15622474,
            "awardedOn": "2026-05-13",
            "endsOn": "2026-07-20",
            "lastModified": "2026-08-28",
            "awardType": "DEFINITIVE CONTRACT",
            "placeOfPerformance": "LA, USA",
            "description": "milled bulk rice for USDA food donations",
            "url": "https://www.usaspending.gov/award/CONT_AWD_121NTB26C0022_12K2_-NONE-_-NONE-",
        },
        {
            "awardedTo": "SUPREME RICE, LLC",
            "awardedToUei": "NELHRV2LMSQ5",
            "awardId": "123J1426C1732",
            "buyer": "Department of Agriculture",
            "buyerUnit": "Agricultural Marketing Service",
            "title": "COMMODITIES FOR USG FOOD DONATIONS: 2000011408/4100034792/RICE US#2 LONG GRAIN PKG-24/1 LB,RICE BRN US#1 LONG PARBOILED BAG-25 LB,RICE US#2 LONG GRAIN PKG-30/2 LB,RICE US#1 LONG GRAIN PARBOILED BAG-25 LB,RICE BRN US#1 LONG PARBOILED PKG-24/2 LB,RICE",
            "pscCode": "8920",
            "product": "BAKERY AND CEREAL PRODUCTS",
            "naicsCode": "311212",
            "awardValueUsd": 3674242.86,
            "awardedOn": "2026-08-13",
            "endsOn": "2026-12-31",
            "lastModified": "2026-11-12",
            "awardType": "DEFINITIVE CONTRACT",
            "placeOfPerformance": "LA, USA",
            "description": "long-grain rice for USDA food donations; the term ends 2026-12-31",
            "url": "https://www.usaspending.gov/award/CONT_AWD_123J1426C1732_12K2_-NONE-_-NONE-",
        },
        {
            "awardedTo": "READYWISE, INC.",
            "awardedToUei": "XGPKY8DB12U6",
            "awardId": "SPE3S126F0190",
            "buyer": "Department of Defense",
            "buyerUnit": "Defense Logistics Agency",
            "title": "8511793573!CHICKEN AND RICE,CO",
            "pscCode": "8940",
            "product": "SPECIAL DIETARY FOODS AND FOOD SPECIALTY PREPARATIONS",
            "naicsCode": "311423",
            "awardValueUsd": 1080400,
            "awardedOn": "2025-12-04",
            "endsOn": "2026-04-01",
            "lastModified": "2025-12-04",
            "awardType": "DELIVERY ORDER",
            "placeOfPerformance": "UT, USA",
            "description": "chicken and rice meals for the Defense Logistics Agency",
            "url": "https://www.usaspending.gov/award/CONT_AWD_SPE3S126F0190_9700_SPE3S125DZ202_9700",
        },
        {
            "awardedTo": "COASTAL PACIFIC FOOD DISTRIBUTORS, INC.",
            "awardedToUei": "VKECVUW3CLT4",
            "awardId": "SPE30026F1ZWD",
            "buyer": "Department of Defense",
            "buyerUnit": "Defense Logistics Agency",
            "title": "4572480222!CUMIN, GRD,",
            "pscCode": "8950",
            "product": "CONDIMENTS AND RELATED PRODUCTS",
            "naicsCode": "311812",
            "awardValueUsd": 45988.89,
            "awardedOn": "2026-07-24",
            "endsOn": "2026-08-12",
            "lastModified": "2026-11-03",
            "awardType": "DELIVERY ORDER",
            "placeOfPerformance": "CA, USA",
            "description": "ground cumin for the Defense Logistics Agency",
            "url": "https://www.usaspending.gov/award/CONT_AWD_SPE30026F1ZWD_9700_SPE30026D3003_9700",
        },
        {
            "awardedTo": "KINRO MANUFACTURING LLC",
            "awardedToUei": "JH21H3GAZGH1",
            "awardId": "SPE3S126F1242",
            "buyer": "Department of Defense",
            "buyerUnit": "Defense Logistics Agency",
            "title": "8512218180!COFFEE,ROASTED",
            "pscCode": "8955",
            "product": "COFFEE, TEA, AND COCOA",
            "naicsCode": "311920",
            "awardValueUsd": 1667580,
            "awardedOn": "2026-07-07",
            "endsOn": "2026-08-14",
            "lastModified": "2026-07-27",
            "awardType": "DELIVERY ORDER",
            "placeOfPerformance": "FL, USA",
            "description": "roasted coffee for the Defense Logistics Agency",
            "url": "https://www.usaspending.gov/award/CONT_AWD_SPE3S126F1242_9700_SPE3S122DZ250_9700",
        },
        {
            "awardedTo": "OCEAN FAIR INTERNATIONAL SHIP CHANDLEING LLC",
            "awardedToUei": "VUNJK3HWKJY7",
            "awardId": "SPE30026F0LRE",
            "buyer": "Department of Defense",
            "buyerUnit": "Defense Logistics Agency",
            "title": "4571812340!PISTACHIOS, SHL,",
            "pscCode": "8925",
            "product": "SUGAR, CONFECTIONERY, AND NUTS",
            "naicsCode": "311812",
            "awardValueUsd": 72872.64,
            "awardedOn": "2026-05-13",
            "endsOn": "2026-05-17",
            "lastModified": "2026-07-17",
            "awardType": "DELIVERY ORDER",
            "placeOfPerformance": "ARE",
            "description": "shelled pistachio nuts for the Defense Logistics Agency",
            "url": "https://www.usaspending.gov/award/CONT_AWD_SPE30026F0LRE_9700_SPE30026D4002_9700",
        },
    ],
    "discoveryInput": {},
}

# Run the Actor and wait for it to finish
run = client.actor("rich_minds/food-tenders-ai").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 '{
  "products": [
    "rice",
    "cumin",
    "coffee",
    "pistachio"
  ],
  "maxDiscoveryChargeUsd": 0.5,
  "sourceMode": "list",
  "itemsList": [
    {
      "awardedTo": "ADM RICE INC",
      "awardedToUei": "LJA7RS89WNQ3",
      "awardId": "121NTB26C0022",
      "buyer": "Department of Agriculture",
      "buyerUnit": "Agricultural Marketing Service",
      "title": "COMMODITIES FOR USG FOOD DONATIONS: 2000011325/4210007552/RICE, MILLED BULK",
      "pscCode": "8920",
      "product": "BAKERY AND CEREAL PRODUCTS",
      "naicsCode": "311212",
      "awardValueUsd": 15622474,
      "awardedOn": "2026-05-13",
      "endsOn": "2026-07-20",
      "lastModified": "2026-08-28",
      "awardType": "DEFINITIVE CONTRACT",
      "placeOfPerformance": "LA, USA",
      "description": "milled bulk rice for USDA food donations",
      "url": "https://www.usaspending.gov/award/CONT_AWD_121NTB26C0022_12K2_-NONE-_-NONE-"
    },
    {
      "awardedTo": "SUPREME RICE, LLC",
      "awardedToUei": "NELHRV2LMSQ5",
      "awardId": "123J1426C1732",
      "buyer": "Department of Agriculture",
      "buyerUnit": "Agricultural Marketing Service",
      "title": "COMMODITIES FOR USG FOOD DONATIONS: 2000011408/4100034792/RICE US#2 LONG GRAIN PKG-24/1 LB,RICE BRN US#1 LONG PARBOILED BAG-25 LB,RICE US#2 LONG GRAIN PKG-30/2 LB,RICE US#1 LONG GRAIN PARBOILED BAG-25 LB,RICE BRN US#1 LONG PARBOILED PKG-24/2 LB,RICE",
      "pscCode": "8920",
      "product": "BAKERY AND CEREAL PRODUCTS",
      "naicsCode": "311212",
      "awardValueUsd": 3674242.86,
      "awardedOn": "2026-08-13",
      "endsOn": "2026-12-31",
      "lastModified": "2026-11-12",
      "awardType": "DEFINITIVE CONTRACT",
      "placeOfPerformance": "LA, USA",
      "description": "long-grain rice for USDA food donations; the term ends 2026-12-31",
      "url": "https://www.usaspending.gov/award/CONT_AWD_123J1426C1732_12K2_-NONE-_-NONE-"
    },
    {
      "awardedTo": "READYWISE, INC.",
      "awardedToUei": "XGPKY8DB12U6",
      "awardId": "SPE3S126F0190",
      "buyer": "Department of Defense",
      "buyerUnit": "Defense Logistics Agency",
      "title": "8511793573!CHICKEN AND RICE,CO",
      "pscCode": "8940",
      "product": "SPECIAL DIETARY FOODS AND FOOD SPECIALTY PREPARATIONS",
      "naicsCode": "311423",
      "awardValueUsd": 1080400,
      "awardedOn": "2025-12-04",
      "endsOn": "2026-04-01",
      "lastModified": "2025-12-04",
      "awardType": "DELIVERY ORDER",
      "placeOfPerformance": "UT, USA",
      "description": "chicken and rice meals for the Defense Logistics Agency",
      "url": "https://www.usaspending.gov/award/CONT_AWD_SPE3S126F0190_9700_SPE3S125DZ202_9700"
    },
    {
      "awardedTo": "COASTAL PACIFIC FOOD DISTRIBUTORS, INC.",
      "awardedToUei": "VKECVUW3CLT4",
      "awardId": "SPE30026F1ZWD",
      "buyer": "Department of Defense",
      "buyerUnit": "Defense Logistics Agency",
      "title": "4572480222!CUMIN, GRD,",
      "pscCode": "8950",
      "product": "CONDIMENTS AND RELATED PRODUCTS",
      "naicsCode": "311812",
      "awardValueUsd": 45988.89,
      "awardedOn": "2026-07-24",
      "endsOn": "2026-08-12",
      "lastModified": "2026-11-03",
      "awardType": "DELIVERY ORDER",
      "placeOfPerformance": "CA, USA",
      "description": "ground cumin for the Defense Logistics Agency",
      "url": "https://www.usaspending.gov/award/CONT_AWD_SPE30026F1ZWD_9700_SPE30026D3003_9700"
    },
    {
      "awardedTo": "KINRO MANUFACTURING LLC",
      "awardedToUei": "JH21H3GAZGH1",
      "awardId": "SPE3S126F1242",
      "buyer": "Department of Defense",
      "buyerUnit": "Defense Logistics Agency",
      "title": "8512218180!COFFEE,ROASTED",
      "pscCode": "8955",
      "product": "COFFEE, TEA, AND COCOA",
      "naicsCode": "311920",
      "awardValueUsd": 1667580,
      "awardedOn": "2026-07-07",
      "endsOn": "2026-08-14",
      "lastModified": "2026-07-27",
      "awardType": "DELIVERY ORDER",
      "placeOfPerformance": "FL, USA",
      "description": "roasted coffee for the Defense Logistics Agency",
      "url": "https://www.usaspending.gov/award/CONT_AWD_SPE3S126F1242_9700_SPE3S122DZ250_9700"
    },
    {
      "awardedTo": "OCEAN FAIR INTERNATIONAL SHIP CHANDLEING LLC",
      "awardedToUei": "VUNJK3HWKJY7",
      "awardId": "SPE30026F0LRE",
      "buyer": "Department of Defense",
      "buyerUnit": "Defense Logistics Agency",
      "title": "4571812340!PISTACHIOS, SHL,",
      "pscCode": "8925",
      "product": "SUGAR, CONFECTIONERY, AND NUTS",
      "naicsCode": "311812",
      "awardValueUsd": 72872.64,
      "awardedOn": "2026-05-13",
      "endsOn": "2026-05-17",
      "lastModified": "2026-07-17",
      "awardType": "DELIVERY ORDER",
      "placeOfPerformance": "ARE",
      "description": "shelled pistachio nuts for the Defense Logistics Agency",
      "url": "https://www.usaspending.gov/award/CONT_AWD_SPE30026F0LRE_9700_SPE30026D4002_9700"
    }
  ],
  "discoveryInput": {}
}' |
apify call rich_minds/food-tenders-ai --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rich_minds/food-tenders-ai"
        }
    }
}
```

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/bC2d2GOxc5dUK8bad/builds/mZKccODccRbbmdeqt/openapi.json
