https://benthic.io/ngopen/usaspending/

The core theme of this database is awards/transactions, financial accounts, agencies, appropriations, references (CFDA programs, NAICS/PSC codes), and reporting overviews for federal contract, grant, and loan recipients.

At a glance

CollectionNGOpen
Endpoint/ngopen/usaspending/
OpenAPIusaspending.json
Manifestngopen/usaspending
Provenancemigrated 2026-09-21, commit b25eba8404
Relations66 queryable of 86
Columns3,621
UpdatedMonthly
LicenceUpstream terms — usaspending.gov
SourceUSAspending.gov database archive
Pipelinengopen-pipelines/pipelines/usaspending/README.md

Tables

Relations are grouped by what they are for. Every relation listed here is declared in the signed manifest, which is the authoritative column-level reference.

Spending Tables

financial_accounts_by_awards

Award-level spending data linked to Treasury Accounts. This is the central fact table connecting federal financial data to individual awards (contracts, grants, loans, etc.). Each row represents a financial transaction record for a specific award.

ColumnTypeDescription
financial_accounts_by_awards_idintegerPrimary key
submission_idintegerFK to submission_attributes
treasury_account_idintegerFK to treasury_appropriation_account
object_class_idintegerFK to object_class
program_activity_idintegerFK to ref_program_activity
award_idintegerAward ID (internal)
distinct_award_keytextUnique award identifier key
program_activity_reporting_keytextProgram activity reporting key
disaster_emergency_fund_codetextDisaster/emergency fund code (e.g. L = CARES Act)
piidtextProcurement Instrument Identifier (contracts)
parent_award_idtextParent award PIID
faintextFederal Award Identification Number (grants)
uritextUnique Record Identifier
prior_year_adjustmenttextPrior year adjustment indicator
obligations_delivered_orders_unpaid_total_cpenumericObligations for delivered orders unpaid (CPE)
obligations_delivered_orders_unpaid_total_fybnumericObligations for delivered orders unpaid (FYB)
obligations_undelivered_orders_unpaid_total_cpenumericObligations for undelivered orders unpaid (CPE)
obligations_undelivered_orders_unpaid_total_fybnumericObligations for undelivered orders unpaid (FYB)
obligations_incurred_total_by_award_cpenumericTotal obligations incurred by award (CPE)
gross_outlay_amount_by_award_cpenumericGross outlay amount by award (CPE)
gross_outlay_amount_by_award_fybnumericGross outlay amount by award (FYB)
gross_outlays_delivered_orders_paid_total_cpenumericGross outlays for delivered orders paid (CPE)
gross_outlays_delivered_orders_paid_total_fybnumericGross outlays for delivered orders paid (FYB)
gross_outlays_undelivered_orders_prepaid_total_cpenumericGross outlays for undelivered orders prepaid (CPE)
gross_outlays_undelivered_orders_prepaid_total_fybnumericGross outlays for undelivered orders prepaid (FYB)
transaction_obligated_amountnumericTransaction obligated amount
reporting_period_startdateReporting period start
reporting_period_enddateReporting period end
certified_datedateCertification date
last_modified_datedateLast modified date
drv_obligations_incurred_total_by_awardnumericDerived obligations incurred
drv_award_id_field_typetextDerived award ID field type
data_sourcetextData source indicator
deobligations_recoveries_refunds_of_prior_year_by_award_cpenumericPrior year deobligations/recoveries
ussgl480100_undelivered_orders_obligations_unpaid_cpenumericUSSGL 4801.00 (CPE)
ussgl490100_delivered_orders_obligations_unpaid_cpenumericUSSGL 4901.00 (CPE)
ussgl490200_delivered_orders_obligations_paid_cpenumericUSSGL 4902.00 (CPE)
create_datetimestampRecord creation time
update_datetimestampRecord update time

Note: This table contains 60+ USSGL (U.S. Government Standard General Ledger) account columns. Use ?select= to retrieve only the columns you need.

Example queries

# Get recent award transactions for a FAIN (grant)
curl "https://benthic.io/ngopen/usaspending/financial_accounts_by_awards?fain=eq.12345&select=financial_accounts_by_awards_id,fain,obligations_incurred_total_by_award_cpe,gross_outlay_amount_by_award_cpe,reporting_period_end&order=reporting_period_end.desc&limit=25"

# Get recent award transactions for a PIID (contract)
curl "https://benthic.io/ngopen/usaspending/financial_accounts_by_awards?piid=eq.ABC123&select=financial_accounts_by_awards_id,piid,obligations_incurred_total_by_award_cpe,gross_outlay_amount_by_award_cpe&order=reporting_period_end.desc&limit=25"

# Get awards with CARES Act funding
curl "https://benthic.io/ngopen/usaspending/financial_accounts_by_awards?disaster_emergency_fund_code=eq.L&select=piid,fain,obligations_incurred_total_by_award_cpe,reporting_period_end&limit=25"

