Skip to main content

Search Government Opportunities

Search SAM.gov for open U.S. federal solicitations including RFPs, RFQs, presolicitations, and sources sought.

Parameters

NameTypeRequiredDefaultDescription
keywordsstringNo-Keywords to search in opportunity titles.
naicsCodestringNo-Filter by NAICS code.
pscCodestringNo-Filter by Product/Service Code.
agencystringNo-Filter by agency name.
setAsideTypestringNo-Small business set-aside type filter.
postedAfterstringNo-Only opportunities posted after this date (YYYY-MM-DD).
deadlineBeforestringNo-Only opportunities with response deadline before this date.
limitnumberNo25Maximum number of opportunities to return.

Required Integrations

  • datagov (SAM.gov / Data.gov API key)

Use Cases

  • Identifying open federal solicitations
  • Tracking government opportunities by NAICS code
  • Monitoring agency procurement activity
  • Finding set-aside opportunities for small businesses

Example Usage

Search by keywords

{
"tool": "search_gov_opportunities",
"parameters": {
"keywords": "cybersecurity",
"postedAfter": "2025-01-01",
"limit": 20
}
}

Search by NAICS and agency

{
"tool": "search_gov_opportunities",
"parameters": {
"naicsCode": "541512",
"agency": "Department of Defense"
}
}

Response Format

The tool returns a structured JSON response with:

  • totalCount: Total matching opportunities
  • opportunities: Array of opportunity objects with opportunityId, title, solicitationNumber, agency, postedDate, responseDeadline, daysUntilDeadline, type, setAsideType, naicsCode, placeOfPerformance, description, and link (direct SAM.gov URL)
  • hasMore: Whether more results are available

Error Handling

Common errors:

  • Missing Integration: SAM.gov / Data.gov API key not configured (requires datagov integration)
  • Rate Limit: API rate limit exceeded
  • Invalid Parameters: Bad date format
  • search_federal_contracts - Search past contract awards
  • company_gov_opportunities - Find opportunities for a specific company
  • company_gov_relationships - Prime/sub contractor relationships

Next Steps