A developer's guide to NAICS codes
NAICS codes classify every establishment counted in U.S. government business data. Here's how the system works and how to use it in an API.
The North American Industry Classification System (NAICS) is the standard the U.S., Canada, and Mexico use to classify businesses by the type of economic activity they perform. If you've ever queried Census business data, SEC filings, or federal contract awards, you've seen a NAICS code attached to the result — it's the common thread that ties industry data together across sources.
How the hierarchy works
NAICS codes are hierarchical, from 2 to 6 digits. A 2-digit code represents a broad sector (for example, "54" is Professional, Scientific, and Technical Services). Each additional digit narrows the classification: "541" is Professional, Scientific, and Technical Services as a subsector, "5415" is Computer Systems Design and Related Services, and "541511" is the most specific 6-digit code, Custom Computer Programming Services.
This means a 6-digit code always rolls up into a broader parent code, which is useful when you want to aggregate data at the sector level instead of the most granular classification.
Looking up a code via API
BizIntel's NAICS API resolves any code to its title, hierarchy level, and parent code:
GET /api/v1/industries/541511
{
"data": {
"naics_code": "541511",
"title": "Custom Computer Programming Services",
"level": 6,
"parent_code": "5415"
}
}Combine a NAICS code with a geography filter on /api/v1/business-statistics to get establishment counts and employment for that exact industry in a specific ZIP code, county, or state.
Common pitfalls
- NAICS codes are revised periodically — a code valid in one Census vintage may be reclassified in another.
- A 2-digit sector code will return much broader results than a 6-digit code; pick the level that matches your use case.
- Government contract and company data may be tagged at a less granular NAICS level than Census business statistics.