# Get awards for a specific treasury account
curl "https://benthic.io/ngopen/usaspending/financial_accounts_by_awards?treasury_account_id=eq.12345&select=piid,fain,obligations_incurred_total_by_award_cpe,gross_outlay_amount_by_award_cpe&order=obligations_incurred_total_by_award_cpe.desc&limit=50"

# Large obligations
curl "https://benthic.io/ngopen/usaspending/financial_accounts_by_awards?obligations_incurred_total_by_award_cpe=gte.100000000&select=piid,fain,obligations_incurred_total_by_award_cpe,reporting_period_end&order=obligations_incurred_total_by_award_cpe.desc&limit=25"

 

financial_accounts_by_program_activity_object_class

Spending by program activity and object class within Treasury Accounts. This is the “Schedule B” level detail showing how money is spent by function and category.

ColumnTypeDescription
financial_accounts_by_program_activity_object_class_idintegerPrimary key
submission_idintegerFK to submission_attributes
treasury_account_idintegerFK to treasury_appropriation_account
object_class_idintegerFK to object_class
program_activity_idintegerFK to ref_program_activity
program_activity_reporting_keytextProgram activity reporting key
disaster_emergency_fund_codetextDisaster/emergency fund code
obligations_delivered_orders_unpaid_total_cpenumericDelivered orders unpaid
obligations_undelivered_orders_unpaid_total_cpenumericUndelivered orders unpaid
obligations_incurred_by_program_object_class_cpenumericObligations incurred
gross_outlay_amount_by_program_object_class_cpenumericGross outlays
deobligations_recoveries_refund_pri_program_object_class_cpenumericDeobligations/recoveries
reporting_period_startdateReporting period start
reporting_period_enddateReporting period end
certified_datedateCertification date
last_modified_datedateLast modified date
create_datetimestampRecord creation time
update_datetimestampRecord update time

Example queries

# Get spending by program for a treasury account
curl "https://benthic.io/ngopen/usaspending/financial_accounts_by_program_activity_object_class?treasury_account_id=eq.12345&select=obligations_incurred_by_program_object_class_cpe,gross_outlay_amount_by_program_object_class_cpe,program_activity_id&order=obligations_incurred_by_program_object_class_cpe.desc&limit=25"

 

appropriation_account_balances

Treasury Account-level budget authority and obligation balances (Schedule A). Each row represents a Treasury Account’s financial position for a reporting period.

ColumnTypeDescription
appropriation_account_balances_idintegerPrimary key
treasury_account_identifierintegerFK to treasury_appropriation_account
submission_idintegerFK to submission_attributes
adjustments_to_unobligated_balance_brought_forward_cpenumericAdjustments to unobligated balance brought forward
borrowing_authority_amount_total_cpenumericBorrowing authority
budget_authority_appropriated_amount_cpenumericBudget authority appropriated
budget_authority_unobligated_balance_brought_forward_fybnumericUnobligated balance brought forward
contract_authority_amount_total_cpenumericContract authority
deobligations_recoveries_refunds_by_tas_cpenumericDeobligations/recoveries/refunds
gross_outlay_amount_by_tas_cpenumericGross outlays
obligations_incurred_total_by_tas_cpenumericTotal obligations incurred
other_budgetary_resources_amount_cpenumericOther budgetary resources
spending_authority_from_offsetting_collections_amount_cpenumericSpending authority from offsetting collections
status_of_budgetary_resources_total_cpenumericTotal status of budgetary resources
total_budgetary_resources_amount_cpenumericTotal budgetary resources
unobligated_balance_cpenumericUnobligated balance
final_of_fybooleanFinal submission of fiscal year
reporting_period_startdateReporting period start
reporting_period_enddateReporting period end
certified_datedateCertification date
create_datetimestampRecord creation time
update_datetimestampRecord update time

Example queries

# Get balances for a treasury account
curl "https://benthic.io/ngopen/usaspending/appropriation_account_balances?treasury_account_identifier=eq.12345&select=budget_authority_appropriated_amount_cpe,obligations_incurred_total_by_tas_cpe,gross_outlay_amount_by_tas_cpe,unobligated_balance_cpe,reporting_period_end&order=reporting_period_end.desc&limit=25"

# Get final balances for a fiscal year
curl "https://benthic.io/ngopen/usaspending/appropriation_account_balances?final_of_fy=is.true&select=treasury_account_identifier,budget_authority_appropriated_amount_cpe,obligations_incurred_total_by_tas_cpe,gross_outlay_amount_by_tas_cpe&limit=50"

 

historical_appropriation_account_balances

Historical Treasury Account-level budget data predating DABS submissions.

ColumnTypeDescription
historical_appropriation_account_balances_idintegerPrimary key
agency_idtextAgency identifier
main_account_codetextMain account code
sub_account_codetextSub-account code
account_titletextAccount title
obligations_incurred_total_by_tas_cpenumericTotal obligations
deobligations_recoveries_refunds_by_tas_cpenumericDeobligations
gross_outlay_amount_by_tas_cpenumericGross outlays
total_budgetary_resources_amount_cpenumericTotal budgetary resources
budget_function_codetextBudget function code
budget_subfunction_codetextBudget sub-function code
fr_entity_codetextFR entity code
owning_toptier_agency_idintegerFK to toptier_agency
reporting_fiscal_yearintegerFiscal year
reporting_fiscal_quarterintegerFiscal quarter
reporting_fiscal_periodintegerFiscal period
tas_rendering_labeltextTAS rendering label

