# How do I find which NAICS codes a company is registered under? Read the company's SAM.gov registration: it lists a primary NAICS code and every other code the firm selected, and marks the codes for which it is small. This API returns them in /entities/{uei} as primary_naics, naics and naics_small; Booz Allen Hamilton's registration (UEI UAVDK5WWYDZ5) lists 26 codes with 541512 as primary. NAICS codes in SAM.gov are self-selected and decide which set-aside notices a firm can bid as small.Checked on 2026-11-15.Official source: [Census NAICS](https://www.census.gov/naics/) | Fields | primary_naics, naics, naics_small | | --- | --- | | Example | UAVDK5WWYDZ5: 26 codes, primary 541512 | | NAICS codes in reference data | 2,125 | | Size standards | 978 | ## The answer in detail NAICS codes in SAM.gov are self-selected and decide which set-aside notices a firm can bid as small. The primary code is what most databases show, but the full list matters for teaming and market research because firms often win under secondary codes.Award records carry their own NAICS code, chosen by the contracting officer per contract, which can differ from the firm's primary code. Comparing both shows where a competitor actually wins.For the reverse question (which code fits my business), start from the industry description and check the size standard for each candidate. ## How the options compare | Option | Price | Access and limits | Coverage and history | Best for | Checked | | --- | --- | --- | --- | --- | --- | | [SAM.gov APIs (official)](https://open.gsa.gov/api/entity-api/) | Free | 10 requests a day with no SAM.gov role, 1,000 with a role or a non-federal system account; keys expire every 90 days | The live, authoritative record: entities, opportunities, exclusions, contract awards, hierarchy, subawards | Anyone who needs the official record itself, at low volume | 2026-11-12 | | [GovCon API (govconapi.com)](https://govconapi.com/pricing) | Developer $19/mo, Pro $39/mo; 14-day trial | 1,000 requests an hour (50 a minute burst); trial 50 a day | 12,265,150 contracts and 758,552 opportunities from FY2025; 904,090 entities, monthly | Developers who want the lowest entry price and FY2025+ history | 2026-11-15 | | [samgovapi.io](https://samgovapi.io/pricing) | Free (100 credits a month, no card); Developer $49/mo, Pro $149/mo, Scale $499/mo | 20 to 180 requests a minute by plan, no daily cap; REST, MCP and keyless MCP search | 881,370 entities (1 Nov 2026 extract), 74,420 notices, 169,191 exclusions, 114,954 awards since 1 Oct 2026 | Developers and AI agents who want entities, bids and exclusions joined in one API | 2026-11-15 | ## Where samgovapi.io is the weaker choice - Entity data comes from the SAM.gov monthly public extract (this one dated 1 Nov 2026; the next is due about 17 Dec 2026), so a registration renewed since then still shows its old expiry date until the next load. The live SAM.gov API shows it the same day. - Award history is short: 114,954 prime awards with action dates from 1 Oct 2026 to 10 Nov 2026 (fiscal year 2027 so far). USAspending goes back to FY2001 and GovCon API serves 12.27 million contracts from FY2025. ## Try it Keyless fetch of the registration as markdown, then the full JSON record. ``` # No key needed: the hosted MCP server's fetch tool curl -s https://samgovapi.io/api/mcp -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"fetch","arguments":{"id":"entity:UAVDK5WWYDZ5"}}}' curl "https://samgovapi.io/api/v1/entities/UAVDK5WWYDZ5" \ -H "Authorization: Bearer $SAMGOVAPI_API_KEY" ``` ## Questions Can a company bid under a NAICS code it did not list?It can bid, but to count as small for a set-aside it must meet that code's size standard; listing the code in SAM.gov keeps representations consistent.How many NAICS codes can a firm list?SAM.gov sets no small limit; large firms often list dozens. ## Related - [NAICS lookup by company name](https://samgovapi.io/naics-code-lookup-by-company-name) - [NAICS code lookup](https://samgovapi.io/naics-code-lookup) - [API docs](https://samgovapi.io/docs) - [Pricing](https://samgovapi.io/pricing) - [Answers](https://samgovapi.io/answers)Updated 2026-11-15. Sources checked 2026-11-15.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/answers/company-naics-codes-api . Markdown: https://samgovapi.io/answers/company-naics-codes-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
