GovCon API
v0.3.5Six tools over US federal procurement: SAM.gov, FPDS awards, entities, subawards, exclusions.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
resolve Resolve names to IDs
Turn what the user said into the IDs and codes the other tools take. Start here when the user names an agency, describes their work, or names a company. - agency: an agency name or acronym ("Navy", "FEMA") -> the exact `agency` value search filters expect - naics: words from NAICS titles ("computer", "engineering", "construction") -> matching codes with market size. It matches titles, not topics: for "cybersecurity" try "computer" - psc: a word for what is being bought ("janitorial", "engineering") or a code prefix ("DA" for IT services) -> Product Service Codes fo…
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
query * | string |
search Search federal contracting data
Search one dataset. `filters` holds that dataset's filters; an unknown filter is refused with the list of valid ones. Agency values come from resolve(agency), NAICS codes from resolve(naics), UEIs from resolve(company). Dates are YYYY-MM-DD. (Pro) marks datasets that need the Pro plan. Keep `limit` small (20-50) and page with `offset`: rows are large. Only opportunities, forecasts, partners and regulations take `keywords` (regulations requires it). - opportunities: SAM.gov notices. naics, psc, agency, keywords, state, set_aside (HUBZone, WOSB, 8(a), Veteran, Small Busine…
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
filters | ||
limit | integer | |
offset | integer |
get Get one record
Fetch one record by its ID. IDs come from search results or resolve. (Pro) needs the Pro plan. - opportunity: notice_id from search(opportunities) - contract (Pro fields), contract_modifications, contract_vehicle, recompete (Pro): a PIID from search(contracts) or search(recompetes). contract_vehicle is the IDIQ or schedule the contract was ordered under - vehicle, vehicle_holders (Pro): a vehicle PIID from search(vehicles) or get(contract_vehicle) - entity: a UEI (12 characters) or CAGE code (5); company_profile, company_awards, company_peers, vendor_risk (all Pro)…
| Parameter | Type | Description |
|---|---|---|
id * | string | |
kind * | string | |
options |
market Analyze a NAICS market
How big a NAICS market is, who wins it, and how it buys, across every agency. A 6-digit `naics` for the per-code views, which take no filters (for one agency: search(contracts) with naics and agency). - size: obligated dollars, award count and concentration - competition: offers per award, single-bidder share, set-aside mix - solicitation_language: the phrases contracting officers use in that market's notices - small_buys: how much is bought under the micro-purchase and simplified-acquisition thresholds - leaderboard: ranked NAICS codes; `board` = biggest, least_crowde…
| Parameter | Type | Description |
|---|---|---|
view * | string | |
board | ||
filters | ||
naics |
price Price a bid
Price evidence for a bid. (Pro) needs the Pro plan. - benchmark (Pro): the distribution of comparable contract values. naics (required), psc, agency, date_from, date_to, pricing_type (shorthand: FFP | T&M | CPFF | CPAF | LH), set_aside (code: 8A | SBA | SDVOSBC | WOSB | HZC | NONE), value_basis (current | potential | obligated) - position (Pro): where a value ranks against comparable contracts. naics and value (a string, e.g. "2200000"), required; same optional filters as benchmark - labor_rates: GSA CALC ceiling hourly rates. labor_category (required), match (wo…
| Parameter | Type | Description |
|---|---|---|
filters * | object | |
kind * | string |
contact Find who to contact
Who to talk to. Both need the Pro plan. - company_decision_maker: a company's decision-maker, from its UEI (resolve(company) finds one); SAM registration agents are filtered out - contracting_officer: a contracting officer's details from their name or email; agency and state narrow it
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
agency | ||
email | ||
name | ||
state | ||
uei |