Agency and Account Reference Tables

toptier_agency

Top-level federal agencies (e.g. Department of Defense, Department of Health and Human Services).

ColumnTypeDescription
toptier_agency_idintegerPrimary key
toptier_codetextCGAC/FREC agency code
nametextAgency name
abbreviationtextAgency abbreviation
missiontextMission statement
websitevarchar(200)Agency website

subtier_agency

Sub-tier agencies within top-tier agencies (e.g. U.S. Army under DoD).

ColumnTypeDescription
subtier_agency_idintegerPrimary key
subtier_codetextSub-tier code
nametextSub-tier agency name
abbreviationtextAbbreviation

agency

Links top-tier and sub-tier agencies.

ColumnTypeDescription
idintegerPrimary key
toptier_agency_idintegerFK to toptier_agency
subtier_agency_idintegerFK to subtier_agency
toptier_flagbooleanTRUE if this represents the top-tier agency
user_selectablebooleanTRUE if user-selectable in USAspending

federal_account

Federal accounts that aggregate Treasury Accounts.

ColumnTypeDescription
idintegerPrimary key
account_titletextAccount title
agency_identifiertextAgency identifier
main_account_codetextMain account code
federal_account_codetextFederal account code (agency + main)
parent_toptier_agency_idintegerFK to toptier_agency

treasury_appropriation_account

Individual Treasury Accounts (TAS). The most granular budget account level.

ColumnTypeDescription
treasury_account_identifierintegerPrimary key
agency_idtextAgency identifier
main_account_codetextMain account code
sub_account_codetextSub-account code
account_titletextAccount title
reporting_agency_idtextReporting agency ID
reporting_agency_nametextReporting agency name
budget_function_codetextBudget function code
budget_function_titletextBudget function title
budget_subfunction_codetextBudget sub-function code
budget_subfunction_titletextBudget sub-function title
budget_bureau_codetextBureau code
budget_bureau_nametextBureau name
fr_entity_codetextFR entity code
allocation_transfer_agency_idtextAllocation transfer agency
availability_type_codetextAvailability type code
beginning_period_of_availabilitytextBeginning period of availability
ending_period_of_availabilitytextEnding period of availability
federal_account_idintegerFK to federal_account
funding_toptier_agency_idintegerFK to toptier_agency (funding)
awarding_toptier_agency_idintegerFK to toptier_agency (awarding)
tas_rendering_labeltextTAS display label

Example queries

# Get treasury accounts for an agency
curl "https://benthic.io/ngopen/usaspending/treasury_appropriation_account?funding_toptier_agency_id=eq.123&select=treasury_account_identifier,account_title,tas_rendering_label,budget_function_title&limit=50"

# Look up a TAS by label
curl "https://benthic.io/ngopen/usaspending/treasury_appropriation_account?tas_rendering_label=eq.075-0512&select=account_title,funding_toptier_agency_id,budget_function_title"

 

Classification Reference Tables

cgac

Common Government-wide Accounting Classification (CGAC) agency codes.

ColumnTypeDescription
cgac_codetextPrimary key. CGAC code
agency_nametextAgency name
agency_abbreviationtextAbbreviation
is_frec_agencybooleanTRUE if using FRAC code instead

frec

Federal Reserve Entity Codes (FREC) — alternative agency codes.

ColumnTypeDescription
frec_codetextPrimary key
agency_nametextAgency name
agency_abbreviationtextAbbreviation
associated_cgac_codetextAssociated CGAC code

naics

North American Industry Classification System codes.

ColumnTypeDescription
codetextPrimary key. NAICS code
descriptiontextShort description
long_descriptiontextFull description
yearintegerNAICS edition year
year_retiredintegerYear retired (if applicable)

psc

Product and Service Codes used in federal procurement.

ColumnTypeDescription
codevarchar(4)Primary key. PSC code
descriptiontextShort description
lengthintegerCode length
start_datedateEffective start date
end_datedateEffective end date
full_nametextFull name
includestextWhat this code includes
excludestextWhat this code excludes
notestextAdditional notes

object_class

Budget object class definitions (how money is spent).

ColumnTypeDescription
idintegerPrimary key
major_object_classtextMajor object class code
major_object_class_nametextMajor object class name
object_classtextObject class code
object_class_nametextObject class name
direct_reimbursabletextDirect/reimbursable indicator
direct_reimbursable_nametextDirect/reimbursable name

ref_program_activity

Program activity definitions.

ColumnTypeDescription
idintegerPrimary key
program_activity_codetextProgram activity code
program_activity_nametextProgram activity name
budget_yeartextBudget year
responsible_agency_idtextResponsible agency
main_account_codetextMain account code

