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
- NAICS codes: use your 6-digit codes, for example
238160(Roofing Contractors),238220(Plumbing, Heating, and Air-Conditioning Contractors),541512(Computer Systems Design Services) or561720(Janitorial Services). A shorter prefix such as5415matches every code that starts with it. - Set-asides: for example Total Small Business (
SBA), 8(a) (8A), HUBZone (HZC), Service-Disabled Veteran-Owned Small Business (SDVOSBC) or Women-Owned Small Business (WOSB). The codes in parentheses are the ones SAM.gov uses and the ones to type in the JSON input. Choose No set-aside / not specified (NONE) to include notices with no set-aside.
2. Run the search
- Open SAM.gov Opportunities on the Apify Store and press Try for free.
- Clear the Keywords field. The form starts with
cybersecurityas an example, and a notice has to match a keyword as well as your other filters. - Enter your codes under NAICS codes and pick your Set-aside types.
- Optionally narrow by Place of performance states, Notice types (for example Solicitation and Sources Sought) or Agency contains.
- 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, so1usually returns nothing. - 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.
- Check Max results. The form starts at 100.
- 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
- Inside Apify: save the input as a task and give it a daily schedule in the morning, US time. Schedules let you pick a time zone.
- In Google Sheets plus email: the free n8n workflow for SAM.gov bid alerts runs every day at 6:00, adds only new notices to a Google Sheet and emails you a summary. In its Configure filters node, set
postedWithinDaysto2for the reason above.
Reading the results
responseDeadlineis the date your response is due. Sort by it.noticeTypetells you the stage. A Sources Sought notice means the agency is looking for possible sources for a project. It is not a solicitation or a request for proposals, but it is a chance to tell the agency your business can do the work. Solicitation and Combined Synopsis/Solicitation notices are the ones that ask for bids, quotes or proposals.linkopens the official notice on SAM.gov, with the full text and any attachments. Always read the notice there before you bid.- Contracting-officer names, emails and phone numbers are left out, and emails and phone numbers are removed from the description snippets. Use the contacts on the SAM.gov notice itself.
Limits to know about
- Once a day. SAM.gov regenerates its public extract once a day, overnight US time, so a notice posted today usually shows up the next morning.
- Award notices are included, but without awardee details. To see who won, use the companion Federal Contract Awards tool, which uses USAspending and FPDS award data.
- Place of performance filter. When you set states, notices with no place of performance listed are left out.
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.