Search SAM.gov solicitations
search_solicitationsSearch federal contract opportunities by posted date range. Filter by state, NAICS, title, procurement type, and set-aside to retrieve notices with attachments.
Instructions
Searches federal contract opportunities in a posted-date window. postedFrom and postedTo are required, MM/dd/yyyy, at most one year apart. Returns normalised notices, each with its attachment links. The returned count is the length of the list actually returned, which is not the same as totalRecords across all pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Records per page, up to 1000 | |
| ncode | No | NAICS code, up to 6 digits. Lodging and housing: 721110 hotels and motels, 721310 rooming and boarding houses, 531110 lessors of residential buildings | |
| ptype | No | Procurement type, e.g. o for solicitation, p for presolicitation, k for combined synopsis | |
| state | No | Two-letter place-of-performance state | |
| title | No | Free-text match against the notice title | |
| offset | No | Page offset | |
| postedTo | Yes | End of the posted-date window, MM/dd/yyyy | |
| postedFrom | Yes | Start of the posted-date window, MM/dd/yyyy | |
| typeOfSetAside | No | Set-aside code, e.g. SBA, SDVOSBC, 8A, WOSB |