Guide · Government opportunities · December 2026
Get alerts for new federal contracts and grants: SAM.gov and Grants.gov
US federal agencies post thousands of contract notices and grant opportunities. A small contractor, a proposal writer or a grant writer does not need all of them. They need the ten that match their niche, posted since yesterday, while there is still time to respond. This guide shows how to set that up with the two official public sources, by hand first and then as a daily alert.
Short answer
- Contracts are on SAM.gov (its Opportunities API needs a free personal API key). Grants are on Grants.gov (its search API needs no key).
- Search by keyword, NAICS code and set-aside (contracts) or keyword and status (grants), look only at the last few days, and keep a list of IDs you have already seen so each day shows only new ones.
1. Two places, two kinds of money
Federal contract opportunities (the government wants to buy something) are published on SAM.gov. Federal grant opportunities (the government funds a project) are published on Grants.gov. They are different systems with different fields, so a search on one never shows the other. If you work in both worlds, you check both.
A contract notice can be a solicitation, a presolicitation, a combined synopsis/solicitation, a sources-sought notice (the agency asks who could do the work), a special notice or an award notice (who won). Sources-sought notices are early: responding to them is often how a small firm gets on an agency's radar. Grants can be posted (open) or forecasted (announced for later), and forecasts give you time to prepare.
2. Filters that cut the noise
On SAM.gov the useful filters are:
- Keyword: the API's title search matches the notice title only, not the full text. Use several keywords ("cybersecurity", "penetration testing") rather than one long phrase, and expect fewer results than on the website's full-text search.
- NAICS code: the industry code, 2 to 6 digits.
541512is computer systems design, for example. NAICS catches notices whose title does not contain your keyword. - Set-aside: notices reserved for certain businesses. Codes include
SBA(small business),8A,HZC(HUBZone),SDVOSBC(service-disabled veteran-owned),WOSBandEDWOSB. Only filter by the ones you actually qualify for. - State of performance, and notice type (for example only sources-sought and solicitations).
- Posted date: SAM.gov limits a posted-date window to one year. For a daily alert, 7 days back is plenty.
On Grants.gov the search takes a keyword (matched against title and description) and a status (posted, forecasted, closed, archived). Grants have no NAICS or set-aside fields, so narrow them by keyword and agency name, and check the eligibility section of each opportunity yourself.
3. Get your own free SAM.gov API key
- Sign in at sam.gov with a free account.
- Open Account Details and find API Key, then request or view the key.
- Keep it private. Anyone who has it can use your quota. You can revoke and replace it in SAM.gov at any time.
SAM.gov limits how many requests a key can make per day, and a free personal key has a small daily quota (keys of accounts with a role get a higher one). So do not search every keyword every hour: a few keyword and NAICS searches once a day fits most free keys. The Grants.gov search needs no key.
4. See only what is new
Both sources return the matching notices of a date window, not "what changed since you last looked". To get only new ones:
- After every run, save the IDs of the notices you got (SAM.gov notice ID, Grants.gov opportunity ID) for that search.
- Next run, anything not in the saved list is new. Add it to the list.
- Keep one list per search. If you share one list between two searches, changing a keyword makes old notices look new.
- The first run has nothing to compare against, so it shows everything. That is normal.
- Use a window longer than your schedule (7 days for a daily run), so a day with a delay does not lose a notice.
5. Run it every day and send the new ones to you
By hand this is a daily chore. A script or a scheduled tool can run the searches, write one row per opportunity with the same columns for contracts and grants (title, agency, type, number, posted date, deadline, days left, set-aside, NAICS, place, contact, link) and send the new rows to email, Slack or a Google Sheet. Add a deadline within N days filter if you only want what you can still answer, and hide expired ones. Check each notice on the official site before you bid or apply: this is a finding tool, not advice on eligibility.
Our tool: Gov Opportunities Watch on the Apify Store
We built Gov Opportunities Watch to do steps 2 to 5. It calls the official SAM.gov Opportunities API (with your own key) and the public Grants.gov search API, so it does not scrape or log in anywhere.
- Filters: keywords (up to 20, one search each), NAICS codes, agency name contains, set-aside codes, notice types, states, grant statuses, posted within 1 to 360 days, deadline within N days, hide expired.
- Only new since last run: returns, and charges for, only opportunities not seen by an earlier run of the same search. The memory is kept per search in a key-value store in your own Apify account.
- Your key stays yours: the SAM.gov key is a secret input, sent only to api.sam.gov and never saved or written to logs or output. If SAM.gov says your quota is used up, the run stops the SAM.gov part with a plain message and still returns Grants.gov rows.
- Use it your way: schedule it daily, then send the dataset to email, Slack, Google Sheets, Make, Zapier or n8n, or call it from an AI agent through the Apify MCP server.
Price: $0.005 per opportunity row (pay per event). No rows, no charge, and a failed search is free. With Only new on, a daily alert pays only for the new notices.
Its limits, honestly:
- US federal opportunities only. State, local and foreign tenders are not covered.
- SAM.gov keyword search matches notice titles only, and notice description text is a separate link that needs your key to open, so it is not fetched. NAICS, set-aside, state and notice-type filters do not apply to grants.
- You need your own SAM.gov key and its daily quota applies. Contact details appear only when the notice publishes them.
- It finds opportunities. It does not tell you whether you are eligible or whether to bid.
We build Gov Opportunities Watch. See it on the Apify Store. Steps 1-4 work without it. See our other data tools on the Apify Store. This guide was written with AI assistance. Not affiliated with or endorsed by GSA, SAM.gov, HHS or Grants.gov.