SAM.gov Federal Contract Opportunities & Awards API Sole Source
Pricing
$2.50 / 1,000 notice delivereds
SAM.gov Federal Contract Opportunities & Awards API Sole Source
Search SAM.gov for US federal procurement: bid opportunities, solicitations, sources sought, set aside, request for information, contract award notices. Filter by keyword, NAICS, agency, state. No login or API key. Monitor mode for contract alerts.
Pricing
$2.50 / 1,000 notice delivereds
Rating
0.0
(0)
Developer
Dennis Huckabee
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
23 days ago
Last modified
Categories
Features
Share
SAM.gov Federal Contract Opportunities & Awards API
Turns SAM.gov into a clean, filterable feed — built for GovCon capture teams, procurement researchers and AI agents.
Search every US federal contract opportunity published on SAM.gov — solicitations, RFPs, RFQs, sources sought, presolicitations, special notices and award notices — and get them back as clean, flat JSON, CSV or Excel.
No SAM.gov login, no API key, no browser. The Actor streams the official public daily extract straight from GSA, so a default run finishes in a few seconds.
{"keywords": ["cybersecurity"],"naicsCodes": ["5415"],"states": ["VA", "MD", "DC"],"activeOnly": true,"maxResults": 100}
What a result looks like
Real notices from a live run on 2026-10-05:
| Title | Department | Category | Deadline |
|---|---|---|---|
| Micro Bus procurement, Naval Air Facility Atsugi (Japan) | Dept of the Navy | Transportation and Warehousing | 2026-11-02 |
| Annual Psychological Evaluation Services (Psych Testing) | Veterans Affairs | Medical Services | 2026-10-08 |
| USNS Point Loma (T-EPF 15) Mid-Term Availability | Dept of Defense | Maintenance, Repair and Rebuilding of Equipment | 2026-10-20 |
Every row expands to the 39-field schema below, with a source URL.
Why use it
- Everything SAM publishes, in one flat row per notice. 39 documented fields: agency, office, NAICS, PSC, set-aside, place of performance, deadline, archive date, award number, awardee and amount.
- Codes you can actually read. Every notice carries
naicsSectorandpscCategorylabels next to the raw codes, so "Q201" arrives as "Medical Services" and you can group results without a lookup table. - Real filters, applied before you pay. Keyword and exclude-keyword, NAICS and PSC prefixes, set-aside programs, agency, US state, notice category, minimum award amount.
- Amendments are collapsed. Agencies re-post an amended notice under a new notice ID with the same solicitation number. By default you get the current version only, instead of paying three times for the same tender.
- Monitor mode.
onlyNewremembers what earlier runs with the same filters returned and delivers only what is new, so a daily schedule costs you only new notices. - No names, phones or fax numbers.
buyerContactEmailcarries the one contact address the agency published with the notice, because that is the channel it asks questions and bids to go through — and on SAM.gov that address is usually a named officer's work address rather than an office inbox (96% of a 50-notice sample on 2026-10-26). The officer's name, phone and fax are in the source extract and are deliberately not extracted. Drop the field withfieldson the dataset export if you do not want it. - Fails fast and says why. If the GSA extract stops answering, the run exits within seconds with a plain-English status message telling you to retry, instead of sitting on a dead connection until your run timeout.
Glossary
- NAICS code — the category code for what's being bought, e.g.
5415= computer systems design. - PSC code — Product/Service Code, GSA's finer-grained category, e.g.
D= IT services,Q201= medical services. - Set-aside — a contract reserved for a type of business: small business, 8(a), HUBZone, SDVOSB, WOSB and similar programs.
- Sources sought — an early notice asking whether qualified vendors exist, published before a formal solicitation — a signal to start positioning early.
- Solicitation number — a tender's reference number. Amended notices re-post under a new notice ID but keep the same solicitation number, which is how we collapse amendments to the latest version.
- Combined Synopsis/Solicitation — a notice type that combines the "we're buying this" announcement with the actual request for proposals, common for simplified federal buys.
Use cases
- Bid pipeline: a daily feed of new solicitations matching your NAICS codes and set-aside eligibility.
- Competitor and market research: pull award notices to see who wins what, for how much, at which agency.
- Capture planning: track sources sought and presolicitations months before the RFP drops.
- Teaming: find prime opportunities in your state and PSC category.
- Enrich a list you already have: paste up to 100 notice IDs or solicitation numbers and get the full records back, including archived ones.
- Feed an AI agent or CRM: a stable, documented schema with one source URL per notice.
Ready-made searches
Run one of these presets as-is, or open it and change the filters:
| Preset | What it returns |
|---|---|
| Federal IT & software contracts | Software, IT services, cloud and cybersecurity — solicitations plus sources sought (NAICS 5112, 5182, 5415) |
| Small business set-aside contracts | Opportunities reserved for small business, 8(a), HUBZone, SDVOSB, WOSB and EDWOSB |
| Federal construction contracts | Construction, renovation and facilities work (NAICS 236–238, PSC Y and Z) |
| Federal contract awards | Who won, contract number, dollar amount and award date, over the last 30 days |
Input examples
Run with defaults — the 100 newest active solicitations from the last 3 days:
{}
Look up two notices you already know the identifiers of:
{"noticeIds": ["2631a77e6a0d4e49b4f6637fec9fb969"],"solicitationNumbers": ["1164311"]}
IT services for a small business in the DC area:
{"naicsCodes": ["5415", "5182"],"pscCodes": ["D"],"states": ["VA", "MD", "DC"],"onlySetAside": true,"postedWithinDays": 7,"maxResults": 200}
Daily monitor for construction opportunities, on a schedule:
{"naicsCodes": ["236", "237", "238"],"noticeCategories": ["opportunity", "planning"],"postedWithinDays": 2,"onlyNew": true,"maxResults": 500}
Who won what at the VA, over $1M:
{"noticeCategories": ["award"],"agencies": ["VETERANS AFFAIRS"],"minAwardAmount": 1000000,"postedWithinDays": 90,"activeOnly": false,"maxResults": 1000}
All inputs
| Input | Type | Default | What it does |
|---|---|---|---|
noticeIds | array | – | Direct lookup: SAM.gov notice IDs, or sam.gov/opp/... URLs. Ignores every filter below |
solicitationNumbers | array | – | Direct lookup: agency solicitation numbers. Returns every notice under each one |
keywords | array | – | Title or description contains any of these words |
excludeKeywords | array | – | Drop notices mentioning any of these words |
naicsCodes | array | – | NAICS codes or prefixes; 541 includes 541511 |
pscCodes | array | – | PSC/FSC codes or prefixes; D = all IT services |
noticeCategories | array | ["opportunity"] | opportunity, planning, award, other |
postedWithinDays | integer | 3 | How far back to search, 1–365. Ignored when postedFrom is set |
postedFrom | string | – | Exact range start, YYYY-MM-DD; replaces postedWithinDays |
postedTo | string | – | Exact range end, YYYY-MM-DD, inclusive |
includeArchived | boolean | true | Read SAM's fiscal-year archives too, for windows over 14 days back |
activeOnly | boolean | true | Drop notices already closed for bids, judged at the end of your range |
onlySetAside | boolean | false | Only small-business and similar set-asides |
setAsideCodes | array | – | Exact codes, e.g. SBA, 8A, HZC, SDVOSBC, WOSB |
agencies | array | – | Substring match on department, sub-tier or office |
states | array | – | 2-letter state codes; place of performance, else office |
minAwardAmount | integer | – | Awards only: skip anything below this USD amount |
latestPerSolicitation | boolean | true | Collapse amended re-posts to the newest version |
onlyNew | boolean | false | Monitor mode: only notices not seen in earlier runs |
maxResults | integer | 100 | Stop after this many notices |
fitPreferredKeywords | array | – | Fit score: nice-to-have words, scored but not required |
fitMinValue | integer | – | Fit score: award value (USD) you'd consider a strong fit |
fitMinDaysUntilDeadline | integer | – | Fit score: days' notice you need to respond |
Look up a notice you already know (optional)
When you have a notice ID or a solicitation number — from an email, a teaming partner, a sam.gov link, or a column in your CRM — set noticeIds or solicitationNumbers and the Actor fetches those notices directly instead of searching. Up to 100 identifiers per run, all resolved in a single pass, so a bulk lookup costs one scan rather than one run each.
{"noticeIds": ["2631a77e6a0d4e49b4f6637fec9fb969", "https://sam.gov/opp/0aa25debfd99488bb4243bbf518092e1/view"],"solicitationNumbers": ["030ADV27Q0034"]}
-
A lookup ignores the date range and every filter, including
activeOnlyandnoticeCategories. This is deliberate: a notice you asked for by name should come back whatever state it is in, and an archived notice is never flagged active. (Measured on 2026-10-27: every row of an archive file readsActive=No, and 67% of them are award notices — so the search defaults would answer most lookups with nothing.) -
Either field accepts either kind of identifier. A notice ID is 32 hex characters; anything else is matched against the solicitation number, whichever field you typed it into.
-
One solicitation number can return several notices — the original, its amendments and the award notice are separate notices sharing one number. All of them come back, newest file first. A worked example: solicitation
1164311returns both the $1,000,000 award notice and the solicitation it was awarded from. -
The daily extract is searched first, then the three most recent fiscal-year archives. How long that takes depends on which kind of identifier you use (measured 2026-10-29 in the cloud, one run each):
- A notice ID is unique, so the scan can stop at the first match. A still-active notice comes back in 1-2 seconds and no archive is opened.
- A solicitation number can cover several notices across different fiscal years (see above), so the scan cannot stop early — it reads the daily extract and then every archive it is allowed to reach, even when the notice is still active. That takes about 40 seconds.
- An identifier that is not in any of the files has to be looked for everywhere before it can be called missing: about 30 seconds.
- Before each ~1 GB archive is parsed, it is first checked for the identifier over its raw bytes, which is several times faster than parsing it. An archive whose bytes do not contain the identifier cannot contain a matching notice, so it is searched but never parsed. This is what brought the two cases above down from 145–150 seconds. It is a pure speed-up — the results are identical either way.
- Set
includeArchivedtofalseif you only want the current, active copy of a solicitation and want it in a couple of seconds.
Set
postedFrom/postedToto search different fiscal years (for a notice from 2015, say) — on a lookup those dates choose which files to read and never filter out a row. -
Identifiers that are not found are named in the status message, so an absence is an answer rather than a short list you have to diff. Set
includeArchivedtofalseto search only the daily extract.
Exact date range (optional)
postedWithinDays always counts back from today, so it cannot express a past period. Set postedFrom and postedTo (both YYYY-MM-DD, inclusive) to search an exact window instead — for a backfill, a quarter-by-quarter analysis, or a re-run of a period you already reported on.
Every opportunity posted in Q2 2026, for a backfill
{"postedFrom": "2026-04-01","postedTo": "2026-06-30","maxResults": 5000}
- Set only
postedFromto mean "from that date up to the newest notice". Set onlypostedToand the N-day window ends on that date instead of today. - When the range ends in the past,
activeOnlyis judged as of the end of your range: it keeps notices whose response deadline had not yet passed on that date. Otherwise almost every notice in a past quarter would be filtered out as closed. SAM.gov's ownActiveflag is a snapshot of today with no history, so it is not applied to a past range. - A past range reads two SAM.gov files — see below — and reaches your window with a range request instead of scanning down to it, so it is not much slower than a default run: measured 2026-10-30 in the cloud, the week 1–7 May 2026 with archives on took 2.2 seconds against 2.0 seconds for a default run.
Archived notices, and why a past range needs them
SAM.gov's daily extract contains only notices that are still active. It archives a notice once its response deadline passes, and archived notices leave the daily file. So the daily extract on its own cannot answer a question about the past: it returns the handful of notices from that period that happen to still be open, which is both a small slice and a biased one (long-running and multi-year notices survive, ordinary 30-day solicitations do not).
Measured on 2026-10-26, for the single week 1–7 May 2026:
| Notices posted that week | |
|---|---|
| Daily extract alone | 635 |
| SAM.gov FY2026 archive | 9,987 |
This Actor, includeArchived on | 9,189 (10,622 raw, amended re-posts collapsed) |
The same effect over a longer span: the daily extract holds 18,168 notices posted in October 2026 and 679 posted in October 2025 — about 96% of a month is gone from it within a year.
SAM.gov also publishes one archive file per federal fiscal year (1 October – 30 September), in the same public bucket, equally keyless. This Actor reads the relevant ones alongside the daily extract and merges them by posted date, so maxResults still means "the newest N notices in your window" rather than "the newest N that are still open".
includeArchiveddefaults to on, but is only used when your window reaches back more than 14 days. Inside that, almost everything is still active and a ~1 GB archive scan would buy nothing — which is why a default run is untouched and still takes about two seconds.- Set it to
falseto read the daily extract only. The run then says so in its status message rather than letting a thin result look like a thin source. - At most 3 fiscal years per run (each archive file is about 1 GB). A wider range exits with a message asking you to split it, instead of starting a scan nobody budgeted for.
- Archives are published from FY1998 onwards and are refreshed weekly; the daily extract is refreshed daily.
- Both SAM files are sorted newest first, and a past window is reached with an HTTP range request rather than by downloading everything above it: the run bisects the file with a handful of 64 KB probes, then starts the download at the window. Measured 2026-10-30 on the week 1–7 May 2026 — 148 MB of the daily extract and 449 MB of the FY2026 archive skipped, so a historical window costs about the same as a recent one. It is a pure speed-up: the 500-notice result set was compared row by row against a full scan of the same window and the two are identical.
Fit score (optional)
Set any of fitPreferredKeywords, fitMinValue or fitMinDaysUntilDeadline and every item gets a deterministic, rule-based fitScore (0-100), a plain-English fitReason list, and a recommendedAction (review_now, review, monitor or skip). This is a transparent scoring formula against your own stated preferences, not an AI prediction — the same notice always gets the same score for the same inputs. Leave all three unset (the default) and these fields come back null; nothing else about the run changes.
{"keywords": ["software"],"fitPreferredKeywords": ["cloud", "cybersecurity", "data"],"fitMinDaysUntilDeadline": 14}
Output
One flat object per notice. Example:
{"noticeId": "bd9a807967684cbfac5c529dbfda8738","solicitationNumber": "36C24426Q0950","title": "Q201--Post-Op Medical Companion Services at VA Pittsburgh Healthcare Center","description": "Please see amendment 0004.","noticeType": "Combined Synopsis/Solicitation","noticeCategory": "opportunity","baseType": "Combined Synopsis/Solicitation","isActive": true,"department": "VETERANS AFFAIRS, DEPARTMENT OF","subTier": "VETERANS AFFAIRS, DEPARTMENT OF","office": "244-NETWORK CONTRACT OFFICE 4 (36C244)","organizationType": "OFFICE","officeCity": "PITTSBURGH","officeState": "PA","officeZip": "15215","officeCountry": "USA","naicsCode": "621610","naicsSector": "Health Care and Social Assistance","pscCode": "Q201","pscCategory": "Medical Services","setAsideCode": "SDVOSBC","setAside": "Service-Disabled Veteran-Owned Small Business (SDVOSB) Set-Aside (FAR 19.14)","isSetAside": true,"placeOfPerformance": null,"placeOfPerformanceState": null,"placeOfPerformanceCountry": null,"postedDate": "2026-09-27","responseDeadline": "2026-09-29T23:59:00-04:00","daysUntilDeadline": 1,"archiveDate": "2026-11-28","archiveType": "autocustom","awardNumber": null,"awardDate": null,"awardAmount": null,"awardee": null,"buyerContactEmail": "eleanor.robbins@va.gov","url": "https://sam.gov/opp/bd9a807967684cbfac5c529dbfda8738/view","additionalInfoLink": null,"fitScore": null,"fitReason": [],"recommendedAction": null,"scrapedAt": "2026-09-28T22:15:46.445Z"}
Every field is documented in the dataset schema, and the dataset has two ready-made views: Opportunities and Awards (winner, contract number, amount). Download as JSON, CSV, Excel or HTML, or fetch through the Apify API.
Pricing
You pay per notice delivered, with no subscription. A default run (no filters) typically delivers 100 notices for about $0.25; a narrow NAICS or keyword search that returns 10-20 notices costs $0.025-$0.05. Set Maximum results or a maximum cost per run to cap spending.
In monitor mode you pay only for notices that are new to you, and amendments of a notice you already have are free because they are collapsed. "New" is tracked per exact combination of filters (keywords, NAICS, PSC, set-aside, agency, state) under your own Apify account: change any filter and the next run starts fresh and bills for everything it finds, same filters again and you only pay for what's new since last time.
Data source & licence
Data comes from the SAM.gov Contract Opportunities public data extracts, published by the US General Services Administration at sam.gov/data-services and mirrored on data.gov. Two files are used, both public and unauthenticated — no login, no API key, no rate limit, and no terms restricting reuse:
- the daily extract of currently-active notices (Contract Opportunities/datagov); and
- the fiscal-year archives of notices SAM.gov has since retired (Contract Opportunities/Archived Data).
Works of the US federal government are not subject to copyright in the United States (17 U.S.C. § 105) and are in the public domain, so commercial reuse is permitted. Checked 2026-09-28: the daily extract carries no additional licence or non-commercial restriction. Checked again 2026-10-26 for the archives: SAM.gov's own data-services file listing returns "privacy":"Public" for every FY*_archived_opportunities.csv file, in the same falextracts bucket and under the same dataset description as the daily extract, and the GSA Get Opportunities API documentation states that archived notices are published alongside active ones. No additional licence or restriction applies.
This Actor is not affiliated with, endorsed by or sponsored by SAM.gov, GSA or any US government agency. Always check the official notice on SAM.gov before bidding.
FAQ
How fresh is the data? SAM.gov rebuilds the public extract every morning (US Eastern time), so notices appear within a day of being posted. postedDate tells you exactly when each one went up.
Do I need a SAM.gov account or API key? No. This uses the public extract, so there is nothing to register, no key to rotate and no rate limit to hit.
Why is placeOfPerformance often empty? Most agencies leave those columns blank in the extract. When they do, the states filter falls back to the contracting office's state, and officeState is always populated.
Why is awardAmount null on an award notice? Some agencies publish the award without a dollar figure. Placeholder values of $1 or less are treated as unpublished.
Are attachments included? Attachment files are not in the public extract. url links to the notice page on SAM.gov where the attachments live, and additionalInfoLink holds any extra link the agency published.
Can I fetch one specific notice? Yes — put its notice ID or solicitation number in noticeIds or solicitationNumbers and it is returned directly, archived or not, with no filters applied. Up to 100 identifiers in one run. See "Look up a notice you already know" above.
Does this cover state and local contracts? No, SAM.gov is federal. For EU, UK and a merged US feed, see our Government Tenders API.
Why don't you return contracting officer names and phone numbers? Deliberate policy: we pass through the one contact address the agency published, which is the channel it asks you to use, but we don't extract the name, phone or fax that sit beside it in the source extract. Be aware that the published address is itself usually a named officer's work address, so if you are processing it under the GDPR or UK GDPR you are handling a work contact detail and the usual obligations apply.
Something broke or a field is missing? Open an issue on the Issues tab. Issues are answered quickly.