GroundsocialDocs

API · Economy

GET /economy/government-spend

US federal spending by state, county or country, from USAspending.

RequestGET /v1/economy/government-spend
Operation ideconomy.government_spend.get
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

US federal spending by state, county or country, from USAspending.

Query parameters

NameTypeRequiredDescription
naicsstringnoNAICS codes (2, 4 or 6 digits), comma-separated, up to 20.
pscstringnoProduct or service codes (1 to 4 characters), comma-separated, up to 20.
keywordstringnoFree text matched against award descriptions (3 to 120 characters).
from_datestringnoYYYY-MM-DD, from 2007-10-01. Defaults to the last complete federal fiscal year.
to_datestringnoYYYY-MM-DD.
geo"state" | "county" | "country"noOne of state, county, country.
scope"place_of_performance" | "recipient_location"noOne of place_of_performance, recipient_location.
award_type"contracts" | "grants" | "all"noOne of contracts, grants, all.

Responses

StatusMeaningSchema
200Amounts by place, largest first.EconomyGovernmentSpend
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404No data matches.Error
429Too many requests. Wait for Retry-After seconds.Error
503Economy is temporarily unavailable. Retryable; nothing was charged.Error

EconomyGovernmentSpend fields

FieldTypeDescription
scopestring
geo_layerstring
from_datestring
to_datestring
resultsobject[]

Errors use one shape everywhere; see Errors for every code and what to do.