Search Federal Contracts
Search USAspending.gov for U.S. federal contract awards by criteria including agency, NAICS code, value, date range, and set-aside type.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
keywords | string | No | - | Keywords to search in contract descriptions. |
awardingAgency | string | No | - | Filter by awarding agency name. |
naicsCode | string | No | - | Filter by NAICS code. |
pscCode | string | No | - | Filter by Product/Service Code. |
minValue | number | No | - | Minimum total obligation value in USD. |
maxValue | number | No | - | Maximum total obligation value in USD. |
startDateAfter | string | No | - | Filter contracts starting after this date (YYYY-MM-DD). |
startDateBefore | string | No | - | Filter contracts starting before this date (YYYY-MM-DD). |
setAsideType | string | No | - | Small business set-aside type filter. |
limit | number | No | 25 | Maximum number of contracts to return. |
Required Integrations
datagov(SAM.gov / Data.gov API key)
Use Cases
- Federal contract landscape analysis
- Government spending research
- Identifying contract opportunities by agency or NAICS code
- Small business set-aside analysis
Example Usage
Search by agency
{
"tool": "search_federal_contracts",
"parameters": {
"awardingAgency": "Department of Defense",
"minValue": 1000000,
"limit": 10
}
}
Search by NAICS code
{
"tool": "search_federal_contracts",
"parameters": {
"naicsCode": "541512",
"startDateAfter": "2024-01-01"
}
}
Response Format
The tool returns a structured JSON response with:
totalCount: Total matching contractscontracts: Array of contract objects withawardId,recipientName,awardingAgency,totalObligation,startDate,endDate,contractType,naicsCode,placeOfPerformance, etc.hasMore: Whether more results are available
Error Handling
Common errors:
- Missing Integration: SAM.gov / Data.gov API key not configured (requires
datagovintegration) - Rate Limit: API rate limit exceeded
- Invalid Parameters: Bad date format or value range
Related Tools
search_gov_opportunities- Search for open federal solicitationscompany_gov_opportunities- Find opportunities for a specific companycompany_gov_relationships- Prime/sub contractor relationshipscompany_contracts- ICT outsourced contracts (with optionalincludeFederalContracts)