SAM.gov Government Contract Monitor avatar

SAM.gov Government Contract Monitor

Pricing

from $3.00 / 1,000 scraped results

Go to Apify Store
SAM.gov Government Contract Monitor

SAM.gov Government Contract Monitor

Search by keywords, agency, or NAICS code and extract award title, agency, contract value, date, contractor, contract type, set-aside, and location. Supports Apify Proxy and batch processing.

Pricing

from $3.00 / 1,000 scraped results

Rating

0.0

(0)

Developer

Data Pilot

Data Pilot

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

4 days ago

Last modified

Share

๐Ÿ›๏ธ SAM.gov Government Contract Monitor is a powerful Apify Actor designed to discover, track, and collect awarded SAM.gov Government Contract data directly from SAM.gov's own search and opportunity APIs using fast impersonated HTTP requests. This tool provides comprehensive SAM.gov Government Contract intelligence including award title, awarding agency, contract value, award date, contractor name, contract type, set-aside classification, and place of performance for any keyword, agency, or NAICS code. Whether you're building a procurement dashboard, tracking competitor awards, or conducting federal spending research, the SAM.gov Government Contract Monitor delivers actionable SAM.gov Government Contract insights efficiently.

With browser-impersonated HTTP requests, deep opportunity-detail fetching, multi-key fallback parsing, and reliable Apify Dataset delivery, the SAM.gov Government Contract Monitor ensures comprehensive SAM.gov Government Contract coverage across any list of search keywords. It focuses on key SAM.gov Government Contract signals including contractor name, award value, and set-aside type, making it an essential tool for procurement research and federal contract intelligence.


๐Ÿ“‹ Table of Contents


๐Ÿ”ฅ Features

  • Fast Impersonated HTTP Requests โ€“ Uses curl_cffi with Chrome impersonation for lightweight, high-speed access to SAM.gov Government Contract endpoints without a full browser.
  • Keyword-Based Search โ€“ Accepts any number of search keywords and scans awarded SAM.gov Government Contract notices for each.
  • Agency & NAICS Filtering โ€“ Narrows results to a specific awarding agency or NAICS classification code.
  • Deep Opportunity Detail Fetching โ€“ Follows each search result's notice ID to pull full SAM.gov Government Contract award details.
  • Multi-Key Fallback Parsing โ€“ Recursively checks multiple possible field names for contractor, award value, date, and location data.
  • Contractor & Award Value Extraction โ€“ Parses awardee name and dollar amount from nested award objects.
  • Set-Aside Detection โ€“ Identifies small business or socio-economic set-aside classifications on each SAM.gov Government Contract.
  • Place of Performance Parsing โ€“ Extracts city and state from either the opportunity or the awardee's registered address.
  • Practical Filtering โ€“ Automatically skips records missing both a contractor name and an award value to keep data useful.
  • Residential Proxy Support โ€“ Apify residential proxy for reliable SAM.gov Government Contract access.
  • Batch Processing โ€“ Scan any number of keywords in a single run, up to a configurable item cap.
  • Real-Time Dataset Push โ€“ Pushes all collected SAM.gov Government Contract records to Apify Dataset in a single batch.
  • Graceful Error Handling โ€“ Skips a failing request without stopping the whole run.

๐Ÿ“Š Data Source

SAM.gov Public Search & Opportunity APIs

  • Authority: SAM.gov's own public search (sam.gov/api/prod/sgs/v1/search) and opportunity detail (sam.gov/api/prod/opps/v3/opportunities) APIs
  • Access Method: Fast async HTTP requests via curl_cffi, impersonating a real Chrome browser
  • Coverage: Any publicly listed SAM.gov Government Contract award notice matching the given search criteria
  • Data: JSON search results cross-referenced with full opportunity detail records
  • Access: Public API endpoints, no API key required
  • Update Frequency: Reflects each SAM.gov Government Contract award's current state at time of run

โš™๏ธ How It Works

The SAM.gov Government Contract Monitor accepts a list of search keywords along with optional agency and NAICS filters, then queries SAM.gov's search API for awarded opportunity notices sorted by most recently modified. For each result, the Actor fetches the full opportunity detail record using its notice ID and merges it with the original search result. It then parses contractor name, award value, award date, agency hierarchy, set-aside type, contract type, and place of performance using a multi-key fallback strategy that checks several possible field names per attribute. Records missing both a contractor name and an award value are discarded to keep the dataset useful. Every valid SAM.gov Government Contract record is collected and pushed to the Apify Dataset in a single batch at the end of the run.