references_cfda

Catalog of Federal Domestic Assistance (CFDA) program catalog.

ColumnTypeDescription
idintegerPrimary key
program_numbertextCFDA program number
program_titletextProgram title
popular_nametextPopular name
federal_agencytextFederal agency
authorizationtextAuthorizing legislation
objectivestextProgram objectives
types_of_assistancetextTypes of assistance
uses_and_use_restrictionstextUses and restrictions
applicant_eligibilitytextApplicant eligibility
beneficiary_eligibilitytextBeneficiary eligibility
website_addresstextProgram website
related_programstextRelated programs

award_category

Award type reference codes.

ColumnTypeDescription
type_codetextPrimary key. Award type code
type_nametextAward type name (e.g. “Direct Loan”, “Grant”, “Insurance”)

disaster_emergency_fund_code

Disaster and emergency funding codes (e.g. CARES Act, Infrastructure Investment).

ColumnTypeDescription
codetextPrimary key. Fund code (e.g. L, N, O, U)
public_lawtextPublic law reference
titletextDescriptive title
group_nametextGroup name (e.g. “covid_19”)
urlstextReference URLs
earliest_public_law_enactment_datedateEarliest enactment date

bureau_title_lookup

Maps federal account codes to bureau titles.

ColumnTypeDescription
federal_account_codetextFederal account code
bureau_titletextBureau title
bureau_slugtextURL slug

program_activity_park

Program Activity/PARK code lookup.

ColumnTypeDescription
codetextPrimary key
nametextProgram activity name

 

Population and Geographic Reference

state_data

State population and median household income.

ColumnTypeDescription
idtextPrimary key
fipstextState FIPS code
codetextState abbreviation
nametextState name
typetextType
yearintegerData year
populationbigintPopulation
pop_sourcetextPopulation source
median_household_incomenumericMedian household income
mhi_sourcetextMHI source

ref_country_code

Country code reference.

ColumnTypeDescription
country_codetextPrimary key
country_nametextCountry name
valid_code_indicatortextValid code indicator
latest_populationbigintLatest population

ref_population_county

County population data.

ColumnTypeDescription
idintegerPrimary key
state_codevarchar(2)State code
state_nametextState name
county_numbervarchar(3)County number
county_nametextCounty name
latest_populationintegerLatest population

ref_population_cong_district

Congressional district population data.

ColumnTypeDescription
idintegerPrimary key
state_codevarchar(2)State code
congressional_districttextDistrict number
state_abbreviationvarchar(2)State abbreviation
state_nametextState name
latest_populationintegerLatest population

ref_city_county_state_code

City/county/state code reference from USGS GNIS.

ColumnTypeDescription
idintegerPrimary key
feature_idintegerGNIS feature ID
state_alphatextState abbreviation
county_nametextCounty name
feature_nametextFeature name
feature_classtextFeature class
primary_latitudenumericLatitude
primary_longitudenumericLongitude

 

Submission and Reporting Tables

submission_attributes

DABS (Data Act Broker Submission) attributes.

ColumnTypeDescription
submission_idintegerPrimary key
submission_window_idintegerFK to dabs_submission_window_schedule
quarter_format_flagbooleanTRUE if quarterly submission
reporting_agency_nametextReporting agency name
toptier_codetextTop-tier agency code
reporting_fiscal_yearintegerFiscal year
reporting_fiscal_quarterintegerFiscal quarter
reporting_fiscal_periodintegerFiscal period
published_datetimestampPublished date
certified_datetimestampCertified date

dabs_submission_window_schedule

DABS submission window schedule.

ColumnTypeDescription
idintegerPrimary key
submission_fiscal_yearintegerFiscal year
submission_fiscal_quarterintegerFiscal quarter
submission_fiscal_monthintegerFiscal month
period_start_datetimestampPeriod start
period_end_datetimestampPeriod end
submission_due_datetimestampSubmission due date
certification_due_datetimestampCertification due date
is_quarterbooleanTRUE if quarterly window

reporting_agency_overview

Agency-level reporting summary.

ColumnTypeDescription
reporting_agency_overview_idintegerPrimary key
toptier_codetextAgency code
fiscal_yearintegerFiscal year
fiscal_periodintegerFiscal period
total_budgetary_resourcesnumericTotal budgetary resources
total_dollars_obligated_gtasnumericTotal obligated (GTAS)
linked_procurement_awardsintegerLinked procurement awards
linked_assistance_awardsintegerLinked assistance awards
unlinked_procurement_c_awardsintegerUnlinked procurement (C)
unlinked_procurement_d_awardsintegerUnlinked procurement (D)
unlinked_assistance_c_awardsintegerUnlinked assistance (C)
unlinked_assistance_d_awardsintegerUnlinked assistance (D)

reporting_agency_tas

TAS-level reporting discrepancies.

reporting_agency_missing_tas

Missing TAS reporting records.

gtas_sf133_balances

