Lead lists › Guides › How to set up SAM.gov bid alerts by NAICS code (no API key)

How to set up SAM.gov bid alerts by NAICS code (no API key)

SAM.gov's Contract Opportunities is where federal agencies post notices for proposed contract actions expected to exceed $25,000: solicitations, presolicitations, sources sought, award notices and more. If you only bid in a few NAICS codes or set-aside programs, checking the site by hand every day is slow, and the SAM.gov public API needs a SAM.gov account and an API key.

This guide shows how to get a daily, filtered list of new notices in your NAICS codes as a spreadsheet or an email digest.

What it costs: $0.90 per 1,000 notices returned, plus a start fee of a fraction of a cent per run. Apify's free plan includes $5 of credit a month, which covers about 5,500 records.

1. Pick your NAICS codes and set-asides

2. Run the search

  1. Open SAM.gov Opportunities on the Apify Store and press Try for free.
  2. Clear the Keywords field. The form starts with cybersecurity as an example, and a notice has to match a keyword as well as your other filters.
  3. Enter your codes under NAICS codes and pick your Set-aside types.
  4. Optionally narrow by Place of performance states, Notice types (for example Solicitation and Sources Sought) or Agency contains.
  5. Set Posted within last N days to 2. The window counts today in UTC, and the newest SAM.gov file only has notices up to the previous day, so 1 usually returns nothing.
  6. Leave Exclude notices past their response deadline on (it is on by default) and turn on Only latest notice per solicitation. SAM.gov posts amendments and follow-up notices as separate records, and this keeps only the newest one for each solicitation number.
  7. Check Max results. The form starts at 100.
  8. Press Start. When the run finishes, open the Output tab and click Export to download the results.

The same search in the JSON input view:

{ "keywords": [], "naicsCodes": ["238160", "238220"], "setAsideTypes": ["SBA", "SDVOSBC"], "noticeTypes": ["Solicitation", "Combined Synopsis/Solicitation", "Sources Sought"], "postedWithinDays": 2, "excludeExpired": true, "dedupeBySolicitation": true, "maxResults": 500 }

3. Turn it into a daily alert

Reading the results

Limits to know about

See a free sample CSV of government contract leads.


Data: SAM.gov public Contract Opportunities data extract (GSA). Loomwise is not affiliated with GSA or SAM.gov.

All guides · All lead lists