Skip to main content
POST
Aggregate awards by one dimension

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
groupBy
enum<string>
required

Dimension to group by: recipient (vendor); buyer or funder (the most specific buying or funding organization on the award, usually a contracting or funding office with the agency as a fallback, so one list can mix levels; not an agency ranking, use buyerNames to look inside one agency); contractVehicle; or setAside.

Available options:
recipient,
buyer,
funder,
contractVehicle,
setAside
orderBy
enum<string>
default:count

Which groups are returned and in what order: the most awards (count) or the largest summed dollars. A "by dollars" question must use a dollar order, since a count-ordered result can omit a group whose dollars come from a few large awards.

Available options:
count,
obligatedAmount,
awardAmount,
paidAmount
limit
integer
default:10

Groups to return. Values above 50 are clamped to 50.

query
string

Search text. Supports keywords, quoted phrases, and boolean operators such as AND, OR, and NOT.

searchType
enum<string>

Market type. Defaults to the authenticated user's market focus (fed or sled). sled and international require the matching organization subscription.

Available options:
fed,
sled,
international
dateRange
string[]

Filter by award action dates as [start, end] in ISO 8601 format. Searches all time when omitted.

Required array length: 2 elements
recipientNames
string[]

Filter to awards won by any of these recipient (vendor) names.

buyerNames
string[]

Filter to awards bought by any of these government buyer names.

funderNames
string[]

Filter to awards funded by any of these government funder names.

naics
string[]

NAICS codes to filter by, such as 334111.

psc
string[]

Product or service codes (PSC) to filter by.

amountRange
number[]

Filter by award amount as [minimum, maximum].

Required array length: 2 elements
placeIds
string[]

Filter to awards in any of these canonical place ids from POST /api/tools/v1/places/search or /places/list. Ids match at any administrative level (state, county, city, ZIP, school district, military installation).

placeIdsNone
string[]

Exclude awards in any of these canonical place ids.

Response

Grouped counts and dollar sums

data
object[]
required

Groups ordered by the requested orderBy, largest first.

meta
object
required