GTAS SF-133 Report on Budget Execution and Budgetary Resources.

budget_authority

Budget authority by agency and year.

ColumnTypeDescription
idintegerPrimary key
agency_identifiertextAgency identifier
yearintegerFiscal year
amountbigintBudget authority amount
fr_entity_codetextFR entity code

overall_totals

Fiscal year overall totals.

ColumnTypeDescription
idintegerPrimary key
fiscal_yearintegerFiscal year
total_budget_authoritynumericTotal budget authority
 

Other Tables

recipient_geocode_index

Geocoded recipient coordinates. Links spending to geographic locations.

ColumnTypeDescription
source_idbigintPrimary key
latitudenumericGeocoded latitude
longitudenumericGeocoded longitude
geom_pointgeometry(Point, 4326)PostGIS point geometry (GIST-indexed)
geocode_datetimestampGeocoding date
geocode_systemvarchar(50)Geocoding system

Index: idx_rgi_geom_point (GIST on geom_point WHERE geom_point IS NOT NULL)

historic_parent_duns

Historical DUNS parent company linkage.

ColumnTypeDescription
broker_historic_duns_idintegerPrimary key
awardee_or_recipient_uniqutextDUNS number
ultimate_parent_unique_idetextParent DUNS
ultimate_parent_legal_entitextParent legal entity name
legal_business_nametextEntity legal name
yearintegerData year

uei_crosswalk / uei_crosswalk_2021

DUNS to UEI (Unique Entity Identifier) crosswalk tables.

ColumnTypeDescription
idintegerPrimary key
awardee_or_recipient_uniqutextDUNS number
ueitextUEI

office

Contract and financial assistance office lookup.

ColumnTypeDescription
idintegerPrimary key
agency_codetextAgency code
sub_tier_codetextSub-tier code
office_codetextOffice code
office_nametextOffice name
contract_awards_officebooleanContract awards office
contract_funding_officebooleanContract funding office
financial_assistance_awards_officebooleanFinancial assistance awards office
financial_assistance_funding_officebooleanFinancial assistance funding office

references_definition

Data Act term definitions.

ColumnTypeDescription
idintegerPrimary key
termtextTerm
data_act_termtextDATA Act term
plaintextPlain language definition
officialtextOfficial definition

rosetta

Rosetta reference documents (JSON).

ColumnTypeDescription
document_nametextPrimary key
documentjsonbDocument content

 

Award and Entity Tables

prime_awards

Denormalized prime award records combining contract, grant, and loan data with recipient information, amounts, dates, agencies, NAICS/PSC codes, and COVID tracking. One row per award.

ColumnTypeDescription
award_idbigintAward ID
unique_award_idtextUnique award identifier
piidtextProcurement Instrument Identifier
faintextFederal Award Identification Number
uritextUnique Record Identifier
display_award_idtextDisplay-friendly award ID
categorytextAward category (contracts, grants, loans, other)
award_typetextAward type code
type_descriptiontextAward type description
award_amountnumericTotal award amount
total_obligationnumericTotal obligated amount
total_outlaysnumericTotal outlays
action_datedateAction date
fiscal_yearintegerFiscal year
date_signeddateDate signed
recipient_nametextRecipient legal name
recipient_dunstextRecipient DUNS
recipient_ueitextRecipient UEI
recipient_statetextRecipient state
recipient_citytextRecipient city
recipient_countrytextRecipient country
pop_statetextPlace of performance state
pop_citytextPlace of performance city
pop_countrytextPlace of performance country
awarding_agencytextAwarding agency name
awarding_agency_codetextAwarding agency code
awarding_subtier_agencytextAwarding sub-tier agency
funding_agencytextFunding agency name
funding_agency_codetextFunding agency code
naics_codetextNAICS code
naics_descriptiontextNAICS description
product_or_service_codetextPSC code
product_or_service_descriptiontextPSC description
cfda_numbertextCFDA program number
cfda_program_titletextCFDA program title
descriptiontextAward description
disaster_emergency_fund_codestext[]DEFC codes (array)
total_covid_obligationnumericTotal COVID obligations
total_covid_outlaynumericTotal COVID outlays

Example queries

# Top awards by obligation
curl "https://benthic.io/ngopen/usaspending/prime_awards?select=display_award_id,recipient_name,total_obligation,awarding_agency&order=total_obligation.desc&limit=25"

# COVID-related awards
curl "https://benthic.io/ngopen/usaspending/prime_awards?total_covid_obligation=gt.0&select=display_award_id,recipient_name,total_covid_obligation,awarding_agency&order=total_covid_obligation.desc&limit=25"

# Awards to a specific recipient
curl "https://benthic.io/ngopen/usaspending/prime_awards?recipient_name=ilike.*lockheed*&select=display_award_id,award_type,total_obligation,action_date&order=action_date.desc&limit=25"

# Awards by NAICS code
curl "https://benthic.io/ngopen/usaspending/prime_awards?naics_code=eq.541512&select=display_award_id,recipient_name,total_obligation,awarding_agency&order=total_obligation.desc&limit=25"

 