Key Processing Steps:

  1. Input Parsing โ€“ Accept a list of keywords, plus optional agency and NAICS code filters
  2. Proxy Setup โ€“ Configure Apify residential proxy for the impersonated HTTP session
  3. Keyword Loop โ€“ Iterate through each SAM.gov Government Contract search keyword
  4. Search Request โ€“ Query SAM.gov's search API for awarded notices matching the keyword
  5. Detail Fetch โ€“ Retrieve the full opportunity record for each result's notice ID
  6. Contractor & Value Parsing โ€“ Extract awardee name and contract dollar value with multi-key fallback
  7. Agency Hierarchy Parsing โ€“ Build the full awarding agency path from the organization hierarchy
  8. Date & Location Parsing โ€“ Extract award date and place of performance (city/state)
  9. Set-Aside Classification โ€“ Identify any small business or socio-economic set-aside type
  10. Practical Filtering โ€“ Skip records missing both contractor name and award value
  11. Item Cap Enforcement โ€“ Stop collecting once the configured maximum item count is reached
  12. Dataset Push โ€“ Push all collected records from the run in a single batch

Key Benefits:

  • Pull SAM.gov Government Contract award data for any keyword without manual searching
  • Track which contractors are winning federal work in a given agency or NAICS code
  • Monitor competitor or partner companies' SAM.gov Government Contract award activity over time
  • Feed procurement dashboards, market research pipelines, or business development tools
  • Automate recurring SAM.gov Government Contract checks as new awards are posted

๐Ÿ“ฅ Input

The Actor accepts the following input parameters:

FieldTypeDefaultDescription
keywordsarray["Software Development"]List of search terms to scan for awarded SAM.gov Government Contract notices.
agencystring""Optional awarding agency name to filter results.
naics_codestring""Optional NAICS classification code to filter results.
maxItemsinteger50Maximum number of SAM.gov Government Contract records to collect.
useApifyProxybooleantrueEnable Apify residential proxies.

Example Input:

{
"keywords": ["Software Development", "Cybersecurity Services"],
"agency": "",
"naics_code": "",
"maxItems": 50,
"useApifyProxy": true
}

Scrape a Single Keyword:

{
"keywords": ["Cloud Computing"]
}

Filter by Agency and NAICS Code:

{
"keywords": ["IT Services"],
"agency": "Department of Defense",
"naics_code": "541512",
"maxItems": 100
}

๐Ÿ“ค Output

The Actor pushes SAM.gov Government Contract records with the following structure:

FieldTypeDescription
award_titlestringTitle of the awarded SAM.gov Government Contract notice
agencystringFull awarding agency hierarchy for the SAM.gov Government Contract
value_usdstringAward value formatted as a USD amount (e.g., "$1,250,000.00")
award_datestringDate the SAM.gov Government Contract was awarded
contractor_namestringName of the awarded contractor/business
contract_typestringType of contract or award notice
set_asidestringSmall business or socio-economic set-aside classification, if any
locationstringPlace of performance (city, state) for the SAM.gov Government Contract

Example SAM.gov Government Contract Record:

{
"award_title": "Enterprise Cloud Migration Services",
"agency": "Department of Defense / Defense Information Systems Agency",
"value_usd": "$4,850,000.00",
"award_date": "2026-07-15",
"contractor_name": "Example Federal Solutions LLC",
"contract_type": "Firm Fixed Price",
"set_aside": "Total Small Business Set-Aside",
"location": "Arlington, VA"
}

๐Ÿงฐ Technical Stack

  • HTTP Client: curl_cffi with Chrome impersonation for fast, browser-like access to SAM.gov Government Contract endpoints
  • Concurrency: asyncio for non-blocking, multi-keyword search and detail fetching
  • URL Encoding: urllib.parse for building SAM.gov search query parameters
  • Date Handling: datetime with timezone-aware UTC timestamps
  • Proxy: Apify Proxy with RESIDENTIAL configuration
  • Logging: Apify Actor logging system
  • Platform: Apify Actor serverless environment

๐Ÿ“Š Data Fields Explained

Award Identity

  • award_title: The public title of the SAM.gov Government Contract award notice
  • agency: The full awarding agency path, built from the organization hierarchy

Financial Details

  • value_usd: The awarded contract's dollar value, formatted for readability
  • award_date: The date the SAM.gov Government Contract was officially awarded

