GovCon API

v0.3.5
io.github.govconapi/govconapi Checked 2 days ago Published 2 days ago

Six 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…

ParameterTypeDescription
kind *string
query *string

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)…

ParameterTypeDescription
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…

ParameterTypeDescription
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…

ParameterTypeDescription
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

ParameterTypeDescription
kind *string
agency
email
name
state
uei