subawards

Subcontract and subgrant data. Follow the money down the supply chain — see which subcontractors receive federal funds under prime awards.

ColumnTypeDescription
subaward_idbigintPrimary key
subaward_numbertextSubaward number
unique_award_keytextUnique award key
prime_award_piid_faintextPrime award PIID or FAIN
subaward_typetextSubaward type (subcontract, subgrant)
subaward_amountnumericSubaward amount
prime_award_amountnumericPrime award amount
sub_action_datedateSubaward action date
fiscal_yeartextFiscal year
sub_recipient_nametextSub-recipient name
sub_recipient_dunstextSub-recipient DUNS
sub_recipient_ueitextSub-recipient UEI
sub_statetextSub-recipient state
sub_citytextSub-recipient city
prime_recipient_nametextPrime recipient name
prime_recipient_dunstextPrime recipient DUNS
prime_recipient_ueitextPrime recipient UEI
awarding_agency_nametextAwarding agency name
funding_agency_nametextFunding agency name
subaward_descriptiontextSubaward description
cfda_titlestextCFDA program titles
sub_naicstextSub-recipient NAICS
pop_statetextPlace of performance state
pop_citytextPlace of performance city

Example queries

# Subawards for a prime recipient
curl "https://benthic.io/ngopen/usaspending/subawards?prime_recipient_name=ilike.*boeing*&select=subaward_number,sub_recipient_name,subaward_amount,sub_action_date&order=subaward_amount.desc&limit=25"

# Large subcontracts
curl "https://benthic.io/ngopen/usaspending/subawards?subaward_amount=gt.10000000&select=subaward_number,sub_recipient_name,subaward_amount,prime_recipient_name,awarding_agency_name&order=subaward_amount.desc&limit=25"

# Subgrants in a state
curl "https://benthic.io/ngopen/usaspending/subawards?sub_state=eq.TX&subaward_type=eq.subgrant&select=sub_recipient_name,subaward_amount,sub_action_date&order=subaward_amount.desc&limit=25"

 

all_entities

Entity registry with geocoded addresses, award aggregates, and geohash. Combines all recipients (contractors, grantees, loan recipients) into a single lookup.

ColumnTypeDescription
entity_idbigintPrimary key
entity_typetextEntity type (recipient, sub-recipient, etc.)
legal_business_nametextLegal business name
dunstextDUNS number
ueitextUEI
parent_ueitextParent UEI
citytextCity
statetextState
country_codetextCountry code
latitudenumericGeocoded latitude
longitudenumericGeocoded longitude
geom_pointgeometryPostGIS point geometry
is_geocodedbooleanHas valid geocode
geohash_6text6-character geohash
award_countbigintTotal award count
total_obligationnumericTotal obligated amount
date_first_awarddateFirst award date
date_last_awarddateLast award date

Example queries

# Search entities by name
curl "https://benthic.io/ngopen/usaspending/all_entities?legal_business_name=ilike.*general%20dynamics*&select=entity_id,legal_business_name,uei,state,total_obligation&limit=25"

# Entities in a state with awards
curl "https://benthic.io/ngopen/usaspending/all_entities?state=eq.VA&total_obligation=gt.1000000&select=legal_business_name,uei,total_obligation,award_count&order=total_obligation.desc&limit=25"

# Geocoded entities near coordinates
curl "https://benthic.io/ngopen/usaspending/all_entities?latitude=gte.38.8&latitude=lte.39.0&longitude=gte.-77.1&longitude=lte.-76.9&is_geocoded=is.true&select=legal_business_name,latitude,longitude&limit=50"

 

entity_awards

Links entities to their individual awards with agency, amount, and classification data.

ColumnTypeDescription
entity_idbigintEntity ID
entity_nametextEntity name
entity_ueitextEntity UEI
entity_dunstextEntity DUNS
entity_statetextEntity state
award_idbigintAward ID
fiscal_yeartextFiscal year
action_datedateAction date
total_obligationnumericTotal obligation
award_amountnumericAward amount
awarding_agencytextAwarding agency
award_typetextAward type
piidtextPIID (contracts)
faintextFAIN (grants)
categorytextAward category
naics_codetextNAICS code
descriptiontextAward description

Example queries

# All awards for an entity
curl "https://benthic.io/ngopen/usaspending/entity_awards?entity_uei=eq.ABCDEFGHIJK&select=award_id,award_type,total_obligation,awarding_agency,action_date&order=action_date.desc&limit=50"

# Awards by agency
curl "https://benthic.io/ngopen/usaspending/entity_awards?awarding_agency=ilike.*defense*&select=entity_name,award_type,total_obligation&order=total_obligation.desc&limit=25"

 

frec_map

Maps treasury appropriation accounts to FR (Federal Reserve) entity codes and sub-function codes.

ColumnTypeDescription
idintegerPrimary key
agency_identifiertextAgency identifier
main_account_codetextMain account code
treasury_appropriation_account_titletextTAS title
sub_function_codetextBudget sub-function code
fr_entity_codetextFR entity code

 

