# CAGE code API A CAGE code API call takes the five-character CAGE code and returns the SAM.gov registrant behind it: legal name, UEI, registration status, expiration date, NAICS codes and exclusion flag, from the SAM.gov public extract. A CAGE code identifies one facility. A company with several sites can hold several CAGE codes, each tied to the same UEI or to different UEIs for separate legal entities.Checked on 2026-11-12.Official source: [DLA CAGE program](https://cage.dla.mil/) | Input | 5-character CAGE code | | --- | --- | | Output | Entity record with UEI and status | | Credits | 1 credit per record looked up by id | | Coverage | 810,339 registrants with a CAGE code (1 Nov 2026 extract) | ## Example ``` curl "https://samgovapi.io/api/v1/cage/1ABC2" \ -H "Authorization: Bearer sg_YOUR_KEY" ``` ## What a CAGE code can and cannot tell you A CAGE code identifies one facility. A company with several sites can hold several CAGE codes, each tied to the same UEI or to different UEIs for separate legal entities. Codes for entities that never registered in SAM.gov, such as foreign NCAGE holders, are in DLA's CAGE system but not in the SAM.gov extract, so a lookup here returns no record for them. ## Get this as JSON ``` curl "https://samgovapi.io/api/v1/cage/1ABC2" \ -H "Authorization: Bearer sg_YOUR_KEY" ``` MCP tool: `get_entity`Keys start free, with no card. [Get a free API key](https://samgovapi.io/sign-up) or read the [docs](https://samgovapi.io/docs). ## Related - [CAGE code lookup](https://samgovapi.io/cage-code-lookup) - [UEI lookup API](https://samgovapi.io/uei-lookup-api) - [Entity API](https://samgovapi.io/sam-gov-entity-api)Updated 2026-11-12. Sources checked 2026-11-12.Independent. Not affiliated with, endorsed by or sponsored by GSA, SAM.gov or any U.S. government agency. Registering in SAM.gov is free at sam.gov.

---

HTML version: https://samgovapi.io/cage-code-api . Markdown: https://samgovapi.io/cage-code-api.md

Independent. Not affiliated with, endorsed by or sponsored by GSA, SAM.gov or any U.S. government agency. Registering in SAM.gov is free at sam.gov.

Get a free API key: https://samgovapi.io/sign-up?ref=ai-claudebot
