SAM.gov Contract Opportunities: Open Federal Bids, No API Key
sam_gov_opportunitiesFind open US federal contract opportunities in SAM.gov notices by NAICS, PSC, set-aside, agency, state or keyword, plus award notices to identify primes for teaming.
Instructions
List current US federal contract opportunities from the official SAM.gov public Contract Opportunities data extract (GSA, refreshed daily, no SAM.gov API key): solicitations, combined synopsis/solicitations, presolicitations, sources sought, special notices and award notices, with title, solicitation number, notice type, posted date, response deadline and days left, department/sub-tier/office, NAICS and PSC codes, set-aside, place of performance, contracting officer name, email and phone, and awardee and amount for award notices. Unlike federal_contract_finder (past USAspending awards, incumbents and recompete dates) and grants_finder (assistance grants), this is open SAM.gov notices you can respond to now. Use when small businesses, GovCon BD teams, proposal writers or subcontractors need new bids by NAICS, PSC, set-aside, agency, state or keyword, or award notices to find primes for teaming. Do not use to download attachments or submit bids (open samUrl on SAM.gov), or for state/local or EU tenders (use eu_ted_tenders). Parameters: daysBack (default 7) or postedFrom/postedTo set the posted window (the file is newest first, so short windows are fast); keywords and excludeKeywords match title and description; naicsCodes and pscCodes are prefix matches (e.g. 5415, D3); setAsides takes SAM codes (SBA, 8A, HZC, SDVOSBC, WOSB, EDWOSB, NONE...); noticeTypes, agencies (department/sub-tier/office contains) and states (place of performance or office state) narrow rows; openOnly (default true) drops passed deadlines but keeps notices with no deadline; minDaysToDeadline keeps biddable notices only; requireContactEmail; descriptionChars (default 600); maxResults caps billed notices. Runs with no matches are free. Returns per item: agentSummary, noticeId, title, solicitationNumber, noticeType, postedDate, responseDeadline, daysToDeadline, department, subTier, office, naicsCode, pscCode, setAsideCode, setAside, popCity, popState, awardDate, awardAmount, awardee, contactName, contactEmail, contactPhone, samUrl, description; plus SAM_XLSX (with By deadline and Award notices sheets)/CSV.
Behavior: read-only; runs the Apify Actor pandadad0214/sam-gov-opportunities (https://apify.com/pandadad0214/sam-gov-opportunities) on your own Apify account. Price: $0.0015 per opportunity returned. Runs that find nothing are not charged per result, and spending is capped per call by run_max_charge_usd (default $0.50). run_max_items (default 50) limits items returned and fills maxResults when you leave it unset, so it also limits what is billed; setting maxResults higher can bill more than is returned. Most calls finish in 5-15 s for a few inputs; large inputs or crawls can take minutes, so raise run_timeout_secs (max 300) or shrink the input after a timeout error. Returns JSON {actor, count, items}; long text output is trimmed to whole items, with all items in structuredContent.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sam_gov_opportunities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| states | No | States. Two-letter codes matched on the place of performance or the contracting office state, e.g. AZ, TX, VA. | |
| agencies | No | Agency contains. Match department, sub-tier or office (case-insensitive), e.g. veterans affairs, army, GSA, NASA. | |
| daysBack | No | Posted in the last N days. Default 7. Matches the SAM.gov posted date. Use 1 or 2 on a daily schedule. The source file is newest first, so short windows are fast. | |
| keywords | No | Keywords (any). Keep notices whose title or description contains any of these words or phrases (case-insensitive), e.g. janitorial, cybersecurity, HVAC. | |
| openOnly | No | Open only. Default on. Drops notices whose response deadline has passed. Notices with no deadline (award notices, many special notices) are kept. | |
| postedTo | No | Posted on or before. Optional YYYY-MM-DD. | |
| pscCodes | No | PSC codes (prefix). Product/service code starts-with, e.g. D3 (IT), R4 (professional services), Z2 (building repair), S2 (housekeeping). | |
| setAsides | No | Set-asides. Empty = any. NONE keeps notices with no set-aside (full and open). | |
| activeOnly | No | Active notices only. Default on (SAM.gov Active = Yes). | |
| maxResults | No | Maximum results. You pay per notice returned, so this also caps the cost. Default 500; hard max 10000. | |
| naicsCodes | No | NAICS codes (prefix). Starts-with match, e.g. 5415 (IT services), 541330 (engineering), 236220 (commercial building), 561720 (janitorial). | |
| postedFrom | No | Posted on or after. Optional YYYY-MM-DD; overrides days back. | |
| noticeTypes | No | Notice types. Empty = all. Award Notice rows carry the awardee and amount (teaming and subcontracting leads). | |
| run_max_items | No | Optional. Most results to return from this call (default from PANDA_MAX_ITEMS, 50). Also limits how many results the Actor produces and charges for, unless you set its own max field. | |
| excludeKeywords | No | Exclude keywords. Drop notices containing any of these words, e.g. brand name only. | |
| descriptionChars | No | Description length. Characters of the notice description to include. Default 600; 0 = none. | |
| run_timeout_secs | No | Optional. Seconds to wait for results (default from PANDA_TIMEOUT_SECS, 120; max 300). | |
| minDaysToDeadline | No | At least N days to deadline. Optional. Keep notices with at least this many days left to respond (drops notices with no deadline). | |
| run_max_charge_usd | No | Optional. Hard spending cap for this call in USD (default from PANDA_MAX_CHARGE_USD, 0.50). | |
| requireContactEmail | No | Only with a contracting contact email. Keep notices that list a primary point-of-contact email. |