zips_grouped

ZIP5 to state, county, and congressional district reference table.

ColumnTypeDescription
zips_grouped_idintegerPrimary key
zip5text5-digit ZIP code
state_abbreviationtextState abbreviation
county_numbertextCounty FIPS number
congressional_district_notextCongressional district number

Example queries

# Find congressional district for a ZIP
curl "https://benthic.io/ngopen/usaspending/zips_grouped?zip5=eq.10001&select=zip5,state_abbreviation,congressional_district_no"

# All ZIPs in a congressional district
curl "https://benthic.io/ngopen/usaspending/zips_grouped?congressional_district_no=eq.12&state_abbreviation=eq.NY&select=zip5,congressional_district_no&limit=50"

 

c_to_d_linkage_updates

Tracks C/D (contract to DUNS) linkage updates between financial accounts and awards.

ColumnTypeDescription
financial_accounts_by_awards_idintegerFK to financial_accounts_by_awards
award_idintegerLinked award ID

 

Views

mv_agency_autocomplete

Materialized view for agency search autocomplete.

ColumnTypeDescription
agency_autocomplete_idintegerID
toptier_agency_idintegerTop-tier agency ID
toptier_codetextTop-tier code
toptier_nametextTop-tier name
toptier_abbreviationtextTop-tier abbreviation
subtier_nametextSub-tier name
subtier_abbreviationtextSub-tier abbreviation
toptier_flagbooleanTop-tier flag
has_awarding_databooleanHas awarding data
has_funding_databooleanHas funding data

mv_agency_office_autocomplete

Materialized view for agency + office search autocomplete.

ColumnTypeDescription
agency_office_autocomplete_idbigintID
toptier_codetextTop-tier code
toptier_nametextTop-tier name
subtier_codetextSub-tier code
subtier_nametextSub-tier name
office_codetextOffice code
office_nametextOffice name
has_awarding_databooleanHas awarding data
has_funding_databooleanHas funding data

tas_autocomplete_matview

Materialized view for Treasury Account search autocomplete.

ColumnTypeDescription
tas_autocomplete_idintegerID
tas_rendering_labeltextTAS display label
agency_idtextAgency ID
main_account_codetextMain account code
sub_account_codetextSub-account code

vw_appropriation_account_balances_download

Download-optimized view of appropriation account balances with agency name joined in.

vw_financial_accounts_by_awards_download

Download-optimized view of award-level financial data with agency name joined in.

vw_financial_accounts_by_program_activity_object_class_download

Download-optimized view of program activity/object class data with agency name joined in.

vw_published_dabs_toptier_agency

Agencies with published DABS submissions.

agency_lookup / agency_by_subtier_and_optionally_toptier

Agency lookup helper views.

mv_entity_spending_summary

Unified entity spending profile combining all_entities with most recent award context from entity_awards. Pre-joins entity aggregates with their latest awarding agency, award type, and action date. ~18M rows.

ColumnTypeDescription
entity_idbigintPrimary key
legal_business_nametextEntity legal name
ueitextUnique Entity Identifier
dunstextDUNS number
statetextEntity state
citytextEntity city
latitudenumericGeocoded latitude
longitudenumericGeocoded longitude
geom_pointgeometryPostGIS point geometry
award_countbigintTotal award count
total_obligationnumericTotal obligated amount
date_first_awarddateFirst award date
date_last_awarddateLast award date
prime_subaward_countbigintPrime + subaward count
prime_subaward_amountnumericPrime + subaward amount
top_awarding_agencytextMost recent awarding agency
most_recent_award_typetextMost recent award type
most_recent_action_datedateMost recent action date

Example queries

# Top recipients by total obligation
curl "https://benthic.io/ngopen/usaspending/mv_entity_spending_summary?select=entity_id,legal_business_name,uei,total_obligation,top_awarding_agency&order=total_obligation.desc&limit=25"

# Entities in a state
curl "https://benthic.io/ngopen/usaspending/mv_entity_spending_summary?state=eq.VA&select=legal_business_name,uei,total_obligation,award_count&order=total_obligation.desc&limit=25"

# Search by name
curl "https://benthic.io/ngopen/usaspending/mv_entity_spending_summary?legal_business_name=ilike.*lockheed*&select=entity_id,legal_business_name,uei,state,total_obligation&limit=25"

mv_district_spending

Pre-aggregated federal spending by congressional district and fiscal year. Joins prime_awards with zips_grouped for district assignment.

ColumnTypeDescription
statetextState abbreviation
districttextCongressional district number
fiscal_yearintegerFiscal year
award_countbigintNumber of awards
total_obligationnumericTotal obligations
total_award_amountnumericTotal award amounts
unique_recipientsbigintUnique recipient count
unique_agenciesbigintUnique agency count

Example queries

