Cage Code
A CAGE code is the unique alphanumeric identifier assigned to the vendor site associated with the award record. It identifies the specific business entity or location represented in FPDS, rather than a free-text vendor name.
FPDS Compare
Use Cases
- Dictionary lookup and field explanation
- SQL filtering and grouping
- Analytical reporting and reusable query building
- Contractor profiling and competitor analysis
Common Usage
- Linking awards to a specific vendor entity or site
- Aggregating obligations by contractor across records
- Matching FPDS records to external vendor reference datasets
Common Mistakes
- Using the code as a substitute for vendor name without validation
- Assuming one CAGE code always equals one legal company across all awards
Query Guidance
Use this field as a join key or grouping key after trimming and normalizing case if needed. In SQL, filter out null or placeholder values before counting distinct vendors, and prefer left joins to reference tables so unmatched codes remain visible for data quality checks.
SQL Examples
Preview values
SELECT
content__OtherTransactionIDV__contractDetail__vendor__vendorSiteDetails__entityIdentifiers__cageCode AS cage_code
FROM fpds.data
WHERE content__OtherTransactionIDV__contractDetail__vendor__vendorSiteDetails__entityIdentifiers__cageCode IS NOT NULL
LIMIT 25
Top values
SELECT
content__OtherTransactionIDV__contractDetail__vendor__vendorSiteDetails__entityIdentifiers__cageCode AS value,
count() AS record_count
FROM fpds.data
WHERE content__OtherTransactionIDV__contractDetail__vendor__vendorSiteDetails__entityIdentifiers__cageCode 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.