Contractor Details

  • contractor_name: The legal or business name of the awarded contractor
  • contract_type: The contract vehicle or award type (e.g., Firm Fixed Price)
  • set_aside: Any small business or socio-economic set-aside classification applied

Location

  • location: The place of performance city and state for the SAM.gov Government Contract

๐ŸŽฏ Use Cases

  • Competitor Tracking โ€“ Monitor which companies are winning SAM.gov Government Contract awards in your industry
  • Business Development โ€“ Identify agencies and NAICS codes with active award activity to target
  • Market Research โ€“ Study federal spending trends across keywords, agencies, and set-aside types
  • Partner Vetting โ€“ Check a potential teaming partner's SAM.gov Government Contract award history
  • Procurement Analytics โ€“ Feed award data into internal dashboards and BI tools
  • Academic Research โ€“ Study public federal contracting patterns at scale
  • Compliance Monitoring โ€“ Track set-aside and small business award trends over time

๐Ÿš€ Quick Start

1. Prepare Input

Go to Apify Console and enter:

{
"keywords": ["Software Development"]
}

2. Run the Actor

Click Start. The Actor will:

  • Search SAM.gov for awarded notices matching each keyword
  • Fetch full opportunity details for every matching result
  • Parse contractor, value, date, agency, and location data
  • Push all results to the Dataset

3. Monitor Progress

Console shows:

[SAM.gov Monitor] Scanning awarded contracts for: ['Software Development']
Done! Successfully saved 42 awarded contract(s) to Dataset.

4. View & Download Results

  • Results Tab: All SAM.gov Government Contract records
  • Export: JSON, CSV, Excel, or HTML
  • Filter: By agency, contractor, or award value
  • API Access: Available via the Apify API

โš™๏ธ Configuration

Single keyword search:

{
"keywords": ["Cybersecurity Services"]
}

Multiple keywords with item cap:

{
"keywords": ["IT Services", "Cloud Computing", "Data Analytics"],
"maxItems": 200
}

Run without proxy:

{
"keywords": ["Software Development"],
"useApifyProxy": false
}

๐Ÿ“ˆ Performance

Processing Speed

  • One search request per keyword, plus one detail request per matching result
  • 1 second delay between keyword searches to reduce blocking
  • Faster than browser-based scraping since no rendering engine is required

Resource Usage

  • Memory: Low, since no browser instance is launched
  • Network: One search request plus one detail request per SAM.gov Government Contract result
  • Proxy: One residential proxy tunnel shared across the HTTP session for the run

โš ๏ธ Important Notes

  • Fair Use: Respects SAM.gov's public API endpoints and applies pacing delays between requests
  • Public Data Only: Retrieves only publicly listed SAM.gov Government Contract award data
  • Privacy: Collecting contract data may be subject to applicable regulations and SAM.gov's Terms of Use โ€” use only for legitimate purposes
  • Legal: Not legal advice โ€” consult qualified professionals before using this data for compliance-sensitive decisions

Data Quality

  • Freshness: Reflects each SAM.gov Government Contract award's state at time of run
  • Completeness: Field availability depends on what SAM.gov has published for each notice; some records may return partial data
  • Accuracy: Sourced directly from SAM.gov's own search and opportunity APIs
  • Verification: Cross-check high-stakes figures against the live SAM.gov website

Best Practices

  • Always configure a residential proxy for the most reliable SAM.gov Government Contract access
  • Use agency or NAICS code filters to narrow large keyword searches
  • Re-run periodically to track newly posted awards
  • Expect some fields to occasionally return "N/A" if SAM.gov has not published that data
  • Batch multiple keywords together in one run to reduce overhead

Terms of Use:

  • Use for legitimate research, procurement, and business development purposes
  • Respect SAM.gov's Terms of Use
  • Do not use for unsolicited contact, harassment, or unlawful purposes
  • Use SAM.gov Government Contract data responsibly and in compliance with applicable laws

Disclaimer: SAM.gov Government Contract Monitor is provided as-is for research and analytics purposes. Users are responsible for compliance with SAM.gov's ToS and all applicable laws. This is not legal advice.


โš–๏ธ SAM.gov Government Contract Excellence

This Actor is optimized for SAM.gov Government Contract research with:

  • โœ… Fast, browser-impersonated HTTP access
  • โœ… Deep opportunity-detail fetching for every result
  • โœ… Multi-key fallback parsing for maximum field coverage
  • โœ… Practical filtering to skip incomplete records
  • โœ… Real-time Dataset push
  • โœ… Production-ready code