SAM.gov Scraper: Federal Contracts, RFPs & USAspending Awards
Pricing
from $2.10 / 1,000 opportunities
SAM.gov Scraper: Federal Contracts, RFPs & USAspending Awards
SAM.gov scraper for open US federal contract opportunities (RFPs, solicitations, Sources Sought) from SAM.gov's official public data extract, plus past contract awards from the USAspending API. Filter by keyword, NAICS, PSC, agency, set-aside and dates. No login, no API key.
Pricing
from $2.10 / 1,000 opportunities
Rating
0.0
(0)
Developer
Actor Factory
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Features
Share
This SAM.gov scraper searches open US federal contract opportunities (solicitations, RFPs, Sources Sought, presolicitations) from SAM.gov and past federal contract awards from USAspending.gov, in one actor. Filter by keyword, NAICS, PSC, agency, set-aside, notice type, deadlines, recipient and amount. No login and no API key needed.
Official public endpoints, no page scraping: opportunities come from SAM.gov's official public data extract (the daily Contract Opportunities file linked from sam.gov/data-services) or, optionally, from the official SAM.gov Get Opportunities Public API with your own key. Awards come from the official USAspending.gov API. The actor does not scrape sam.gov web pages or its internal search. Get clean JSON, CSV or Excel for GovCon bid pipelines, competitor tracking and market research.
What federal contract data you get
Opportunities (mode: opportunities)
| Field | Description |
|---|---|
notice_id, solicitation_number, title, notice_type | Identifiers and type of the notice |
department, sub_tier, office | Issuing agency hierarchy |
naics_code, naics_codes, psc_code, set_aside | Classification and small-business set-aside |
posted_date, modified_date, response_deadline | Key dates |
place_of_performance | Where the work is done |
award_amount, awardee, award_date | Filled on award notices |
description | Notice text, capped at 5,000 characters (empty in API-key mode) |
contacts | Contracting office contacts as published (name, email, phone) |
Fields the source does not provide are null: modified_date is always null (neither the extract nor the API has it), naics_codes holds only the single primary NAICS code, and the place of performance is a short "city, state, zip, country" string. posted_date from the extract has no time zone. In API-key mode, description is null.
| url, scraped_at | Link to the notice and collection time |
Awards (mode: awards)
| Field | Description |
|---|---|
award_id, contract_award_type | Award/PIID number and type |
recipient_name, recipient_uei | Winning company |
amount, start_date, end_date | Value and period |
awarding_agency, awarding_sub_agency, funding_agency | Agencies |
naics_code, naics_description, psc_code, psc_description | Classification |
place_of_performance_state, description, last_modified | Details |
url, scraped_at | Link to the award on USAspending and collection time |
Every item has a record_type of opportunity or award.
How to search SAM.gov opportunities and awards
| Input | Description |
|---|---|
mode | opportunities or awards |
keywords | Words to search; each is searched separately and results are merged |
naicsCodes, pscCodes | Industry and product/service codes |
agency | Opportunities: part of an agency name (for example NAVY). Awards: exact top-tier name (for example Department of Defense) |
noticeTypes, setAsides, postedWithinDays, responseDeadlineFrom, responseDeadlineTo, includeArchived | Opportunity filters (active notices only unless includeArchived) |
recipient, awardTypes, awardStartDate, awardEndDate, minAmount, maxAmount, sortBy | Award filters |
samApiKey | Optional, secret. Your own SAM.gov API key switches opportunities to the official Get Opportunities Public API |
maxItems | Result cap (you are charged per result saved) |
{"mode": "opportunities","keywords": ["cybersecurity"],"naicsCodes": ["541512"],"setAsides": ["SBA"],"responseDeadlineFrom": "2026-12-01","maxItems": 50}
Output example
{"record_type": "opportunity","notice_id": "63148e71a2124bec9e4fa5bc594d0b22","title": "Brand Name Only for AMD/XILINX Full and Open Competition","solicitation_number": "N0017327Q1301424824a","notice_type": "Combined Synopsis/Solicitation","department": "DEPT OF DEFENSE","sub_tier": "DEPT OF THE NAVY","office": "NAVAL RESEARCH LABORATORY","naics_code": "513210","psc_code": "7A20","set_aside": null,"posted_date": "2026-11-13T15:55:59","response_deadline": "2026-11-19T15:00:00-05:00","place_of_performance": "Washington, DC, 20375, USA","contacts": [{ "type": "primary", "name": "Carrie Cawley", "email": "carrie.a.cawley.civ@us.navy.mil", "phone": null, "title": null }],"url": "https://sam.gov/opp/63148e71a2124bec9e4fa5bc594d0b22/view","scraped_at": "2026-11-14T16:37:20.398Z"}
How much does it cost to search federal contracts?
Pay per result: $3.00 per 1,000 opportunities and $2.00 per 1,000 awards, plus a tiny start fee. Reading the daily extract costs us well under one cent per run even when the whole 222 MB file is scanned, so there is no extra scan fee. Volume tiers on the Apify platform lower the price by 10%, 20% and 30%. Example: 500 open bids for a NAICS code cost about $1.50.
Use cases
- Build a daily bid pipeline for a government contracting business.
- Find incumbents and contract values before writing a proposal.
- Track competitors' wins by recipient name.
- Market sizing by NAICS, agency and year.
Limits & notes
- Opportunities come from SAM.gov's official public data extract, refreshed daily around 04:30 UTC, so new notices appear with up to a day's delay. The file (about 222 MB, newest notices first) is streamed and filtered on the fly; a run with
postedWithinDaysor a smallmaxItemsstops early, and a full scan takes a few seconds to a minute. The extract has no modified date and no multiple NAICS codes. Attachments are not downloaded. - Keywords match the title and description, case-insensitively. NAICS codes match by prefix.
- With your own
samApiKeythe actor calls the official Get Opportunities Public API (api.sam.gov) instead, within the lastpostedWithinDaysdays (default 30, max 364). Non-federal API keys have low daily request limits (check your SAM.gov account), so keep searches narrow. The key is only sent to api.sam.gov. - Awards cover contracts (definitive contracts, purchase orders, delivery orders, BPA calls) from 2007-10-01 on.
postedWithinDaysis the efficient way to get fresh notices.- Contacts are the contracting officers' published business contacts only.
- Requests are paced to stay polite to the sources. The data is public federal data.
Integrations and API
Run it from your own code with the Apify API or the official Python and JavaScript clients:
from apify_client import ApifyClientclient = ApifyClient("<YOUR_APIFY_TOKEN>")run = client.actor("actorfactory/us-federal-contracts").call(run_input={'mode': 'opportunities', 'keywords': ['software'], 'maxItems': 10})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item)
- Schedule it (hourly, daily, weekly) in Apify Console and send results to Google Sheets, Slack, email or a webhook, or connect it to Make, Zapier or n8n.
- Use it from AI agents (Claude, ChatGPT, Cursor) through the Apify MCP server.
- Export results as JSON, CSV, Excel or HTML from the Output tab, or read them from the dataset API.
Related Actors
- EU & UK Tenders Scraper: EU (TED) and UK public tenders in one format
- UK Companies House Scraper: UK company register: new companies, search, filings
FAQ
Is this a SAM.gov scraper? It does the job of one, but it does not scrape sam.gov web pages: opportunities (RFPs, Sources Sought and other notice types) come from SAM.gov's official public data extract or the official Get Opportunities Public API, and awards from the USAspending API.
Do I need a SAM.gov API key? No. The default reads SAM.gov's official public data extract. A key is optional and only sent to api.sam.gov; the description text is not included in that mode.
Why no results? Check spelling, remove filters, or widen the date range.
Can I get new SAM.gov opportunities every day? Yes. In opportunities mode set postedWithinDays to 1, add your NAICS codes or keywords, and schedule a daily run.
Can I see who won a federal contract? Yes. Awards mode returns past awards from USAspending.gov with the winning company (recipient_name, recipient_uei), amount and agency. Filter by recipient to track a competitor's wins.