Agency Id
Agency identifier recorded in the contract award ID structure. It is the code used by FPDS to identify the contracting agency or component associated with the award record.
FPDS Compare
Use Cases
- Dictionary lookup and field explanation
- SQL filtering and grouping
- Analytical reporting and reusable query building
Common Usage
- Filter awards for a specific agency or component
- Aggregate obligation dollars by agency
- Join to a lookup table for agency names or hierarchy
Common Mistakes
- Assuming the code is the same as a textual agency name
- Comparing agency IDs across periods without accounting for reorganizations or reference updates
Query Guidance
Use in WHERE clauses for agency scoping and in JOINs to agency reference tables. If analyzing trends, group by the code only after confirming consistent mapping across the date range; when possible, pair it with the human-readable agency name field or a reference dimension to avoid misclassification.
SQL Examples
Preview values
SELECT
content__award__awardID__awardContractID__agencyID AS agency_id
FROM fpds.data
WHERE content__award__awardID__awardContractID__agencyID IS NOT NULL
LIMIT 25
Top values
SELECT
content__award__awardID__awardContractID__agencyID AS value,
count() AS record_count
FROM fpds.data
WHERE content__award__awardID__awardContractID__agencyID IS NOT NULL
GROUP BY value
ORDER BY record_count DESC
LIMIT 25
Each dictionary item includes SQL-ready examples generated alongside the variable metadata, allowing immediate use in FPDS Query for filtering, aggregation, and analysis.