Government Food Contracts: USAspending Awards & SAM.gov Bids on the Apify Store →

How to find government food contracts by product with USAspending — and get the new ones every week

Tutorial article (800–1500 words) for the Apify blog guest program, dev.to, Medium, Hashnode. Drafted with the listing by /actor-implement, refreshed with the first real run by /actor-marketing; the owner publishes it and records the URL in brief.json → marketing.links.

The problem

An exporter of rice, spices or pulses wants the US importers and distributors that already hold federal food contracts: they are verified institutional suppliers with proven volume. The US publishes every award on USAspending.gov, the Treasury's open-data site, under Product/Service Code 89 (Subsistence). By hand that is an advanced search per product class, 900+ awards a year to read, and one award page per recipient to find its UEI — about 8 minutes per award on our 5-award sample, an afternoon a week to stay current.

Step by step

  1. Click Try it on the Store page. The form opens on a free demo: five sample awards, product words rice and spices. Press Start to see the output shape (nothing charged). docs/img/shortlist.svg
  2. Type your product words ("Your product words": basmati, turmeric, lentils) — or pick a ready search such as "Rice to the US military". Your words replace the sample and the run reads USAspending's public API itself: 982 Subsistence awards of the last 12 months in 18 seconds on the first probe, no key, any Apify plan.
  3. Open the Shortlist view: one row per award — recipient with UEI, buying unit, product class, amount, award date, the award page — ranked by size, recency and your product match. The Outreach view adds the first line to send and, with the AI on, what the recipient is to you (importer / distributor / prime contractor / producer). docs/img/outreach.svg
  4. Export to CSV / Excel / Google Sheets, or forward the REPORT page.

What a run costs

The USAspending read is free — this Actor charges only per qualified award: $0.0025 by rules, $0.009 with the AI plus ≈ $0.003 of tokens (1,477 in / 318 out per award, measured 2026-11-23), the first 25 awards free. The probe: 982 scanned → 30 rice awards qualified → after the 25 free, 5 × $0.0025 = $0.0125 rules only; 5 × $0.009 = $0.045 here + ≈ 30 × $0.003 = $0.09 tokens ≈ $0.135 with the AI. A repeat weekly run delivers only the new awards.

Automate it

Schedule the saved Task weekly with your address in "E-mail me the new awards": the digest (dollars awarded, top recipient, top 10 with links) lands every Monday, and only new or modified awards are charged. From code:

from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("<your-apify-username>/food-tenders-ai").call(
    run_input={"products": ["rice", "basmati"], "pscCodes": ["89"], "maxQualified": 50, "maxDiscoveryChargeUsd": 0.5,
               "goalDescription": "Rice exporter looking for US importers holding federal food contracts."},
    timeout_secs=2400)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["awardedTo"], item["awardValueUsd"], item["score"], item["label"])

Government Food Contracts: USAspending Awards & SAM.gov Bids on the Apify Store →