# NAICS code API A NAICS API call returns a NAICS 2022 code with its title, parent codes, SBA size standard from 13 CFR 121.201, and its Census description. A second endpoint answers whether a given revenue or employee count is small for that code, the check every set-aside bid starts with.Checked on 2026-11-12.Official source: [U.S. Census Bureau NAICS](https://www.census.gov/naics/) | Edition | NAICS 2022, 2,125 codes | | --- | --- | | Size standards | 13 CFR 121.201 | | Activity | Entities, opportunities, awards | ## Example ``` curl "https://samgovapi.io/api/v1/naics/541512" \ -H "Authorization: Bearer sg_YOUR_KEY" ``` ## Endpoints | Endpoint | Returns | | --- | --- | | /api/v1/naics?q= | Codes matching a prefix or title words | | /api/v1/naics/{code} | Title, description and size standard | | /api/v1/naics/{code}/size-standard | Size standard and a small-or-not answer for revenue_usd or employees | ## Get this as JSON ``` curl "https://samgovapi.io/api/v1/naics/541512" \ -H "Authorization: Bearer sg_YOUR_KEY" ``` MCP tool: `naics_lookup`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 - [NAICS code lookup](https://samgovapi.io/naics-code-lookup) - [All NAICS codes](https://samgovapi.io/naics)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/naics-api . Markdown: https://samgovapi.io/naics-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
