Find government contracts
find_contractsUS federal contract opportunities from SAM.gov: the solicitations and notices federal agencies post when they want to buy, open ones only, newest first or by response deadline. Each has the agency, the NAICS and PSC codes, any small-business set-aside, the place of performance and the response deadline, in the government's own words. Link the record's url when you show it. A free key sees opportunities 48 hours after they are posted and reaches the last 14 days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | newest: most recently posted first. deadline: the soonest response deadline first. | newest |
| limit | No | How many contract opportunities to return (1 to 100). | |
| naics | No | Only this NAICS industry code, or its first two to five digits for a whole group, e.g. 2361 for residential building construction. | |
| query | No | Words to find in the title or description, e.g. "roof repair". | |
| state | No | Only work performed in this state, as a two-letter code such as TX. | |
| set_aside | No | Only this small-business set-aside, as its code: SBA (total small business), 8A, WOSB, SDVOSBC or HZC. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | Yes | When the data was last read from its publishers, as an RFC 3339 time in UTC; null when it has not been read yet. | |
| count | Yes | How many records are in contracts. | |
| contracts | Yes | In the order asked for. |