NewBizBot
|Docs
Data API

NAICS Code Reference

Understanding NAICS industry codes and how to query them in the PPP Loans dataset.

NAICS (North American Industry Classification System) codes are 6-digit hierarchical codes used to classify businesses by industry. Every PPP loan record includes the borrower's NAICS code, making it one of the most useful filters for industry-level analysis.

How NAICS Codes Work

NAICS codes follow a hierarchical structure where each additional digit narrows the industry:

DigitsLevelExampleMeaning
2Sector72Accommodation and Food Services
3Subsector722Food Services and Drinking Places
4Industry Group7225Restaurants and Other Eating Places
5Industry72251Restaurants and Other Eating Places
6National Industry722511Full-Service Restaurants

Querying NAICS Codes

Use the like operator with wildcards to query at any level of the hierarchy:

# All Accommodation & Food Services (sector 72)
?naics_code=like.72*

# Just restaurants (industry group 7225)
?naics_code=like.7225*

# Exact: Full-Service Restaurants only
?naics_code=eq.722511

# Multiple sectors
?naics_code=in.(722511,722513,722514)

NAICS Sector Table

All 20 top-level NAICS sectors and how to filter for them:

CodeSectorFilterPPP Relevance
11Agriculture, Forestry, Fishing and Huntinglike.11*Farms, ranches, fisheries
21Mining, Quarrying, and Oil and Gas Extractionlike.21*Oil/gas, mining operations
22Utilitieslike.22*Electric, gas, water utilities
23Constructionlike.23*General contractors, specialty trades
31-33Manufacturinglike.31* or like.32* or like.33*Factories, food processing, fabrication
42Wholesale Tradelike.42*Distributors, merchant wholesalers
44-45Retail Tradelike.44* or like.45*Stores, dealerships, e-commerce
48-49Transportation and Warehousinglike.48* or like.49*Trucking, airlines, warehouses
51Informationlike.51*Publishing, telecom, software
52Finance and Insurancelike.52*Banks, insurance, investment firms
53Real Estate and Rental and Leasinglike.53*Property management, real estate agents
54Professional, Scientific, and Technical Serviceslike.54*Law firms, consulting, accounting, engineering
55Management of Companies and Enterpriseslike.55*Holding companies, corporate offices
56Administrative and Support Serviceslike.56*Staffing, janitorial, security services
61Educational Serviceslike.61*Schools, training centers, tutoring
62Health Care and Social Assistancelike.62*Doctors, dentists, hospitals, daycare
71Arts, Entertainment, and Recreationlike.71*Theaters, gyms, amusement parks
72Accommodation and Food Serviceslike.72*Hotels, restaurants, bars, catering
81Other Services (except Public Administration)like.81*Auto repair, salons, nonprofits, religious orgs
92Public Administrationlike.92*Government agencies (rare in PPP)

Top PPP Industries in Detail

These sectors received the most PPP loans. Here are their most common sub-codes:

Restaurants and Food Services (72)

CodeDescriptionExample Query
722511Full-Service Restaurants?naics_code=eq.722511
722513Limited-Service Restaurants?naics_code=eq.722513
722514Cafeterias and Buffets?naics_code=eq.722514
722515Snack and Nonalcoholic Beverage Bars?naics_code=eq.722515
721110Hotels and Motels?naics_code=eq.721110
722310Food Service Contractors?naics_code=eq.722310
722410Drinking Places (Alcoholic Beverages)?naics_code=eq.722410

Health Care (62)

CodeDescriptionExample Query
621111Offices of Physicians?naics_code=eq.621111
621210Offices of Dentists?naics_code=eq.621210
621310Offices of Chiropractors?naics_code=eq.621310
621399Offices of Other Health Practitioners?naics_code=eq.621399
623110Nursing Care Facilities?naics_code=eq.623110
624410Child Day Care Services?naics_code=eq.624410

Construction (23)

CodeDescriptionExample Query
236220Commercial Building Construction?naics_code=eq.236220
236115New Single-Family Housing?naics_code=eq.236115
238220Plumbing, Heating, and AC?naics_code=eq.238220
238210Electrical Contractors?naics_code=eq.238210
238910Site Preparation Contractors?naics_code=eq.238910

Professional Services (54)

CodeDescriptionExample Query
541110Offices of Lawyers?naics_code=eq.541110
541211Offices of CPAs?naics_code=eq.541211
541511Custom Computer Programming?naics_code=eq.541511
541611Management Consulting?naics_code=eq.541611
541330Engineering Services?naics_code=eq.541330
541810Advertising Agencies?naics_code=eq.541810

Retail Trade (44-45)

CodeDescriptionExample Query
441110New Car Dealers?naics_code=eq.441110
445110Supermarkets and Grocery Stores?naics_code=eq.445110
448140Family Clothing Stores?naics_code=eq.448140
452210Department Stores?naics_code=eq.452210
453110Florists?naics_code=eq.453110

Example Queries

Find all full-service restaurants in California:

curl "https://newbizbot.ai/api/data/ppp_loans?borrower_state=eq.CA&naics_code=eq.722511&limit=5" \
  -H "Authorization: Bearer YOUR_API_KEY"

Compare healthcare vs. restaurant loans in Texas using aggregate RPCs:

# Healthcare in TX
curl "https://newbizbot.ai/api/data/rpc/ppp_stats_by_industry?p_state=TX&p_naics_prefix=62" \
  -H "Authorization: Bearer YOUR_API_KEY"

# Restaurants in TX
curl "https://newbizbot.ai/api/data/rpc/ppp_stats_by_industry?p_state=TX&p_naics_prefix=7225" \
  -H "Authorization: Bearer YOUR_API_KEY"

Find construction companies that received large loans:

curl "https://newbizbot.ai/api/data/ppp_loans?naics_code=like.23*&initial_approval_amount=gt.1000000&borrower_state=eq.FL&limit=10&order=initial_approval_amount.desc" \
  -H "Authorization: Bearer YOUR_API_KEY"

On this page

NAICS Code Reference | NewBizBot Documentation | NewBizBot Documentation