SAM.gov Federal Contracts Scraper
Pricing
from $30.00 / 1,000 results
SAM.gov Federal Contracts Scraper
Search federal contract opportunities on SAM.gov. Extract solicitations, awards, set-asides, NAICS codes, and agency info. Essential for government contractors.
Pricing
from $30.00 / 1,000 results
Rating
0.0
(0)
Developer
Fortuitous Pirate
Actor stats
0
Bookmarked
7
Total users
5
Monthly active users
12 hours ago
Last modified
Categories
Share
SAM.gov Federal Contract Scraper with Attachment URLs
Get direct download URLs for RFPs, SOWs, and contract documents from SAM.gov.
No API key required. Provides clickable URLs for all attachments.
Why This Scraper Exists
Government contractors know the pain: You find a promising opportunity on SAM.gov, but the real details are buried in PDF attachments. The Statement of Work. The pricing template. The technical requirements. The evaluation criteria.
This scraper gives you direct download URLs for every attachment. Open the URL in your browser and the file downloads immediately.
What You Get
Complete Opportunity Data
- Notice ID, title, and full description
- Posted date and response deadline
- Contracting office and agency
- NAICS codes and set-aside types
- Place of performance
- Point of contact information
- Direct link to SAM.gov listing
Direct Download URLs for All Attachments
- RFP/RFQ documents - The full solicitation
- Statements of Work (SOW) - What they actually need
- Pricing templates - Required submission formats
- Technical specifications - Detailed requirements
- Evaluation criteria - How they'll score your proposal
- Amendments and modifications - Critical updates
Each attachment includes filename, file size, MIME type, and a direct download URL.
No API Key Required
SAM.gov's public API requires registration and has rate limits. This scraper uses SAM.gov's internal APIs to access the same data any user can see - no API key needed, no registration required.
Input Options
{"keywords": "cybersecurity","naicsCodes": ["541512"],"states": ["VA"],"setAsideTypes": ["SBA"],"postedWithinDays": 30,"maxOpportunities": 100,"includeAttachmentUrls": true}
| Field | Description | Default |
|---|---|---|
keywords | Search keywords | (none) |
naicsCodes | Filter by NAICS codes | (all) |
setAsideTypes | Set-aside type (SBA, 8A, WOSB, etc.) | (all) |
opportunityTypes | Type: o (solicitation), k (combined), etc. | (all) |
states | Filter by state codes (e.g., VA, CA) | (all) |
postedWithinDays | Only opportunities posted within N days | 30 |
maxOpportunities | Maximum results to scrape | 100 |
includeAttachmentUrls | Include attachment download URLs | true |
Output Format
Each opportunity includes:
{"opportunityId": "abc123def456","solicitationNumber": "W911QY-24-R-0001","title": "Cybersecurity Assessment Services","description": "Full description text...","type": "Solicitation","postedDate": "2024-03-15T00:00:00Z","responseDeadline": "2024-04-15T14:00:00-04:00","naicsCode": "541512","setAsideType": "SBA","agencyName": "Department of Defense","officeName": "Defense Information Systems Agency","placeOfPerformance": {"city": "Washington","state": "District of Columbia","stateCode": "DC"},"contacts": [{"name": "John Smith","email": "john.smith@agency.gov","phone": "555-123-4567"}],"samGovLink": "https://sam.gov/opp/abc123def456/view","attachments": [{"filename": "SOW_Cybersecurity_Assessment.pdf","mimeType": "application/pdf","size": 245632,"resourceId": "xyz789","accessLevel": "public","postedDate": "2024-03-15T00:00:00Z","downloadUrl": "https://sam.gov/api/prod/opps/v3/opportunities/resources/files/xyz789/download"}]}
Using the Download URLs
The downloadUrl field contains a direct link to download the attachment. Simply:
- Open in browser - Click or paste the URL, the file downloads immediately
- Use in scripts - Fetch with curl, wget, or your HTTP client of choice
- Integrate with workflows - Pass URLs to document processing pipelines
Use Cases
Bid/No-Bid Decisions
Stop wasting time on opportunities that don't fit. Get the URLs, download the SOW, review actual requirements, and make informed decisions faster.
Proposal Automation
Feed document URLs into your proposal management system. Download and extract requirements automatically. Build compliance matrices from the source.
Competitive Intelligence
Track what agencies are buying. Analyze contract patterns. Identify recurring opportunities before they're posted.
Subcontractor Outreach
Find teaming opportunities by searching for contracts that match your capabilities. Have the actual requirements ready when you reach out to primes.
Technical Details
- Runtime: Lightweight Python (no browser required)
- Rate Limiting: Built-in delays to avoid overwhelming SAM.gov
- Error Handling: Graceful handling of missing or restricted attachments
Pricing
Standard Apify platform costs apply. This scraper is lightweight and efficient since it only fetches metadata and URLs (no file downloads).
Support
Questions? Issues? Contact through Apify or open an issue on GitHub.
Get the URLs. Download the documents. Win the contracts.