# Top districts by spending in FY2024
curl "https://benthic.io/ngopen/usaspending/mv_district_spending?fiscal_year=eq.2024&select=state,district,total_obligation,award_count,unique_recipients&order=total_obligation.desc&limit=25"

# Spending trend for a district
curl "https://benthic.io/ngopen/usaspending/mv_district_spending?state=eq.CA&district=eq.12&select=fiscal_year,total_obligation,award_count&order=fiscal_year"

mv_covid_spending

Aggregated COVID-19 spending tracking by fiscal year from prime_awards disaster emergency fund codes.

ColumnTypeDescription
fiscal_yearintegerFiscal year
award_countbigintNumber of COVID awards
total_covid_obligationnumericTotal COVID obligations
total_covid_outlaynumericTotal COVID outlays
unique_recipientsbigintUnique recipients
unique_agenciesbigintUnique agencies

Example queries

# COVID spending by year
curl "https://benthic.io/ngopen/usaspending/mv_covid_spending?select=fiscal_year,total_covid_obligation,total_covid_outlay,award_count&order=fiscal_year"

PostgREST query reference

Filtering

OperatorSyntaxExample
Equals?col=value?piid=eq.ABC123
Not equal?col=neq.value?disaster_emergency_fund_code=neq.L
Greater than?col=gt.value?obligations_incurred_total_by_award_cpe=gt.1000000
Less than?col=lt.value?reporting_period_end=lt.2024-01-01
Greater/eq?col=gte.value?fiscal_year=gte.2022
Less/eq?col=lte.value?fiscal_year=lte.2024
ILIKE?col=ilike.PATTERN?account_title=ilike.%25defense%25
IS null?col=is.null?award_id=is.null
IS NOT null?col=not.is.null?fain=not.is.null
IN?col=in.(val1,val2)?disaster_emergency_fund_code=in.(L,N,O)

Selecting columns

?select=piid,fain,obligations_incurred_total_by_award_cpe,gross_outlay_amount_by_award_cpe

Ordering

?order=obligations_incurred_total_by_award_cpe.desc
?order=reporting_period_end.desc

Pagination

?limit=100&offset=200

Counting

Prefer: count=exact

Grouping / aggregation

?select=disaster_emergency_fund_code,sum.obligations_incurred_total_by_award_cpe&groupby=disaster_emergency_fund_code

 

Joining tables (embedding)

PostgREST supports resource embedding via foreign key relationships:

# Get award data with treasury account details
curl "https://benthic.io/ngopen/usaspending/financial_accounts_by_awards?select=piid,fain,obligations_incurred_total_by_award_cpe,treasury_appropriation_account(account_title,tas_rendering_label)&obligations_incurred_total_by_award_cpe=not.is.null&order=obligations_incurred_total_by_award_cpe.desc&limit=10"

# Get treasury account with federal account
curl "https://benthic.io/ngopen/usaspending/treasury_appropriation_account?select=tas_rendering_label,account_title,federal_account(account_title)&treasury_account_identifier=eq.12345"

# Get appropriation balances with TAS details
curl "https://benthic.io/ngopen/usaspending/appropriation_account_balances?select=budget_authority_appropriated_amount_cpe,obligations_incurred_total_by_tas_cpe,treasury_appropriation_account(account_title)&final_of_fy=is.true&limit=25"

# Get program spending with object class and program activity names
curl "https://benthic.io/ngopen/usaspending/financial_accounts_by_program_activity_object_class?select=obligations_incurred_by_program_object_class_cpe,object_class(object_class_name),ref_program_activity(program_activity_name)&treasury_account_id=eq.12345&limit=25"

# Look up agency info
curl "https://benthic.io/ngopen/usaspending/agency?select=id,toptier_agency(name,abbreviation),subtier_agency(name)&toptier_flag=is.true&limit=50"

Key relationships

Spending data chain

toptier_agency -> federal_account -> treasury_appropriation_account -> financial_accounts_by_awards / financial_accounts_by_program_activity_object_class / appropriation_account_balances.

Agency hierarchy

toptier_agency -> agency -> subtier_agency

Classification

treasury_appropriation_account links to cgac/frec via agency codes financial_accounts_by_awards links to object_class, ref_program_activity, references_cfda financial_accounts_by_awards links to submission_attributes via submission_id

Geographic

recipient_geocode_index.source_id links to award recipient identifiers ref_population_county and ref_population_cong_district provide population denominators

Data sources

SourceDescriptionUpdate frequency
USAspending.gov database archiveFull PostgreSQL dump of the USAspending data, including the upstream raw, int, and rpt schemasMonthly
PhotonGeocoding for recipient addressesOn rebuild

Benthic derives all_entities, prime_awards, subawards, and entity_awards from the archive, and adds the geocoding index and three materialized views. Derived relations are labelled derived in the manifest; the upstream relations are labelled upstream.

Storage. A full rebuild needs roughly 2.5 TB transiently — the 164 GB archive, its ~130 GB expansion, and a ~1.1 TB restored database, with the existing database still live. See the pipeline README before attempting one.

All data originates from publicly available U.S. government sources.